From 7dedf8b2727437154024491649e521e2ecc0bf2d Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Mon, 24 Mar 2014 03:29:23 -0500 Subject: [PATCH] Derpy Integration. --- integration/modules/CraftGuide.java | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/integration/modules/CraftGuide.java b/integration/modules/CraftGuide.java index 29f84e3de..39e3890c1 100644 --- a/integration/modules/CraftGuide.java +++ b/integration/modules/CraftGuide.java @@ -21,13 +21,16 @@ import uristqwerty.CraftGuide.api.StackInfo; import uristqwerty.CraftGuide.api.StackInfoSource; import uristqwerty.gui_craftguide.texture.DynamicTexture; import uristqwerty.gui_craftguide.texture.TextureClip; +import appeng.integration.IIntegrationModule; import appeng.recipes.game.ShapedRecipe; import appeng.recipes.game.ShapelessRecipe; import cpw.mods.fml.relauncher.ReflectionHelper; -public class CraftGuide extends CraftGuideAPIObject implements RecipeProvider, StackInfoSource, RecipeGenerator +public class CraftGuide extends CraftGuideAPIObject implements IIntegrationModule, RecipeProvider, StackInfoSource, RecipeGenerator { + public static CraftGuide instance; + private final Slot[] shapelessCraftingSlots = new ItemSlot[] { new ItemSlot( 3, 3, 16, 16 ), new ItemSlot( 21, 3, 16, 16 ), new ItemSlot( 39, 3, 16, 16 ), new ItemSlot( 3, 21, 16, 16 ), new ItemSlot( 21, 21, 16, 16 ), new ItemSlot( 39, 21, 16, 16 ), new ItemSlot( 3, 39, 16, 16 ), new ItemSlot( 21, 39, 16, 16 ), new ItemSlot( 39, 39, 16, 16 ), new ItemSlot( 59, 21, 16, 16, true ).setSlotType( SlotType.OUTPUT_SLOT ), }; @@ -53,11 +56,6 @@ public class CraftGuide extends CraftGuideAPIObject implements RecipeProvider, S private final Slot[] furnaceSlots = new ItemSlot[] { new ItemSlot( 13, 21, 16, 16 ), new ItemSlot( 50, 21, 16, 16, true ).setSlotType( SlotType.OUTPUT_SLOT ), }; - public CraftGuide() { - - StackInfo.addSource( this ); - } - @Override public String getInfo(ItemStack itemStack) { @@ -303,7 +301,18 @@ public class CraftGuide extends CraftGuideAPIObject implements RecipeProvider, S } return null; - // return parent.getCraftingRecipe( recipe, allowSmallGrid ); + } + + @Override + public void Init() throws Throwable + { + StackInfo.addSource( this ); + } + + @Override + public void PostInit() throws Throwable + { + } }