diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2016-04-11 19:44:54 +0300 |
| commit | 05c78126859231a68e199dc34613689bd0978e2f (patch) | |
| tree | 050bea104a18c72905095d29f31bec2935a27a24 /ihl/nei_integration/LoomRecipeHandler.java | |
Initial commit
Diffstat (limited to 'ihl/nei_integration/LoomRecipeHandler.java')
| -rw-r--r-- | ihl/nei_integration/LoomRecipeHandler.java | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/ihl/nei_integration/LoomRecipeHandler.java b/ihl/nei_integration/LoomRecipeHandler.java new file mode 100644 index 0000000..b7f6331 --- /dev/null +++ b/ihl/nei_integration/LoomRecipeHandler.java @@ -0,0 +1,81 @@ +package ihl.nei_integration;
+
+import java.awt.Rectangle;
+import java.util.Map;
+
+import ihl.processing.chemistry.LoomGui;
+import ihl.processing.chemistry.LoomTileEntity;
+import ihl.recipes.UniversalRecipeInput;
+import ihl.recipes.UniversalRecipeOutput;
+import net.minecraft.client.gui.inventory.GuiContainer;
+
+
+public class LoomRecipeHandler extends MachineRecipeHandler
+{
+ @Override
+ public Class <? extends GuiContainer > getGuiClass()
+ {
+ return LoomGui.class;
+ }
+
+ @Override
+ protected int[] getInputPosX()
+ {
+ return new int[]{8-5};
+ }
+
+ @Override
+ protected int[] getInputPosY()
+ {
+ return new int[]{44-11};
+ }
+
+ @Override
+ protected int[] getOutputPosX()
+ {
+ return new int[]{127-5};
+ }
+
+ @Override
+ public void loadTransferRects()
+ {
+ this.transferRects.add(new RecipeTransferRect(new Rectangle(35-10, 0, 90, 60), this.getRecipeId(), new Object[0]));
+ }
+
+ @Override
+ protected int[] getOutputPosY()
+ {
+ return new int[]{44-11};
+ }
+
+
+ @Override
+ public String getRecipeName()
+ {
+ return "Loom";
+ }
+
+ @Override
+ public String getRecipeId()
+ {
+ return "ihl.loom";
+ }
+
+ @Override
+ public String getGuiTexture()
+ {
+ return "ihl:textures/gui/GUILoom.png";
+ }
+
+ @Override
+ public String getOverlayIdentifier()
+ {
+ return "loom";
+ }
+
+ @Override
+ public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList()
+ {
+ return LoomTileEntity.getRecipes();
+ }
+}
|
