mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-23 21:49:49 +00:00
Fixed crash without IC2
This commit is contained in:
1 parent
a51bfd196c
commit
e9d5c638c7
1 file changed
+12
-9
@@ -5,11 +5,11 @@ import net.minecraft.init.Items;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import net.minecraftforge.fml.common.Loader;
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
|
||||
import net.minecraftforge.fml.common.registry.GameRegistry;
|
||||
|
||||
import forestry.api.circuits.ICircuitLayout;
|
||||
import forestry.api.recipes.RecipeManagers;
|
||||
import forestry.apiculture.PluginApiculture;
|
||||
@@ -30,9 +30,11 @@ import binnie.extrabees.items.types.ExtraBeeItems;
|
||||
import binnie.extrabees.utils.Utils;
|
||||
|
||||
public final class RecipeRegister {
|
||||
|
||||
|
||||
public static void postInitRecipes() {
|
||||
GameRegistry.addRecipe(ExtraBees.honeyCrystal.getCharged(0), "#@#", "@#@", "#@#", '@', PluginApiculture.getItems().honeyDrop, '#', EnumHoneyDrop.ENERGY.get(1));
|
||||
if (Loader.isModLoaded("ic2")) {
|
||||
GameRegistry.addRecipe(ExtraBees.honeyCrystal.getCharged(0), "#@#", "@#@", "#@#", '@', PluginApiculture.getItems().honeyDrop, '#', EnumHoneyDrop.ENERGY.get(1));
|
||||
}
|
||||
for (final EnumHoneyComb info : EnumHoneyComb.values()) {
|
||||
info.addRecipe();
|
||||
}
|
||||
@@ -44,15 +46,16 @@ public final class RecipeRegister {
|
||||
}
|
||||
EnumHiveFrame.init();
|
||||
addForestryRecipes();
|
||||
addForestryRecipes();
|
||||
addMiscItemRecipes();
|
||||
addAlvearyRecipes();
|
||||
}
|
||||
|
||||
|
||||
private static void addAlvearyRecipes() {
|
||||
ItemStack alveary = PluginApiculture.getBlocks().getAlvearyBlock(BlockAlvearyType.PLAIN);
|
||||
Item thermionicTubes = PluginCore.getItems().tubes;
|
||||
Item chipsets = PluginCore.getItems().circuitboards;
|
||||
|
||||
|
||||
GameRegistry.addRecipe(getAlvearyPart(EnumAlvearyLogicType.MUTATOR), "g g", " a ", "t t", 'g', Items.GOLD_INGOT, 'a', alveary, 't', new ItemStack(thermionicTubes, 1, 5));
|
||||
GameRegistry.addRecipe(getAlvearyPart(EnumAlvearyLogicType.FRAME), "iii", "tat", " t ", 'i', Items.IRON_INGOT, 'a', alveary, 't', new ItemStack(thermionicTubes, 1, 4));
|
||||
GameRegistry.addRecipe(getAlvearyPart(EnumAlvearyLogicType.RAINSHIELD), " b ", "bab", "t t", 'b', Items.BRICK, 'a', alveary, 't', new ItemStack(thermionicTubes, 1, 4));
|
||||
@@ -65,15 +68,15 @@ public final class RecipeRegister {
|
||||
type.createCircuit(stimulatorLayout);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private static ItemStack getAlvearyPart(EnumAlvearyLogicType type) {
|
||||
return new ItemStack(ExtraBees.alveary, 1, type.ordinal());
|
||||
}
|
||||
|
||||
|
||||
private static void addForestryRecipes() {
|
||||
RecipeManagers.carpenterManager.addRecipe(100, Utils.getFluidFromName("water", 2000), ItemStack.EMPTY, new ItemStack(ExtraBees.dictionary), "X#X", "YEY", "RDR", '#', Blocks.GLASS_PANE, 'X', Items.GOLD_INGOT, 'Y', "ingotTin", 'R', Items.REDSTONE, 'D', Items.DIAMOND, 'E', Items.EMERALD);
|
||||
}
|
||||
|
||||
|
||||
private static void addMiscItemRecipes() {
|
||||
final ItemStack lapisShard = ExtraBeeItems.LapisShard.get(1);
|
||||
GameRegistry.addShapelessRecipe(new ItemStack(Items.DYE, 1, 4), lapisShard, lapisShard, lapisShard, lapisShard);
|
||||
|
||||
Reference in new issue
Block a user