mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-21 04:32:24 +00:00
115 lines
3.1 KiB
Java
115 lines
3.1 KiB
Java
package binnie.extratrees.machines;
|
|
|
|
import binnie.core.IInitializable;
|
|
import binnie.core.Mods;
|
|
import binnie.core.machines.MachineGroup;
|
|
import binnie.extratrees.ExtraTrees;
|
|
import binnie.extratrees.item.ExtraTreeItems;
|
|
import cpw.mods.fml.common.registry.GameRegistry;
|
|
import forestry.api.core.Tabs;
|
|
import net.minecraft.init.Blocks;
|
|
import net.minecraft.init.Items;
|
|
import net.minecraft.item.crafting.CraftingManager;
|
|
import net.minecraftforge.oredict.ShapedOreRecipe;
|
|
|
|
public class ModuleMachine implements IInitializable {
|
|
@Override
|
|
public void preInit() {
|
|
MachineGroup machineGroup = new MachineGroup(ExtraTrees.instance, "machine", "machine", ExtraTreeMachine.values());
|
|
machineGroup.setCreativeTab(Tabs.tabArboriculture);
|
|
ExtraTrees.blockMachine = machineGroup.getBlock();
|
|
}
|
|
|
|
@Override
|
|
public void init() {
|
|
// ignore
|
|
}
|
|
|
|
@Override
|
|
public void postInit() {
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(
|
|
ExtraTreeMachine.Lumbermill.get(1),
|
|
new Object[]{
|
|
"gAg", "GsG", "gPg",
|
|
'G', Blocks.glass,
|
|
'g', ExtraTreeItems.ProvenGear.get(1),
|
|
'A', Items.iron_axe,
|
|
's', Mods.forestry.stack("sturdyMachine"),
|
|
'P', "gearBronze"
|
|
}
|
|
));
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(
|
|
ExtraTreeMachine.Press.get(1),
|
|
new Object[]{
|
|
"iGi", "tSt", "tPt",
|
|
'i', "ingotIron",
|
|
'G', Blocks.glass,
|
|
't', "ingotTin",
|
|
'S', Mods.forestry.stack("sturdyMachine"),
|
|
'P', "gearBronze"
|
|
}
|
|
));
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(
|
|
ExtraTreeMachine.Brewery.get(1),
|
|
new Object[]{
|
|
"bGb", "iSi", "bPb",
|
|
'i', "ingotIron",
|
|
'G', Blocks.glass,
|
|
'b', "gearBronze",
|
|
'S', Mods.forestry.stack("sturdyMachine"),
|
|
'P', "gearBronze"
|
|
}
|
|
));
|
|
|
|
GameRegistry.addRecipe(new ShapedOreRecipe(
|
|
ExtraTreeMachine.Distillery.get(1),
|
|
new Object[]{
|
|
"rGr", "iSi", "rPr",
|
|
'i', "ingotIron",
|
|
'G', Blocks.glass,
|
|
'r', "dustRedstone",
|
|
'S', Mods.forestry.stack("sturdyMachine"),
|
|
'P', "gearBronze"
|
|
}
|
|
));
|
|
|
|
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(
|
|
ExtraTreeMachine.Woodworker.get(1),
|
|
"wGw", "GsG", "ggg",
|
|
'G', Blocks.glass,
|
|
'g', ExtraTreeItems.ProvenGear.get(1),
|
|
'w', Blocks.planks,
|
|
's', Mods.forestry.stack("impregnatedCasing")
|
|
));
|
|
|
|
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(
|
|
ExtraTreeMachine.Panelworker.get(1),
|
|
"wGw", "GsG", "ggg",
|
|
'G', Blocks.glass,
|
|
'g', ExtraTreeItems.ProvenGear.get(1),
|
|
'w', Blocks.wooden_slab,
|
|
's', Mods.forestry.stack("impregnatedCasing")
|
|
));
|
|
|
|
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(
|
|
ExtraTreeMachine.Glassworker.get(1),
|
|
"wGw", "GsG", "ggg",
|
|
'G', Blocks.glass,
|
|
'g', ExtraTreeItems.ProvenGear.get(1),
|
|
'w', Blocks.glass,
|
|
's', Mods.forestry.stack("impregnatedCasing")
|
|
));
|
|
|
|
CraftingManager.getInstance().getRecipeList().add(new ShapedOreRecipe(
|
|
ExtraTreeMachine.Tileworker.get(1),
|
|
"wGw", "GsG", "ggg",
|
|
'G', Blocks.glass,
|
|
'g', ExtraTreeItems.ProvenGear.get(1),
|
|
'w', Items.clay_ball,
|
|
's', Mods.forestry.stack("impregnatedCasing")
|
|
));
|
|
}
|
|
}
|