use of binnie.botany.recipes.PigmentRecipe in project Binnie by ForestryMC.
the class ModuleCeramic method registerRecipes.
@Override
public void registerRecipes() {
RecipeUtil recipeUtil = new RecipeUtil(Constants.BOTANY_MOD_ID);
ForgeRegistries.RECIPES.register(new CeramicTileRecipe());
if (ModuleManager.isModuleEnabled(Constants.BOTANY_MOD_ID, BotanyModuleUIDs.GARDENING)) {
recipeUtil.addShapelessRecipe("mortar_old", CeramicItems.MORTAR.get(1), BotanyItems.MORTAR.get(1));
}
recipeUtil.addShapelessRecipe("pigment_black", new ItemStack(pigment, 2, EnumFlowerColor.Black.ordinal()), "pigment", "pigment", "dyeBlack");
recipeUtil.addRecipe("mortar", CeramicItems.MORTAR.get(6), " c ", "cgc", " c ", 'c', Items.CLAY_BALL, 'g', Blocks.GRAVEL);
for (EnumFlowerColor c : EnumFlowerColor.values()) {
ItemStack clay = new ItemStack(ModuleCeramic.clay, 1, c.ordinal());
ItemStack pigment = new ItemStack(ModuleCeramic.pigment, 1, c.ordinal());
recipeUtil.addShapelessRecipe("clay_" + c.getIdent(), clay, Items.CLAY_BALL, Items.CLAY_BALL, Items.CLAY_BALL, pigment);
GameRegistry.addSmelting(clay, TileEntityMetadata.getItemStack(ceramic, c.ordinal()), 0.0f);
ItemStack glass = TileEntityMetadata.getItemStack(stained, c.ordinal());
glass.setCount(4);
recipeUtil.addRecipe("mortar_" + c.getIdent(), glass, " g ", "gpg", " g ", 'g', Blocks.GLASS, 'p', pigment);
}
ForgeRegistries.RECIPES.register(new PigmentRecipe());
}
Aggregations