summaryrefslogtreecommitdiff
path: root/src/main/java/ihl/nei_integration/LeadOvenRecipeHandler.java
diff options
context:
space:
mode:
authorFoghrye4 <foghrye4@gmail.com>2017-08-10 18:52:45 +0300
committerFoghrye4 <foghrye4@gmail.com>2017-08-10 18:52:45 +0300
commit0427ab89f1753a44b30cbc35ce021cbbdc845109 (patch)
treeabe418ff5ec174e712fe8dedd434548a945b15a3 /src/main/java/ihl/nei_integration/LeadOvenRecipeHandler.java
parent877312184c472d9845e5ef1008bc538f4634059f (diff)
fix missing source folder
Diffstat (limited to 'src/main/java/ihl/nei_integration/LeadOvenRecipeHandler.java')
-rw-r--r--src/main/java/ihl/nei_integration/LeadOvenRecipeHandler.java83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/main/java/ihl/nei_integration/LeadOvenRecipeHandler.java b/src/main/java/ihl/nei_integration/LeadOvenRecipeHandler.java
new file mode 100644
index 0000000..8a7f686
--- /dev/null
+++ b/src/main/java/ihl/nei_integration/LeadOvenRecipeHandler.java
@@ -0,0 +1,83 @@
+package ihl.nei_integration;
+
+import java.awt.Rectangle;
+import java.util.Map;
+
+import ihl.processing.chemistry.LeadOvenGui;
+import ihl.processing.chemistry.LeadOvenTileEntity;
+import ihl.recipes.UniversalRecipeInput;
+import ihl.recipes.UniversalRecipeOutput;
+import net.minecraft.client.gui.inventory.GuiContainer;
+
+public class LeadOvenRecipeHandler extends MachineRecipeHandler {
+ @Override
+ public Class<? extends GuiContainer> getGuiClass() {
+ return LeadOvenGui.class;
+ }
+
+ @Override
+ protected int[] getInputPosX() {
+ return new int[] { 47 - 5, 65 - 5 };
+ }
+
+ @Override
+ protected int[] getInputPosY() {
+ return new int[] { 17 - 11 };
+ }
+
+ @Override
+ protected int[] getOutputPosX() {
+ return new int[] { 112 - 5 };
+ }
+
+ @Override
+ protected int[] getOutputPosY() {
+ return new int[] { 35 - 11 };
+ }
+
+ @Override
+ protected int[] getFluidOutputPosX() {
+ return new int[] { 9 - 5 };
+ }
+
+ @Override
+ protected int[] getFluidOutputPosY() {
+ return new int[] { 53 - 11 };
+ }
+
+ @Override
+ protected int[] getFluidInputPosX() {
+ return new int[] { 9 - 5 };
+ }
+
+ @Override
+ protected int[] getFluidInputPosY() {
+ return new int[] { 17 - 11 };
+ }
+
+ @Override
+ public String getRecipeId() {
+ return "ihl.leadOven";
+ }
+
+ @Override
+ public String getGuiTexture() {
+ return "ihl:textures/gui/GUILeadOven.png";
+ }
+
+ @Override
+ public String getOverlayIdentifier() {
+ return "leadOven";
+ }
+
+ @Override
+ public void loadTransferRects() {
+ this.transferRects.add(
+ new RecipeTransferRect(new Rectangle(80 - 10, 35 - 10, 22, 15), this.getRecipeId(), new Object[0]));
+ }
+
+ @Override
+ public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList() {
+ return LeadOvenTileEntity.getRecipes();
+ }
+}