summaryrefslogtreecommitdiff
path: root/ihl/nei_integration/InjectionMoldRecipeHandler.java
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2017-02-07 20:16:24 +0300
committerFoghrye4 <foghrye4@gmail.com>2017-02-07 20:16:24 +0300
commit2636ccdd67b5f33421ab7f9152021bc4ebc147b3 (patch)
treebae55386c0a830ac74eeb5cd09ed7fa27ecc90dc /ihl/nei_integration/InjectionMoldRecipeHandler.java
parent2db8e30b1d2151fdde5d08a6c06aef55f0c397d2 (diff)
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.
Diffstat (limited to 'ihl/nei_integration/InjectionMoldRecipeHandler.java')
-rw-r--r--ihl/nei_integration/InjectionMoldRecipeHandler.java104
1 files changed, 50 insertions, 54 deletions
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<? extends GuiContainer> getGuiClass() {
+ return null;
+ }
-public class InjectionMoldRecipeHandler extends MachineRecipeHandler
-{
- @Override
- public Class <? extends GuiContainer > 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<UniversalRecipeInput, UniversalRecipeOutput> 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<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList() {
+ return InjectionMoldTileEntity.getRecipes();
+ }
}