use of binnie.core.util.RecipeUtil in project Binnie by ForestryMC.
the class ModuleFlowers method doInit.
@Override
public void doInit() {
FlowerColorMutations.registerFlowerColorAlleles();
FlowerDefinition.initFlowers();
RecipeUtil recipeUtil = new RecipeUtil(Constants.BOTANY_MOD_ID);
FlowerManager.flowerRegistry.registerAcceptableFlower(flower, "flowersVanilla");
recipeUtil.addRecipe("botanist_backpack", botanistBackpack, "X#X", "VYZ", "X#X", '#', Blocks.WOOL, 'X', Items.STRING, 'V', ModuleGardening.soilMeter, 'Z', "toolTrowel", 'Y', "chestWood");
}
use of binnie.core.util.RecipeUtil in project Binnie by ForestryMC.
the class ModuleMachine method doInit.
@Override
public void doInit() {
RecipeUtil recipeUtil = new RecipeUtil(Constants.BOTANY_MOD_ID);
ItemStack tileworkerBase;
Item provenGear = ForgeRegistries.ITEMS.getValue(new ResourceLocation(Constants.EXTRA_TREES_MOD_ID, "proven_gear"));
if (provenGear != null) {
tileworkerBase = new ItemStack(provenGear);
} else {
tileworkerBase = Mods.Forestry.stack("oak_stick");
}
recipeUtil.addRecipe("tileworker", BotanyMachine.Tileworker.get(1), "wGw", "GsG", "ggg", 'G', Blocks.GLASS, 'g', tileworkerBase, 'w', Items.CLAY_BALL, 's', Mods.Forestry.stack("impregnated_casing"));
}
use of binnie.core.util.RecipeUtil in project Binnie by ForestryMC.
the class ModuleItems method init.
@Override
public void init() {
RecipeUtil recipeUtil = new RecipeUtil(Constants.GENETICS_MOD_ID);
recipeUtil.addShapelessRecipe("dna_dye_from_glowstone", GeneticsItems.DNADye.get(8), Items.GLOWSTONE_DUST, new ItemStack(Items.DYE, 1, 5));
recipeUtil.addRecipe("laboratory_casing", GeneticsItems.LaboratoryCasing.get(itemGenetics, 1), "iii", "iYi", "iii", 'i', "ingotIron", 'Y', Mods.Forestry.item("sturdy_machine"));
recipeUtil.addShapelessRecipe("dna_dye", GeneticsItems.DNADye.get(itemGenetics, 2), "dyePurple", "dyeMagenta", "dyePink");
recipeUtil.addShapelessRecipe("fluorescent_dye", GeneticsItems.FluorescentDye.get(itemGenetics, 2), "dyeOrange", "dyeYellow", "dustGlowstone");
recipeUtil.addShapelessRecipe("growth_medium", GeneticsItems.GrowthMedium.get(itemGenetics, 2), new ItemStack(Items.DYE, 1, 15), Items.SUGAR);
recipeUtil.addRecipe("empty_sequencer", GeneticsItems.EmptySequencer.get(itemGenetics, 1), " p ", "iGi", " p ", 'i', "ingotGold", 'G', Blocks.GLASS_PANE, 'p', Items.PAPER);
recipeUtil.addRecipe("empty_serum", GeneticsItems.EMPTY_SERUM.get(itemGenetics, 1), " g ", " G ", "GGG", 'g', "ingotGold", 'G', Blocks.GLASS_PANE);
recipeUtil.addRecipe("empty_genome", GeneticsItems.EMPTY_GENOME.get(itemGenetics, 1), "sss", "sss", "sss", 's', GeneticsItems.EMPTY_SERUM.get(itemGenetics, 1));
recipeUtil.addRecipe("cylinder", FluidContainerType.CYLINDER.get(8), " g ", "g g", " ", 'g', Blocks.GLASS_PANE);
recipeUtil.addRecipe("integrated_circuit", GeneticsItems.IntegratedCircuit.get(itemGenetics, 1), "l g", " c ", "g l", 'c', Mods.Forestry.stack("chipsets", 1, 1), 'l', new ItemStack(Items.DYE, 1, 4), 'g', "dustGlowstone");
recipeUtil.addRecipe("integrated_casing", GeneticsItems.IntegratedCasing.get(itemGenetics, 1), "ccc", "cdc", "ccc", 'c', GeneticsItems.IntegratedCircuit.get(itemGenetics, 1), 'd', GeneticsItems.LaboratoryCasing.get(itemGenetics, 1));
recipeUtil.addRecipe("integrated_cpu", GeneticsItems.IntegratedCPU.get(itemGenetics, 1), "ccc", "cdc", "ccc", 'c', GeneticsItems.IntegratedCircuit.get(itemGenetics, 1), 'd', Items.DIAMOND);
RecipeManagers.carpenterManager.addRecipe(100, Binnie.LIQUID.getFluidStack(ManagerLiquid.WATER, 2000), ItemStack.EMPTY, new ItemStack(database), "X#X", "YEY", "RDR", '#', Blocks.GLASS_PANE, 'X', Items.DIAMOND, 'Y', Items.DIAMOND, 'R', Items.REDSTONE, 'D', Items.ENDER_EYE, 'E', Blocks.OBSIDIAN);
GameRegistry.addSmelting(itemSequencer, GeneticsItems.EmptySequencer.get(itemGenetics, 1), 0.0f);
GameRegistry.addSmelting(itemSerum, GeneticsItems.EMPTY_SERUM.get(itemGenetics, 1), 0.0f);
GameRegistry.addSmelting(itemSerumArray, GeneticsItems.EMPTY_GENOME.get(itemGenetics, 1), 0.0f);
recipeUtil.addRecipe("analyst", new ItemStack(analyst), " c ", "cac", " d ", 'c', GeneticsItems.IntegratedCircuit.get(itemGenetics, 1), 'a', Mods.Forestry.item("portable_alyzer"), 'd', new ItemStack(Items.DIAMOND));
RegistryRecipe recipe = RegistryRecipe.create(registry, itemGenetics);
recipeUtil.addRecipe("registry", recipe);
}
use of binnie.core.util.RecipeUtil in project Binnie by ForestryMC.
the class ModuleMachine method init.
@Override
public void init() {
Incubator.addRecipes();
RecipeUtil recipeUtil = new RecipeUtil(Constants.GENETICS_MOD_ID);
Acclimatiser.setupRecipes();
final Object[] standardCircuit = { Mods.Forestry.stack("chipsets", 1, 1) };
final Object[] advCircuit = { GeneticsItems.IntegratedCircuit.get(1) };
final String ironGear = !OreDictionary.getOres("gearIron").isEmpty() ? "gearIron" : "ingotIron";
final String goldGear = !OreDictionary.getOres("gearGold").isEmpty() ? "gearIron" : "ingotIron";
final String diamondGear = !OreDictionary.getOres("gearDiamond").isEmpty() ? "gearIron" : "ingotIron";
for (final Object circuit : standardCircuit) {
recipeUtil.addRecipe("incubator", LaboratoryMachine.Incubator.get(1), "gFg", "cCc", "aPa", 'C', GeneticsItems.LaboratoryCasing.get(1), 'F', Blocks.FURNACE, 'c', circuit, 'g', Blocks.GLASS_PANE, 'P', "gearBronze", 'a', ironGear);
Item alyzer = Mods.Forestry.item("portable_alyzer");
recipeUtil.addRecipe("analyzer", LaboratoryMachine.Analyser.get(1), "gBg", "cCc", "aPa", 'C', GeneticsItems.LaboratoryCasing.get(1), 'B', alyzer, 'c', circuit, 'g', Blocks.GLASS_PANE, 'P', "gearBronze", 'a', GeneticsItems.DNADye.get(1));
recipeUtil.addRecipe("genepool", LaboratoryMachine.Genepool.get(1), "gBg", "cCc", "aPa", 'C', GeneticsItems.LaboratoryCasing.get(1), 'B', "gearBronze", 'c', circuit, 'g', Blocks.GLASS_PANE, 'P', "gearBronze", 'a', Blocks.GLASS);
recipeUtil.addRecipe("acclimatizer", LaboratoryMachine.Acclimatiser.get(1), "gBg", "cCc", "aPa", 'C', GeneticsItems.LaboratoryCasing.get(1), 'B', Items.LAVA_BUCKET, 'c', circuit, 'g', Blocks.GLASS_PANE, 'P', "gearBronze", 'a', Items.WATER_BUCKET);
}
for (final Object circuit : advCircuit) {
recipeUtil.addRecipe("isolator", GeneticMachine.Isolator.get(1), "gBg", "cCc", "aPa", 'C', GeneticsItems.LaboratoryCasing.get(1), 'B', goldGear, 'c', circuit, 'g', Items.GOLD_NUGGET, 'P', "gearBronze", 'a', GeneticsItems.Enzyme.get(1));
recipeUtil.addRecipe("polymeriser", GeneticMachine.Polymeriser.get(1), "gBg", "cCc", "gPg", 'C', GeneticsItems.LaboratoryCasing.get(1), 'B', ironGear, 'c', circuit, 'g', Items.GOLD_NUGGET, 'P', "gearBronze");
recipeUtil.addRecipe("sequencer", GeneticMachine.Sequencer.get(1), "gBg", "cCc", "aPa", 'C', GeneticsItems.LaboratoryCasing.get(1), 'B', "gearBronze", 'c', circuit, 'g', Items.GOLD_NUGGET, 'P', "gearBronze", 'a', GeneticsItems.FluorescentDye.get(1));
recipeUtil.addRecipe("inoculator", GeneticMachine.Inoculator.get(1), "gBg", "cCc", "aPa", 'C', GeneticsItems.LaboratoryCasing.get(1), 'B', diamondGear, 'c', circuit, 'g', Items.GOLD_NUGGET, 'P', "gearBronze", 'a', Items.EMERALD);
}
recipeUtil.addRecipe("splicer", AdvGeneticMachine.Splicer.get(1), "gBg", "cCc", "aPa", 'C', GeneticsItems.IntegratedCasing.get(1), 'B', diamondGear, 'c', GeneticsItems.IntegratedCPU.get(1), 'g', Items.GOLD_NUGGET, 'P', "gearBronze", 'a', Items.BLAZE_ROD);
recipeUtil.addRecipe("lab_machine", LaboratoryMachine.LabMachine.get(1), "igi", "gCg", "igi", 'C', GeneticsItems.LaboratoryCasing.get(1), 'i', "ingotIron", 'g', Blocks.GLASS_PANE);
}
use of binnie.core.util.RecipeUtil 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