From 2636ccdd67b5f33421ab7f9152021bc4ebc147b3 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Tue, 7 Feb 2017 20:16:24 +0300 Subject: Fixed an ore dictionary recipes of Iron workbench which using wrong set of items. Fixed wire recipe input. All recipes of Iron workbench now use fluid container input and will drop an empty container. --- .../InjectionMoldRecipeHandler.java | 104 ++++++++++----------- 1 file changed, 50 insertions(+), 54 deletions(-) (limited to 'ihl/nei_integration/InjectionMoldRecipeHandler.java') diff --git a/ihl/nei_integration/InjectionMoldRecipeHandler.java b/ihl/nei_integration/InjectionMoldRecipeHandler.java index 106b41b..06bf3c1 100644 --- a/ihl/nei_integration/InjectionMoldRecipeHandler.java +++ b/ihl/nei_integration/InjectionMoldRecipeHandler.java @@ -1,5 +1,6 @@ package ihl.nei_integration; +import java.awt.Rectangle; import java.util.Map; import ihl.processing.metallurgy.InjectionMoldTileEntity; @@ -7,67 +8,62 @@ import ihl.recipes.UniversalRecipeInput; import ihl.recipes.UniversalRecipeOutput; import net.minecraft.client.gui.inventory.GuiContainer; +public class InjectionMoldRecipeHandler extends MachineRecipeHandler { + @Override + public Class getGuiClass() { + return null; + } -public class InjectionMoldRecipeHandler extends MachineRecipeHandler -{ - @Override - public Class getGuiClass() - { - return null; - } - - @Override - protected int[] getInputPosX() - { - return new int[]{65-5}; - } + @Override + protected int[] getInputPosX() { + return new int[] { 65 - 5 }; + } - @Override - protected int[] getInputPosY() - { - return new int[]{15-11,51-11}; - } + @Override + protected int[] getInputPosY() { + return new int[] { 15 - 11, 51 - 11 }; + } - @Override - protected int[] getOutputPosX() - { - return new int[]{101-5}; - } - - @Override - protected int[] getOutputPosY() - { - return new int[]{51-11}; - } + @Override + protected int[] getOutputPosX() { + return new int[] { 101 - 5 }; + } + @Override + protected int[] getOutputPosY() { + return new int[] { 51 - 11 }; + } - @Override - public String getRecipeName() - { - return "Injection mold"; - } + @Override + public String getRecipeName() { + return "Injection mold"; + } - @Override - public String getRecipeId() - { - return "ihl.casting"; - } + @Override + public String getRecipeId() { + return "ihl.casting"; + } - @Override - public String getGuiTexture() - { - return "ihl:textures/gui/GUICastingNEI.png"; - } + @Override + public String getGuiTexture() { + return "ihl:textures/gui/GUICastingNEI.png"; + } - @Override - public String getOverlayIdentifier() - { - return "casting"; - } + @Override + public String getOverlayIdentifier() { + return "casting"; + } - @Override - public Map getRecipeList() - { - return InjectionMoldTileEntity.getRecipes(); - } + @Override + public void loadTransferRects() { + this.transferRects + .add(new RecipeTransferRect(new Rectangle(64 - 5, 32 - 10, 18, 18), this.getRecipeId(), new Object[0])); + this.transferRects + .add(new RecipeTransferRect(new Rectangle(82 - 5, 50 - 10, 18, 18), this.getRecipeId(), new Object[0])); + } + + @Override + public Map getRecipeList() { + return InjectionMoldTileEntity.getRecipes(); + } } -- cgit v1.2.3