diff options
Diffstat (limited to 'ihl/nei_integration/InjectionMoldRecipeHandler.java')
| -rw-r--r-- | ihl/nei_integration/InjectionMoldRecipeHandler.java | 104 |
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();
+ }
}
|
