use of convenientadditions.api.recipe.ShapedNBTOreRecipe in project ConvenientAdditions by Necr0.
the class ModRecipes method initBlocks.
private static void initBlocks() {
if (ModConfigMisc.platform) {
for (EnumDyeColor c : EnumDyeColor.values()) {
String dye = "dye" + c.getUnlocalizedName().substring(0, 1).toUpperCase() + c.getUnlocalizedName().substring(1);
String pane = "paneGlass" + c.getUnlocalizedName().substring(0, 1).toUpperCase() + c.getUnlocalizedName().substring(1);
String block = "blockGlass" + c.getUnlocalizedName().substring(0, 1).toUpperCase() + c.getUnlocalizedName().substring(1);
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.platform, 4, c.getMetadata()), "p p", " d ", "p p", 'd', dye, 'p', pane));
ItemStack w = new ItemStack(ModBlocks.platform, 1, OreDictionary.WILDCARD_VALUE);
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.platform, 4, c.getMetadata()), w, w, w, w, dye));
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.semiSolidBlock, 4, c.getMetadata()), "b b", " d ", "b b", 'd', dye, 'b', block));
w = new ItemStack(ModBlocks.semiSolidBlock, 1, OreDictionary.WILDCARD_VALUE);
GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ModBlocks.semiSolidBlock, 4, c.getMetadata()), w, w, w, w, dye));
}
}
if (ModConfigMisc.powderKeg)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.powderKegBlock), "psp", "pgp", "psp", 'p', "plankWood", 's', "slabWood", 'g', "gunpowder"));
if (ModConfigMisc.seedBox_recipe)
GameRegistry.addRecipe(new ShapedOreRecipe(ModBlocks.seedBoxBlock, "tpt", "php", "tpt", 'h', Blocks.HOPPER, 'p', "plankWood", 't', "ingotIron"));
if (ModConfigMisc.displayCase)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.displayCase, 2), "ppp", "p p", "sss", 's', "slabWood", 'p', "paneGlassColorless"));
if (ModConfigBuildingBlocks.ironGolemBlock)
GameRegistry.addRecipe(new ShapedNBTOreRecipe(new ItemStack(ModBlocks.ironGolemBlock, 32), "iii", "isi", "iii", 'i', "blockIron", 's', ModItems.itemSoulGem.setEntityId(new ItemStack(ModItems.itemSoulGem), "minecraft:villager_golem")));
if (ModConfigMisc.enderProofBlock)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.enderProofBlock, 6), "oio", "iwi", "oio", 'o', "obsidian", 'i', Blocks.IRON_BARS, 'w', Items.WATER_BUCKET));
if (ModConfigMisc.enderProofGlass)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.enderProofGlass, 6), "gig", "iwi", "gig", 'g', "blockGlass", 'i', Blocks.IRON_BARS, 'w', Items.WATER_BUCKET));
if (ModConfigMisc.workStation)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.workStation), "sss", "pwp", "pcp", 's', "cobblestone", 'p', "plankWood", 'c', "chestWood", 'w', "workbench"));
if (ModConfigMisc.punjiSticks)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.punjiSticks), "ss", "cc", 's', ModItems.itemSpikes, 'c', new ItemStack(Blocks.STONE_SLAB)));
if (ModConfigMisc.storageCrate)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.storageCrate), "lll", "lcl", "lll", 'l', "logWood", 'c', "chestWood"));
if (ModConfigBuildingBlocks.woodenTile)
GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ModBlocks.woodenTile, 8), "sps", "ppp", "sps", 's', "stickWood", 'p', "plankWood"));
}
Aggregations