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/EvaporatorRecipeHandler.java | |
Initial commit
Diffstat (limited to 'ihl/nei_integration/EvaporatorRecipeHandler.java')
| -rw-r--r-- | ihl/nei_integration/EvaporatorRecipeHandler.java | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/ihl/nei_integration/EvaporatorRecipeHandler.java b/ihl/nei_integration/EvaporatorRecipeHandler.java new file mode 100644 index 0000000..bfb697e --- /dev/null +++ b/ihl/nei_integration/EvaporatorRecipeHandler.java @@ -0,0 +1,80 @@ +package ihl.nei_integration;
+
+import java.awt.Rectangle;
+import java.util.Map;
+
+import ihl.processing.chemistry.EvaporatorGui;
+import ihl.processing.chemistry.EvaporatorTileEntity;
+import ihl.recipes.UniversalRecipeInput;
+import ihl.recipes.UniversalRecipeOutput;
+import net.minecraft.client.gui.inventory.GuiContainer;
+
+
+public class EvaporatorRecipeHandler extends MachineRecipeHandler
+{
+ @Override
+ public Class <? extends GuiContainer > getGuiClass()
+ {
+ return EvaporatorGui.class;
+ }
+
+ @Override
+ protected int[] getInputPosX()
+ {
+ return new int[]{39};
+ }
+
+ @Override
+ protected int[] getInputPosY()
+ {
+ return new int[]{3};
+ }
+
+ @Override
+ protected int[] getOutputPosX()
+ {
+ return new int[]{112};
+ }
+
+ @Override
+ protected int[] getOutputPosY()
+ {
+ return new int[]{21};
+ }
+
+ @Override
+ public String getRecipeName()
+ {
+ return "Evaporator";
+ }
+
+ @Override
+ public String getRecipeId()
+ {
+ return "ihl.evaporator";
+ }
+
+ @Override
+ public String getGuiTexture()
+ {
+ return "ihl:textures/gui/GUISolidFuelEvaporator.png";
+ }
+
+ @Override
+ public String getOverlayIdentifier()
+ {
+ return "evaporator";
+ }
+
+ @Override
+ public void loadTransferRects()
+ {
+ this.transferRects.add(new RecipeTransferRect(new Rectangle(99-5,34-10, 17, 13), this.getRecipeId(), new Object[0]));
+ }
+
+ @Override
+ public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList()
+ {
+ return EvaporatorTileEntity.getRecipes();
+ }
+}
|
