diff options
| author | Foghrye4 <foghrye4@gmail.com> | 2017-02-07 20:16:24 +0300 |
|---|---|---|
| committer | Foghrye4 <foghrye4@gmail.com> | 2017-02-07 20:16:24 +0300 |
| commit | 2636ccdd67b5f33421ab7f9152021bc4ebc147b3 (patch) | |
| tree | bae55386c0a830ac74eeb5cd09ed7fa27ecc90dc /ihl/nei_integration/LabElectrolyzerRecipeHandler.java | |
| parent | 2db8e30b1d2151fdde5d08a6c06aef55f0c397d2 (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/LabElectrolyzerRecipeHandler.java')
| -rw-r--r-- | ihl/nei_integration/LabElectrolyzerRecipeHandler.java | 110 |
1 files changed, 48 insertions, 62 deletions
diff --git a/ihl/nei_integration/LabElectrolyzerRecipeHandler.java b/ihl/nei_integration/LabElectrolyzerRecipeHandler.java index 6948a31..ad40647 100644 --- a/ihl/nei_integration/LabElectrolyzerRecipeHandler.java +++ b/ihl/nei_integration/LabElectrolyzerRecipeHandler.java @@ -3,82 +3,68 @@ package ihl.nei_integration; import java.awt.Rectangle;
import java.util.Map;
-import codechicken.nei.recipe.TemplateRecipeHandler.RecipeTransferRect;
import ihl.processing.chemistry.LabElectrolyzerGui;
import ihl.processing.chemistry.LabElectrolyzerTileEntity;
import ihl.recipes.UniversalRecipeInput;
import ihl.recipes.UniversalRecipeOutput;
import net.minecraft.client.gui.inventory.GuiContainer;
+public class LabElectrolyzerRecipeHandler extends MachineRecipeHandler {
+ @Override
+ public Class<? extends GuiContainer> getGuiClass() {
+ return LabElectrolyzerGui.class;
+ }
-public class LabElectrolyzerRecipeHandler extends MachineRecipeHandler
-{
- @Override
- public Class <? extends GuiContainer > getGuiClass()
- {
- return LabElectrolyzerGui.class;
- }
-
- @Override
- protected int[] getInputPosX()
- {
- return new int[]{42-5,60-5,78-5};
- }
+ @Override
+ protected int[] getInputPosX() {
+ return new int[] { 42 - 5, 60 - 5, 78 - 5 };
+ }
- @Override
- protected int[] getInputPosY()
- {
- return new int[]{15-11};
- }
+ @Override
+ protected int[] getInputPosY() {
+ return new int[] { 15 - 11 };
+ }
- @Override
- protected int[] getOutputPosX()
- {
- return new int[]{8-5,87-5,106-5};
- }
+ @Override
+ protected int[] getOutputPosX() {
+ return new int[] { 8 - 5, 87 - 5, 106 - 5 };
+ }
- @Override
- protected int[] getOutputPosY()
- {
- return new int[]{15-11,51-11,15-11};
- }
+ @Override
+ protected int[] getOutputPosY() {
+ return new int[] { 15 - 11, 51 - 11, 15 - 11 };
+ }
+ @Override
+ public String getRecipeName() {
+ return "Lab electrolyzer";
+ }
- @Override
- public String getRecipeName()
- {
- return "Lab electrolyzer";
- }
+ @Override
+ public String getRecipeId() {
+ return "ihl.labElectrolyzer";
+ }
- @Override
- public String getRecipeId()
- {
- return "ihl.labElectrolyzer";
- }
+ @Override
+ public String getGuiTexture() {
+ return "ihl:textures/gui/GUILabElectrolyzer.png";
+ }
- @Override
- public String getGuiTexture()
- {
- return "ihl:textures/gui/GUILabElectrolyzer.png";
- }
-
- @Override
- public void loadTransferRects()
- {
- this.transferRects.add(new RecipeTransferRect(new Rectangle(7-5,32-10, 18, 18), this.getRecipeId(), new Object[0]));
- this.transferRects.add(new RecipeTransferRect(new Rectangle(86-5,32-10, 37, 18), this.getRecipeId(), new Object[0]));
- }
+ @Override
+ public void loadTransferRects() {
+ this.transferRects
+ .add(new RecipeTransferRect(new Rectangle(7 - 5, 32 - 10, 18, 18), this.getRecipeId(), new Object[0]));
+ this.transferRects
+ .add(new RecipeTransferRect(new Rectangle(86 - 5, 32 - 10, 37, 18), this.getRecipeId(), new Object[0]));
+ }
+ @Override
+ public String getOverlayIdentifier() {
+ return "labElectrolyzer";
+ }
- @Override
- public String getOverlayIdentifier()
- {
- return "labElectrolyzer";
- }
-
- @Override
- public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList()
- {
- return LabElectrolyzerTileEntity.getRecipes();
- }
+ @Override
+ public Map<UniversalRecipeInput, UniversalRecipeOutput> getRecipeList() {
+ return LabElectrolyzerTileEntity.getRecipes();
+ }
}
|
