static {
      try {
        TYPE_LOOKUP[BlockDirt.DirtType.DIRT.ordinal()] = 1;
      } catch (NoSuchFieldError var2) {;
      }

      try {
        TYPE_LOOKUP[BlockDirt.DirtType.COARSE_DIRT.ordinal()] = 2;
      } catch (NoSuchFieldError var1) {;
      }
    }
Exemple #2
0
 /** Adds the crafting recipes to the CraftingManager. */
 public void addRecipes(CraftingManager p_77589_1_) {
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.chest), new Object[] {"###", "# #", "###", '#', Blocks.planks});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.trapped_chest),
       new Object[] {"#-", '#', Blocks.chest, '-', Blocks.tripwire_hook});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.ender_chest),
       new Object[] {"###", "#E#", "###", '#', Blocks.obsidian, 'E', Items.ender_eye});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.furnace), new Object[] {"###", "# #", "###", '#', Blocks.cobblestone});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.crafting_table), new Object[] {"##", "##", '#', Blocks.planks});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.sandstone),
       new Object[] {
         "##", "##", '#', new ItemStack(Blocks.sand, 1, BlockSand.EnumType.SAND.func_176688_a())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.red_sandstone),
       new Object[] {
         "##",
         "##",
         '#',
         new ItemStack(Blocks.sand, 1, BlockSand.EnumType.RED_SAND.func_176688_a())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.sandstone, 4, BlockSandStone.EnumType.SMOOTH.func_176675_a()),
       new Object[] {
         "##",
         "##",
         '#',
         new ItemStack(Blocks.sandstone, 1, BlockSandStone.EnumType.DEFAULT.func_176675_a())
       });
   p_77589_1_.addRecipe(
       new ItemStack(
           Blocks.red_sandstone, 4, BlockRedSandstone.EnumType.SMOOTH.getMetaFromState()),
       new Object[] {
         "##",
         "##",
         '#',
         new ItemStack(
             Blocks.red_sandstone, 1, BlockRedSandstone.EnumType.DEFAULT.getMetaFromState())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.sandstone, 1, BlockSandStone.EnumType.CHISELED.func_176675_a()),
       new Object[] {
         "#",
         "#",
         '#',
         new ItemStack(Blocks.stone_slab, 1, BlockStoneSlab.EnumType.SAND.func_176624_a())
       });
   p_77589_1_.addRecipe(
       new ItemStack(
           Blocks.red_sandstone, 1, BlockRedSandstone.EnumType.CHISELED.getMetaFromState()),
       new Object[] {
         "#",
         "#",
         '#',
         new ItemStack(
             Blocks.stone_slab2, 1, BlockStoneSlabNew.EnumType.RED_SANDSTONE.func_176915_a())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.quartz_block, 1, BlockQuartz.EnumType.CHISELED.getMetaFromState()),
       new Object[] {
         "#",
         "#",
         '#',
         new ItemStack(Blocks.stone_slab, 1, BlockStoneSlab.EnumType.QUARTZ.func_176624_a())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.quartz_block, 2, BlockQuartz.EnumType.LINES_Y.getMetaFromState()),
       new Object[] {
         "#",
         "#",
         '#',
         new ItemStack(Blocks.quartz_block, 1, BlockQuartz.EnumType.DEFAULT.getMetaFromState())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.stonebrick, 4),
       new Object[] {
         "##",
         "##",
         '#',
         new ItemStack(Blocks.stone, 1, BlockStone.EnumType.STONE.getMetaFromState())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.CHISELED_META),
       new Object[] {
         "#",
         "#",
         '#',
         new ItemStack(Blocks.stone_slab, 1, BlockStoneSlab.EnumType.SMOOTHBRICK.func_176624_a())
       });
   p_77589_1_.addShapelessRecipe(
       new ItemStack(Blocks.stonebrick, 1, BlockStoneBrick.MOSSY_META),
       new Object[] {Blocks.stonebrick, Blocks.vine});
   p_77589_1_.addShapelessRecipe(
       new ItemStack(Blocks.mossy_cobblestone, 1), new Object[] {Blocks.cobblestone, Blocks.vine});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.iron_bars, 16), new Object[] {"###", "###", '#', Items.iron_ingot});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.glass_pane, 16), new Object[] {"###", "###", '#', Blocks.glass});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.redstone_lamp, 1),
       new Object[] {" R ", "RGR", " R ", 'R', Items.redstone, 'G', Blocks.glowstone});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.beacon, 1),
       new Object[] {
         "GGG", "GSG", "OOO", 'G', Blocks.glass, 'S', Items.nether_star, 'O', Blocks.obsidian
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.nether_brick, 1), new Object[] {"NN", "NN", 'N', Items.netherbrick});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.stone, 2, BlockStone.EnumType.DIORITE.getMetaFromState()),
       new Object[] {"CQ", "QC", 'C', Blocks.cobblestone, 'Q', Items.quartz});
   p_77589_1_.addShapelessRecipe(
       new ItemStack(Blocks.stone, 1, BlockStone.EnumType.GRANITE.getMetaFromState()),
       new Object[] {
         new ItemStack(Blocks.stone, 1, BlockStone.EnumType.DIORITE.getMetaFromState()),
         Items.quartz
       });
   p_77589_1_.addShapelessRecipe(
       new ItemStack(Blocks.stone, 2, BlockStone.EnumType.ANDESITE.getMetaFromState()),
       new Object[] {
         new ItemStack(Blocks.stone, 1, BlockStone.EnumType.DIORITE.getMetaFromState()),
         Blocks.cobblestone
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.dirt, 4, BlockDirt.DirtType.COARSE_DIRT.getMetadata()),
       new Object[] {
         "DG",
         "GD",
         'D',
         new ItemStack(Blocks.dirt, 1, BlockDirt.DirtType.DIRT.getMetadata()),
         'G',
         Blocks.gravel
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.stone, 4, BlockStone.EnumType.DIORITE_SMOOTH.getMetaFromState()),
       new Object[] {
         "SS",
         "SS",
         'S',
         new ItemStack(Blocks.stone, 1, BlockStone.EnumType.DIORITE.getMetaFromState())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.stone, 4, BlockStone.EnumType.GRANITE_SMOOTH.getMetaFromState()),
       new Object[] {
         "SS",
         "SS",
         'S',
         new ItemStack(Blocks.stone, 1, BlockStone.EnumType.GRANITE.getMetaFromState())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.stone, 4, BlockStone.EnumType.ANDESITE_SMOOTH.getMetaFromState()),
       new Object[] {
         "SS",
         "SS",
         'S',
         new ItemStack(Blocks.stone, 1, BlockStone.EnumType.ANDESITE.getMetaFromState())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.prismarine, 1, BlockPrismarine.ROUGHMETA),
       new Object[] {"SS", "SS", 'S', Items.prismarine_shard});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.prismarine, 1, BlockPrismarine.BRICKSMETA),
       new Object[] {"SSS", "SSS", "SSS", 'S', Items.prismarine_shard});
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.prismarine, 1, BlockPrismarine.DARKMETA),
       new Object[] {
         "SSS",
         "SIS",
         "SSS",
         'S',
         Items.prismarine_shard,
         'I',
         new ItemStack(Items.dye, 1, EnumDyeColor.BLACK.getDyeColorDamage())
       });
   p_77589_1_.addRecipe(
       new ItemStack(Blocks.sea_lantern, 1, 0),
       new Object[] {
         "SCS", "CCC", "SCS", 'S', Items.prismarine_shard, 'C', Items.prismarine_crystals
       });
 }