public ItemStack getEmpty() { switch (this) { case CAN: { return Mods.Forestry.stack("can"); } case CAPSULE: { return Mods.Forestry.stack("capsule"); } case CYLINDER: case GLASS: { if (item != null) { return new ItemStack(item); } else { throw new IllegalArgumentException("Null container item: " + this); } } case REFRACTORY: { return Mods.Forestry.stack("refractory"); } default: { throw new IllegalArgumentException("Unknown container: " + this); } } }
public static void addRecipes() { Incubator.RECIPES.add(new IncubatorRecipe(GeneticsItems.GrowthMedium.get(1), new FluidStack(FluidRegistry.WATER, 25), GeneticLiquid.GrowthMedium.get(25), 0.2f)); Incubator.RECIPES.add(new IncubatorRecipe(new ItemStack(Items.WHEAT), GeneticLiquid.GrowthMedium.get(25), GeneticLiquid.Bacteria.get(5), 0.2f)); Incubator.RECIPES.add(new IncubatorRecipe(GeneticsItems.GrowthMedium.get(1), GeneticLiquid.Bacteria.get(0), GeneticLiquid.Bacteria.get(5), 0.05f)); Incubator.RECIPES.add(new IncubatorRecipe(new ItemStack(Items.SUGAR), GeneticLiquid.Bacteria.get(2), null, 0.5f, 0.2f) .setOutputStack(GeneticsItems.Enzyme.get(1))); Incubator.RECIPES.add(new IncubatorRecipe(GeneticsItems.GrowthMedium.get(1), GeneticLiquid.BacteriaPoly.get(0), GeneticLiquid.BacteriaPoly.get(5), 0.05f)); Incubator.RECIPES.add(new IncubatorRecipe(GeneticsItems.GrowthMedium.get(1), GeneticLiquid.BacteriaVector.get(0), GeneticLiquid.BacteriaVector.get(5), 0.05f)); Incubator.RECIPES.add(new IncubatorRecipe(new ItemStack(Items.DYE, 1, 15), GeneticLiquid.Bacteria.get(10), GeneticLiquid.BacteriaPoly.get(10), 0.1f)); Incubator.RECIPES.add(new IncubatorRecipe(new ItemStack(Items.BLAZE_POWDER), GeneticLiquid.Bacteria.get(10), GeneticLiquid.BacteriaVector.get(10), 0.05f)); if (BinnieCore.isApicultureActive()) { final ItemStack beeLarvaeWildcard = Mods.Forestry.stack("bee_larvae_ge", 1, OreDictionary.WILDCARD_VALUE); LARVAE_RECIPE = new IncubatorRecipeLarvae(beeLarvaeWildcard); Incubator.RECIPES.add(LARVAE_RECIPE); } }
ItemStack wax = Mods.Forestry.stack("beeswax"); ItemStack waxCast = Mods.Forestry.stackWildcard("wax_cast"); for (GlasswareType glasswareType : GlasswareType.values()) {
Mods.Forestry.stack("ash") ); Mods.Forestry.stack("mulch") ); Mods.Forestry.stack("fertilizer_bio") ); Mods.Forestry.stack("fertilizer_compound") ); Mods.Forestry.stack("wood_pulp") ); gardening.registerFertiliser(EnumFertiliserType.ACID, Mods.Forestry.stack("mulch"), 2); for (ItemStack stack : OreDictionary.getOres("dustSulfur")) { gardening.registerFertiliser(EnumFertiliserType.ACID, stack, 2); gardening.registerFertiliser(EnumFertiliserType.ALKALINE, Mods.Forestry.stack("ash"), 2); gardening.registerFertiliser(EnumFertiliserType.ALKALINE, Mods.Forestry.stack("wood_pulp"), 2); gardening.registerFertiliser(EnumFertiliserType.NUTRIENT, Mods.Forestry.stack("fertilizer_bio"), 2); gardening.registerFertiliser(EnumFertiliserType.NUTRIENT, Mods.Forestry.stack("fertilizer_compound"), 2);
recipeUtil.addRecipe("grain_corn", ExtraTreeItems.GRAIN_CORN.get(3), false, " s ", " s", " s ", 's', ExtraTreeItems.GRAIN_WHEAT.get(1)); recipeUtil.addRecipe("grain_rye", ExtraTreeItems.GRAIN_RYE.get(3), " ", "s s", " s ", 's', ExtraTreeItems.GRAIN_WHEAT.get(1)); recipeUtil.addRecipe("proven_gear", ExtraTreeItems.PROVEN_GEAR.get(1), " s ", "s s", " s ", 's', Mods.Forestry.stack("oak_stick")); recipeUtil.addRecipe("glass_fitting", ExtraTreeItems.GLASS_FITTING.get(6), "s s", " i ", "s s", 'i', Items.IRON_INGOT, 's', Items.STICK); GameRegistry.addSmelting(ExtraTreeItems.GRAIN_WHEAT.get(1), ExtraTreeItems.GRAIN_ROASTED.get(1), 0.0f); IStillManager stillManager = RecipeManagers.stillManager; stillManager.addRecipe(25, ExtraTreeLiquid.Resin.get(5), ExtraTreeLiquid.Turpentine.get(3)); carpenterManager.addRecipe(25, ExtraTreeLiquid.Turpentine.get(50), ItemStack.EMPTY, itemMisc.getStack(ExtraTreeItems.WOOD_WAX, 4), "x", 'x', Mods.Forestry.stack("beeswax")); FluidStack creosoteOil = Binnie.LIQUID.getFluidStack(ManagerLiquid.CREOSOTE, 50); if (creosoteOil != null) { carpenterManager.addRecipe(25, creosoteOil, ItemStack.EMPTY, itemMisc.getStack(ExtraTreeItems.WOOD_WAX, 1), "x", 'x', Mods.Forestry.stack("beeswax"));
" 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),
@Override public void doInit() { 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() ? "gearGold" : "ingotIron"; final String diamondGear = !OreDictionary.getOres("gearDiamond").isEmpty() ? "gearDiamond" : "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); } }
@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") ); } }
@Override public void registerRecipes() { RecipeUtil recipeUtil = new RecipeUtil(Constants.EXTRA_TREES_MOD_ID); ItemStack alveary = Mods.Forestry.stack("alveary.plain"); Item thermionicTubes = Mods.Forestry.item("thermionic_tubes"); Item chipsets = Mods.Forestry.item("chipsets"); recipeUtil.addRecipe("alveary_mutator", ExtraBeeMachines.MUTATOR.get(1), "g g", " a ", "t t", 'g', Items.GOLD_INGOT, 'a', alveary, 't', new ItemStack(thermionicTubes, 1, 5)); recipeUtil.addRecipe("alveary_frame", ExtraBeeMachines.FRAME.get(1), "iii", "tat", " t ", 'i', Items.IRON_INGOT, 'a', alveary, 't', new ItemStack(thermionicTubes, 1, 4)); recipeUtil.addRecipe("alveary_rain_shield", ExtraBeeMachines.RAIN_SHIELD.get(1), " b ", "bab", "t t", 'b', Items.BRICK, 'a', alveary, 't', new ItemStack(thermionicTubes, 1, 4)); recipeUtil.addRecipe("alveary_lighting", ExtraBeeMachines.LIGHTING.get(1), "iii", "iai", " t ", 'i', Items.GLOWSTONE_DUST, 'a', alveary, 't', new ItemStack(thermionicTubes, 1, 4)); recipeUtil.addRecipe("alveary_stimulator", ExtraBeeMachines.STIMULATOR.get(1), "kik", "iai", " t ", 'i', Items.GOLD_NUGGET, 'a', alveary, 't', new ItemStack(thermionicTubes, 1, 4), 'k', new ItemStack(chipsets, 1, 2)); recipeUtil.addRecipe("alveary_hatchery", ExtraBeeMachines.HATCHERY.get(1), "i i", " a ", "iti", 'i', Blocks.GLASS_PANE, 'a', alveary, 't', new ItemStack(thermionicTubes, 1, 5)); recipeUtil.addRecipe("alveary_transmission", ExtraBeeMachines.TRANSMISSION.get(1), " t ", "tat", " t ", 'a', alveary, 't', "gearTin"); ICircuitLayout stimulatorLayout = new BinnieCircuitLayout("Stimulator", BinnieCircuitSocketType.STIMULATOR); for (final AlvearySimulatorCircuitType type : AlvearySimulatorCircuitType.values()) { type.createCircuit(stimulatorLayout); } } }
@Override public void doInit() { RecipeUtil recipeUtil = new RecipeUtil(Constants.EXTRA_TREES_MOD_ID); recipeUtil.addRecipe("lumbermill", ExtraTreeMachine.Lumbermill.get(1), "gAg", "GsG", "gPg", 'G', Blocks.GLASS, 'g', ExtraTreeItems.PROVEN_GEAR.get(1), 'A', Items.IRON_AXE, 's', Mods.Forestry.stack("sturdy_machine"), 'P', "gearBronze"); recipeUtil.addRecipe("press", ExtraTreeMachine.Press.get(1), "iGi", "tSt", "tPt", 'i', "ingotIron", 'G', Blocks.GLASS, 't', "ingotTin", 'S', Mods.Forestry.stack("sturdy_machine"), 'P', "gearBronze"); recipeUtil.addRecipe("brewery", ExtraTreeMachine.BREWERY.get(1), "bGb", "iSi", "bPb", 'i', "ingotIron", 'G', Blocks.GLASS, 'b', "gearBronze", 'S', Mods.Forestry.stack("sturdy_machine"), 'P', "gearBronze"); recipeUtil.addRecipe("distillery", ExtraTreeMachine.Distillery.get(1), "rGr", "iSi", "rPr", 'i', "ingotIron", 'G', Blocks.GLASS, 'r', "dustRedstone", 'S', Mods.Forestry.stack("sturdy_machine"), 'P', "gearBronze"); if (ModuleManager.isModuleEnabled(Constants.EXTRA_TREES_MOD_ID, ExtraTreesModuleUIDs.CARPENTRY)) { recipeUtil.addRecipe("woodworker", ExtraTreeMachine.Woodworker.get(1), "wGw", "GsG", "ggg", 'G', Blocks.GLASS, 'g', ExtraTreeItems.PROVEN_GEAR.get(1), 'w', Blocks.PLANKS, 's', Mods.Forestry.stack("impregnated_casing")); recipeUtil.addRecipe("panelworker", ExtraTreeMachine.Panelworker.get(1), "wGw", "GsG", "ggg", 'G', Blocks.GLASS, 'g', ExtraTreeItems.PROVEN_GEAR.get(1), 'w', Blocks.WOODEN_SLAB, 's', Mods.Forestry.stack("impregnated_casing")); recipeUtil.addRecipe("glassworker", ExtraTreeMachine.Glassworker.get(1), "wGw", "GsG", "ggg", 'G', Blocks.GLASS, 'g', ExtraTreeItems.PROVEN_GEAR.get(1), 'w', Blocks.GLASS, 's', Mods.Forestry.stack("impregnated_casing")); } } }
public void addOil(final int time, final int amount, final int mulch) { RecipeManagers.squeezerManager.addRecipe(time, this.get(1), Fluids.SEED_OIL.getFluid(amount), Mods.Forestry.stack("mulch"), mulch); }
public void addJuice(final int time, final int amount, final int mulch) { RecipeManagers.squeezerManager.addRecipe(time, this.get(1), Fluids.JUICE.getFluid(amount), Mods.Forestry.stack("mulch"), mulch); }
public void addJuice(final Juice juice, final int time, final int amount, final int mulch) { RecipeManagers.squeezerManager.addRecipe(time, this.get(1), Fluids.JUICE.getFluid(amount), Mods.Forestry.stack("mulch"), mulch); }
@Override protected void setSpeciesProperties(IAlleleBeeSpeciesBuilder beeSpecies) { beeSpecies.addProduct(ItemHoneyComb.VanillaComb.HONEY.get(), 0.30f) .addSpecialty(Mods.Forestry.stack("royal_jelly"), 0.25f) .setHasEffect(); }
@Override public ItemStack getExpectedOutput() { return Mods.Forestry.stack("bee_drone_ge", 1, OreDictionary.WILDCARD_VALUE); } }
public static void init() { RecipeUtil recipeUtil = new RecipeUtil(Constants.EXTRA_BEES_MOD_ID); ItemStack impregnatedFrame = Mods.Forestry.stack("frame_impregnated"); for (EnumHiveFrame frame : values()) { frame.init(recipeUtil, impregnatedFrame); } }
private void addSqueezer(final IWoodType log, final ILiquidDefinition liquid, final int amount, final float pulpChance) { final FluidStack liquidStack = liquid.get(amount); ItemStack logStack = TreeManager.woodAccess.getStack(log, WoodBlockKind.LOG, false); RecipeManagers.squeezerManager.addRecipe(10, logStack, liquidStack, Mods.Forestry.stack("wood_pulp"), (int) (100.0f * pulpChance)); }
public static void addSubtypes() { OreDictionary.registerOre("beeComb", new ItemStack(ModuleCore.comb, 1, 32767)); ItemStack beeswax = Mods.Forestry.stack("beeswax"); ItemStack honeyDrop = Mods.Forestry.stack("honey_drop"); for (EnumHoneyComb comb : values()) { comb.addSubtypes(beeswax, honeyDrop); } }
@Override protected void addSubtypes(ItemStack beeswax, ItemStack honeyDrop) { addProduct(honeyDrop, 0.25f); ItemStack compost = Mods.Forestry.stack("fertilizer_bio"); tryAddProduct(compost, 1.00f); } },
@Override protected void setSpeciesProperties(IAlleleBeeSpeciesBuilder beeSpecies) { beeSpecies .addProduct(ItemHoneyComb.VanillaComb.HONEY.get(), 0.30f) .addSpecialty(Mods.Forestry.stack("pollen"), 0.20f) .addSpecialty(EnumHoneyComb.PURPLE.get(1), 0.15f) .setIsNotCounted() .setHasEffect(); }