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/CrucibleRecipeHandler.java | |
Initial commit
Diffstat (limited to 'ihl/nei_integration/CrucibleRecipeHandler.java')
| -rw-r--r-- | ihl/nei_integration/CrucibleRecipeHandler.java | 86 |
1 files changed, 86 insertions, 0 deletions
diff --git a/ihl/nei_integration/CrucibleRecipeHandler.java b/ihl/nei_integration/CrucibleRecipeHandler.java new file mode 100644 index 0000000..dc2c012 --- /dev/null +++ b/ihl/nei_integration/CrucibleRecipeHandler.java @@ -0,0 +1,86 @@ +package ihl.nei_integration;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+
+import codechicken.nei.PositionedStack;
+import ihl.processing.metallurgy.Crucible;
+import ihl.recipes.UniversalRecipeInput;
+import ihl.recipes.UniversalRecipeOutput;
+import ihl.utils.IHLUtils;
+import net.minecraft.client.gui.inventory.GuiContainer;
+
+
+public class CrucibleRecipeHandler extends MachineRecipeHandler
+{
+ @Override
+ public Class <? extends GuiContainer > getGuiClass()
+ {
+ return null;
+ }
+
+ @Override
+ protected int[] getInputPosX()
+ {
+ return new int[]{11-5};
+ }
+
+ @Override
+ protected int[] getInputPosY()
+ {
+ return new int[]{15-11};
+ }
+
+ @Override
+ protected int[] getOutputPosX()
+ {
+ return new int[]{106-5};
+ }
+
+ @Override
+ protected int[] getOutputPosY()
+ {
+ return new int[]{51-11};
+ }
+
+
+ @Override
+ public String getRecipeName()
+ {
+ return "Crucible";
+ }
+
+ @Override
+ public String getRecipeId()
+ {
+ return "ihl.crucible";
+ }
+
+ @Override
+ public String getGuiTexture()
+ {
+ return "ihl:textures/gui/GUICrucibleNEI.png";
+ }
+
+ @Override
+ public String getOverlayIdentifier()
+ {
+ return "crucible";
+ }
+
+ @Override
+ public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList()
+ {
+ return Crucible.getRecipes();
+ }
+
+ @Override
+ public List<PositionedStack> getAdditionalIngredients()
+ {
+ List<PositionedStack> ps = new ArrayList();
+ ps.add(new PositionedStack(IHLUtils.getThisModItemStackWithDamage("crucible", 0),61-5,15-11));
+ ps.add(new PositionedStack(IHLUtils.getThisModItemStackWithDamage("crucible", 1),106-5,15-11));
+ return ps;
+ }
+}
|
