diff options
author | Blood-Asp <bloodasphendrik@gmail.com> | 2015-06-24 19:34:37 +0200 |
---|---|---|
committer | Blood-Asp <bloodasphendrik@gmail.com> | 2015-06-24 19:34:37 +0200 |
commit | 6591e802e925a1f57d62b8d506936d6d5e9fde3c (patch) | |
tree | 53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/common/tileentities/machines | |
parent | 55c596b008807a7cb4b58422efd07636425be1e2 (diff) | |
parent | a1504799f44ba2debdfef06317f24e7f9c1129d6 (diff) | |
download | GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.tar.gz GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.tar.bz2 GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.zip |
Merge pull request #71 from aerospark/devel
Linenumber strip
Well, let's try this, but i'm not going trough all classes to make sure there is nothing broken.
Diffstat (limited to 'main/java/gregtech/common/tileentities/machines')
37 files changed, 4507 insertions, 4507 deletions
diff --git a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java index 567fa05557..1ca02b7c02 100644 --- a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java @@ -1,44 +1,44 @@ -/* 1: */ package gregtech.common.tileentities.machines;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
+package gregtech.common.tileentities.machines;
+
+import gregtech.api.enums.Dyes;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_BasicHull_Bronze
-/* 12: */ extends GT_MetaTileEntity_BasicHull_NonElectric
-/* 13: */ {
-/* 14: */ public GT_MetaTileEntity_BasicHull_Bronze(int aID, String aName, String aNameRegional, int aTier, String aDescription)
-/* 15: */ {
-/* 16:13 */ super(aID, aName, aNameRegional, aTier, aDescription);
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_BasicHull_Bronze(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 20: */ {
-/* 21:17 */ super(aName, aTier, aDescription, aTextures);
-/* 22: */ }
-/* 23: */
-/* 24: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 25: */ {
-/* 26:22 */ return new GT_MetaTileEntity_BasicHull_Bronze(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 30: */ {
-/* 31:27 */ ITexture[][][] rTextures = new ITexture[3][17][];
-/* 32:28 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 33: */ {
-/* 34:29 */ rTextures[0][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 35:30 */ rTextures[1][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 36:31 */ rTextures[2][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 37: */ }
-/* 38:33 */ return rTextures;
-/* 39: */ }
-/* 40: */ }
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
+import gregtech.api.objects.GT_RenderedTexture;
+
+public class GT_MetaTileEntity_BasicHull_Bronze
+ extends GT_MetaTileEntity_BasicHull_NonElectric
+{
+ public GT_MetaTileEntity_BasicHull_Bronze(int aID, String aName, String aNameRegional, int aTier, String aDescription)
+ {
+ super(aID, aName, aNameRegional, aTier, aDescription);
+ }
+
+ public GT_MetaTileEntity_BasicHull_Bronze(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BasicHull_Bronze(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[3][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {
+ rTextures[0][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[1][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[2][(i + 1)] = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZE_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ }
+ return rTextures;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java index cbad52bfc1..bd7004ba91 100644 --- a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java @@ -1,45 +1,45 @@ -/* 1: */ package gregtech.common.tileentities.machines;
-/* 2: */
-/* 3: */ import gregtech.api.enums.*;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_BasicHull_BronzeBricks
-/* 12: */ extends GT_MetaTileEntity_BasicHull_NonElectric
-/* 13: */ {
-/* 14: */ public GT_MetaTileEntity_BasicHull_BronzeBricks(int aID, String aName, String aNameRegional, int aTier, String aDescription)
-/* 15: */ {
-/* 16:13 */ super(aID, aName, aNameRegional, aTier, aDescription);
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_BasicHull_BronzeBricks(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 20: */ {
-/* 21:17 */ super(aName, aTier, aDescription, aTextures);
-/* 22: */ }
-/* 23: */
-/* 24: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 25: */ {
-/* 26:22 */ return new GT_MetaTileEntity_BasicHull_BronzeBricks(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 30: */ {
-/* 31:27 */ ITexture[][][] rTextures = new ITexture[3][17][];
-/* 32:28 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 33: */ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 34:29 */ rTextures[0][(i + 1)] = tmp0;
-/* 35:30 */ ITexture[] tmp1 = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+package gregtech.common.tileentities.machines;
+
+import gregtech.api.enums.*;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
+import gregtech.api.objects.GT_RenderedTexture;
+
+public class GT_MetaTileEntity_BasicHull_BronzeBricks
+ extends GT_MetaTileEntity_BasicHull_NonElectric
+{
+ public GT_MetaTileEntity_BasicHull_BronzeBricks(int aID, String aName, String aNameRegional, int aTier, String aDescription)
+ {
+ super(aID, aName, aNameRegional, aTier, aDescription);
+ }
+
+ public GT_MetaTileEntity_BasicHull_BronzeBricks(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BasicHull_BronzeBricks(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[3][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[0][(i + 1)] = tmp0;
+ ITexture[] tmp1 = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[1][(i + 1)] =tmp1;
-/* 36:31 */ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[2][(i + 1)] = tmp2;
-/* 37: */ }
-/* 38:33 */ return rTextures;
-/* 39: */ }
-/* 40: */ }
+ }
+ return rTextures;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java index b7eb59ff4c..77f3033bfd 100644 --- a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java @@ -1,46 +1,46 @@ -/* 1: */ package gregtech.common.tileentities.machines;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
+package gregtech.common.tileentities.machines;
+
+import gregtech.api.enums.Dyes;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_BasicHull_Steel
-/* 12: */ extends GT_MetaTileEntity_BasicHull_NonElectric
-/* 13: */ {
-/* 14: */ public GT_MetaTileEntity_BasicHull_Steel(int aID, String aName, String aNameRegional, int aTier, String aDescription)
-/* 15: */ {
-/* 16:13 */ super(aID, aName, aNameRegional, aTier, aDescription);
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_BasicHull_Steel(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 20: */ {
-/* 21:17 */ super(aName, aTier, aDescription, aTextures);
-/* 22: */ }
-/* 23: */
-/* 24: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 25: */ {
-/* 26:22 */ return new GT_MetaTileEntity_BasicHull_Steel(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 30: */ {
-/* 31:27 */ ITexture[][][] rTextures = new ITexture[3][17][];
-/* 32:28 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 33: */ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 34:29 */ rTextures[0][(i + 1)] = tmp0;
-/* 35:30 */ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
+import gregtech.api.objects.GT_RenderedTexture;
+
+public class GT_MetaTileEntity_BasicHull_Steel
+ extends GT_MetaTileEntity_BasicHull_NonElectric
+{
+ public GT_MetaTileEntity_BasicHull_Steel(int aID, String aName, String aNameRegional, int aTier, String aDescription)
+ {
+ super(aID, aName, aNameRegional, aTier, aDescription);
+ }
+
+ public GT_MetaTileEntity_BasicHull_Steel(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BasicHull_Steel(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[3][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[0][(i + 1)] = tmp0;
+ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[1][(i + 1)] = tmp1;
-/* 36:31 */ ITexture[] tmp2 = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ ITexture[] tmp2 = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEEL_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[2][(i + 1)] =tmp2;
-/* 37: */ }
-/* 38:33 */ return rTextures;
-/* 39: */ }
-/* 40: */ }
+ }
+ return rTextures;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java index 592d167da7..83bf759015 100644 --- a/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java @@ -1,46 +1,46 @@ -/* 1: */ package gregtech.common.tileentities.machines;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Dyes;
+package gregtech.common.tileentities.machines;
+
+import gregtech.api.enums.Dyes;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */
-/* 11: */ public class GT_MetaTileEntity_BasicHull_SteelBricks
-/* 12: */ extends GT_MetaTileEntity_BasicHull_NonElectric
-/* 13: */ {
-/* 14: */ public GT_MetaTileEntity_BasicHull_SteelBricks(int aID, String aName, String aNameRegional, int aTier, String aDescription)
-/* 15: */ {
-/* 16:13 */ super(aID, aName, aNameRegional, aTier, aDescription);
-/* 17: */ }
-/* 18: */
-/* 19: */ public GT_MetaTileEntity_BasicHull_SteelBricks(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
-/* 20: */ {
-/* 21:17 */ super(aName, aTier, aDescription, aTextures);
-/* 22: */ }
-/* 23: */
-/* 24: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 25: */ {
-/* 26:22 */ return new GT_MetaTileEntity_BasicHull_SteelBricks(this.mName, this.mTier, this.mDescription, this.mTextures);
-/* 27: */ }
-/* 28: */
-/* 29: */ public ITexture[][][] getTextureSet(ITexture[] aTextures)
-/* 30: */ {
-/* 31:27 */ ITexture[][][] rTextures = new ITexture[3][17][];
-/* 32:28 */ for (byte i = -1; i < 16; i = (byte)(i + 1))
-/* 33: */ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
-/* 34:29 */ rTextures[0][(i + 1)] = tmp0;
-/* 35:30 */ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicHull_NonElectric;
+import gregtech.api.objects.GT_RenderedTexture;
+
+public class GT_MetaTileEntity_BasicHull_SteelBricks
+ extends GT_MetaTileEntity_BasicHull_NonElectric
+{
+ public GT_MetaTileEntity_BasicHull_SteelBricks(int aID, String aName, String aNameRegional, int aTier, String aDescription)
+ {
+ super(aID, aName, aNameRegional, aTier, aDescription);
+ }
+
+ public GT_MetaTileEntity_BasicHull_SteelBricks(String aName, int aTier, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aTier, aDescription, aTextures);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BasicHull_SteelBricks(this.mName, this.mTier, this.mDescription, this.mTextures);
+ }
+
+ public ITexture[][][] getTextureSet(ITexture[] aTextures)
+ {
+ ITexture[][][] rTextures = new ITexture[3][17][];
+ for (byte i = -1; i < 16; i = (byte)(i + 1))
+ {ITexture[] tmp0 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_BOTTOM, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ rTextures[0][(i + 1)] = tmp0;
+ ITexture[] tmp1 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_TOP, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[1][(i + 1)] = tmp1;
-/* 36:31 */ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
+ ITexture[] tmp2 ={ new GT_RenderedTexture(Textures.BlockIcons.MACHINE_STEELBRICKS_SIDE, Dyes.getModulation(i, Dyes._NULL.mRGBa)) };
rTextures[2][(i + 1)] = tmp2;
-/* 37: */ }
-/* 38:33 */ return rTextures;
-/* 39: */ }
-/* 40: */ }
+ }
+ return rTextures;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java index cb00b8599a..a5a0e9c87f 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java @@ -1,97 +1,97 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.GT_Values;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.GT_Values;
import gregtech.api.enums.ItemList;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.interfaces.ITexture;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */ import gregtech.api.util.GT_ModHandler;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Recipe;
-/* 11: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 12: */ import gregtech.api.util.GT_Utility;
-/* 13: */ import net.minecraft.item.ItemStack;
-/* 14: */
-/* 15: */ public class GT_MetaTileEntity_Boxinator
-/* 16: */ extends GT_MetaTileEntity_BasicMachine
-/* 17: */ {
-/* 18: */ public GT_MetaTileEntity_Boxinator(int aID, String aName, String aNameRegional, int aTier)
-/* 19: */ {
-/* 20:18 */ super(aID, aName, aNameRegional, aTier, 1, "Puts things into Boxes", 2, 1, "Packager.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_BOXINATOR) });
-/* 21: */ }
-/* 22: */
-/* 23: */ public GT_MetaTileEntity_Boxinator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 24: */ {
-/* 25:22 */ super(aName, aTier, 1, aDescription, aTextures, 2, 1, aGUIName, aNEIName);
-/* 26: */ }
-/* 27: */
-/* 28: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 29: */ {
-/* 30:27 */ return new GT_MetaTileEntity_Boxinator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 31: */ }
-/* 32: */
-/* 33: */ public GT_Recipe.GT_Recipe_Map getRecipeList()
-/* 34: */ {
-/* 35:32 */ return GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes;
-/* 36: */ }
-/* 37: */
-/* 38: */ public int checkRecipe()
-/* 39: */ {
-/* 40:37 */ int tCheck = super.checkRecipe();
-/* 41:38 */ if (tCheck != 0) {
-/* 42:38 */ return tCheck;
-/* 43: */ }
-/* 44:39 */ if ((GT_Utility.isStackValid(getInputAt(0))) && (GT_Utility.isStackValid(getInputAt(1))) && (GT_Utility.getContainerItem(getInputAt(0), true) == null))
-/* 45: */ {
-/* 46:40 */ if ((ItemList.Schematic_1by1.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 1))
-/* 47: */ {
-/* 48:41 */ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0) });
-/* 49:42 */ if (this.mOutputItems[0] != null) {
-/* 50:42 */ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
-/* 51: */ {
-/* 52:43 */ getInputAt(0).stackSize -= 1;
-/* 53:44 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 54:45 */ this.mMaxProgresstime = (16 / (1 << this.mTier - 1));
-/* 55:46 */ return 2;
-/* 56: */ }
-/* 57: */ }
-/* 58:48 */ return 0;
-/* 59: */ }
-/* 60:50 */ if ((ItemList.Schematic_2by2.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 4))
-/* 61: */ {
-/* 62:51 */ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0), getInputAt(0), null, getInputAt(0), getInputAt(0) });
-/* 63:52 */ if (this.mOutputItems[0] != null) {
-/* 64:52 */ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
-/* 65: */ {
-/* 66:53 */ getInputAt(0).stackSize -= 4;
-/* 67:54 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 68:55 */ this.mMaxProgresstime = (32 / (1 << this.mTier - 1));
-/* 69:56 */ return 2;
-/* 70: */ }
-/* 71: */ }
-/* 72:58 */ return 0;
-/* 73: */ }
-/* 74:60 */ if ((ItemList.Schematic_3by3.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 9))
-/* 75: */ {
-/* 76:61 */ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0) });
-/* 77:62 */ if (this.mOutputItems[0] != null) {
-/* 78:62 */ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
-/* 79: */ {
-/* 80:63 */ getInputAt(0).stackSize -= 9;
-/* 81:64 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 82:65 */ this.mMaxProgresstime = (64 / (1 << this.mTier - 1));
-/* 83:66 */ return 2;
-/* 84: */ }
-/* 85: */ }
-/* 86:68 */ return 0;
-/* 87: */ }
-/* 88: */ }
-/* 89:71 */ return 0;
-/* 90: */ }
-/* 91: */
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.item.ItemStack;
+
+public class GT_MetaTileEntity_Boxinator
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_Boxinator(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Puts things into Boxes", 2, 1, "Packager.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_BOXINATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_BOXINATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_BOXINATOR) });
+ }
+
+ public GT_MetaTileEntity_Boxinator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 2, 1, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Boxinator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeList()
+ {
+ return GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes;
+ }
+
+ public int checkRecipe()
+ {
+ int tCheck = super.checkRecipe();
+ if (tCheck != 0) {
+ return tCheck;
+ }
+ if ((GT_Utility.isStackValid(getInputAt(0))) && (GT_Utility.isStackValid(getInputAt(1))) && (GT_Utility.getContainerItem(getInputAt(0), true) == null))
+ {
+ if ((ItemList.Schematic_1by1.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 1))
+ {
+ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0) });
+ if (this.mOutputItems[0] != null) {
+ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
+ {
+ getInputAt(0).stackSize -= 1;
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (16 / (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ return 0;
+ }
+ if ((ItemList.Schematic_2by2.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 4))
+ {
+ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0), getInputAt(0), null, getInputAt(0), getInputAt(0) });
+ if (this.mOutputItems[0] != null) {
+ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
+ {
+ getInputAt(0).stackSize -= 4;
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (32 / (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ return 0;
+ }
+ if ((ItemList.Schematic_3by3.isStackEqual(getInputAt(1))) && (getInputAt(0).stackSize >= 9))
+ {
+ this.mOutputItems[0] = GT_ModHandler.getRecipeOutput(new ItemStack[] { getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0), getInputAt(0) });
+ if (this.mOutputItems[0] != null) {
+ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
+ {
+ getInputAt(0).stackSize -= 9;
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (64 / (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ return 0;
+ }
+ }
+ return 0;
+ }
+
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
{
if(super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack))
@@ -103,7 +103,7 @@ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex else
return false;
}
-/* :1: */ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java index 4a123f4639..09389f7251 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java @@ -1,68 +1,68 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Textures;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 8: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 9: */ import gregtech.api.util.GT_Utility;
-/* 10: */ import net.minecraft.item.ItemStack;
-/* 11: */ import net.minecraft.nbt.NBTTagCompound;
-/* 12: */
-/* 13: */ public class GT_MetaTileEntity_Disassembler
-/* 14: */ extends GT_MetaTileEntity_BasicMachine
-/* 15: */ {
-/* 16: */ public GT_MetaTileEntity_Disassembler(int aID, String aName, String aNameRegional, int aTier)
-/* 17: */ {
-/* 18:15 */ super(aID, aName, aNameRegional, aTier, 1, "Disassembles Machines at " + (50 + 10 * aTier) + "% Efficiency", 1, 9, "Disassembler.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_DISASSEMBLER) });
-/* 19: */ }
-/* 20: */
-/* 21: */ public GT_MetaTileEntity_Disassembler(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 22: */ {
-/* 23:19 */ super(aName, aTier, 1, aDescription, aTextures, 1, 9, aGUIName, aNEIName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 27: */ {
-/* 28:24 */ return new GT_MetaTileEntity_Disassembler(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 29: */ }
-/* 30: */
-/* 31: */ public int checkRecipe()
-/* 32: */ {
-/* 33:29 */ if ((getInputAt(0) != null) && (isOutputEmpty()))
-/* 34: */ {
-/* 35:30 */ NBTTagCompound tNBT = getInputAt(0).getTagCompound();
-/* 36:31 */ if (tNBT != null)
-/* 37: */ {
-/* 38:32 */ tNBT = tNBT.getCompoundTag("GT.CraftingComponents");
-/* 39:33 */ if (tNBT != null)
-/* 40: */ {
-/* 41:34 */ getInputAt(0).stackSize -= 1;
-/* 42:35 */ this.mEUt = (16 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 43:36 */ this.mMaxProgresstime = 160;
-/* 44:37 */ for (int i = 0; i < this.mOutputItems.length; i++) {
-/* 45:37 */ if (getBaseMetaTileEntity().getRandomNumber(100) < 50 + 10 * this.mTier)
-/* 46: */ {
-/* 47:38 */ this.mOutputItems[i] = GT_Utility.loadItem(tNBT, "Ingredient." + i);
-/* 48:39 */ if (this.mOutputItems[i] != null) {
-/* 49:39 */ this.mMaxProgresstime *= 2;
-/* 50: */ }
-/* 51: */ }
-/* 52: */ }
-/* 53:41 */ return 2;
-/* 54: */ }
-/* 55: */ }
-/* 56: */ }
-/* 57:45 */ return 0;
-/* 58: */ }
-/* 59: */
-/* 60: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 61: */ {
-/* 62:50 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (aStack.getTagCompound() != null) && (aStack.getTagCompound().getCompoundTag("GT.CraftingComponents") != null);
-/* 63: */ }
-/* 64: */ }
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+
+public class GT_MetaTileEntity_Disassembler
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_Disassembler(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Disassembles Machines at " + (50 + 10 * aTier) + "% Efficiency", 1, 9, "Disassembler.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_DISASSEMBLER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_DISASSEMBLER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_DISASSEMBLER) });
+ }
+
+ public GT_MetaTileEntity_Disassembler(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 1, 9, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Disassembler(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public int checkRecipe()
+ {
+ if ((getInputAt(0) != null) && (isOutputEmpty()))
+ {
+ NBTTagCompound tNBT = getInputAt(0).getTagCompound();
+ if (tNBT != null)
+ {
+ tNBT = tNBT.getCompoundTag("GT.CraftingComponents");
+ if (tNBT != null)
+ {
+ getInputAt(0).stackSize -= 1;
+ this.mEUt = (16 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = 160;
+ for (int i = 0; i < this.mOutputItems.length; i++) {
+ if (getBaseMetaTileEntity().getRandomNumber(100) < 50 + 10 * this.mTier)
+ {
+ this.mOutputItems[i] = GT_Utility.loadItem(tNBT, "Ingredient." + i);
+ if (this.mOutputItems[i] != null) {
+ this.mMaxProgresstime *= 2;
+ }
+ }
+ }
+ return 2;
+ }
+ }
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (aStack.getTagCompound() != null) && (aStack.getTagCompound().getCompoundTag("GT.CraftingComponents") != null);
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java index 2a26825db4..07337cd305 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java @@ -1,80 +1,80 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.ConfigCategories;
-/* 4: */ import gregtech.api.enums.ItemList;
-/* 5: */ import gregtech.api.enums.Materials;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.ConfigCategories;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 6: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 7: */ import gregtech.api.interfaces.ITexture;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 10: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 11: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 12: */ import gregtech.api.util.GT_Config;
-/* 13: */ import net.minecraftforge.fluids.FluidStack;
-/* 14: */
-/* 15: */ public class GT_MetaTileEntity_Massfabricator
-/* 16: */ extends GT_MetaTileEntity_BasicMachine
-/* 17: */ {
-/* 18:17 */ public static int sUUAperUUM = 1;
-/* 19:17 */ public static int sUUASpeedBonus = 4;
-/* 20:17 */ public static int sDurationMultiplier = 3215;
-/* 21:18 */ public static boolean sRequiresUUA = false;
-/* 22: */
-/* 23: */ public GT_MetaTileEntity_Massfabricator(int aID, String aName, String aNameRegional, int aTier)
-/* 24: */ {
-/* 25:21 */ super(aID, aName, aNameRegional, aTier, 1, "UUM = Matter * Fabrication Squared", 1, 1, "Massfabricator.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB) });
-/* 26: */ }
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_Massfabricator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 29: */ {
-/* 30:25 */ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
-/* 31: */ }
-/* 32: */
-/* 33: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 34: */ {
-/* 35:30 */ return new GT_MetaTileEntity_Massfabricator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 36: */ }
-/* 37: */
-/* 38: */ public void onConfigLoad(GT_Config aConfig)
-/* 39: */ {
-/* 40:35 */ super.onConfigLoad(aConfig);
-/* 41:36 */ sDurationMultiplier = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUM_Duration_Multiplier", sDurationMultiplier);
-/* 42:37 */ sUUAperUUM = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_per_UUM", sUUAperUUM);
-/* 43:38 */ sUUASpeedBonus = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_Speed_Bonus", sUUASpeedBonus);
-/* 44:39 */ sRequiresUUA = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_Requirement", sRequiresUUA);
-/* 45:40 */ Materials.UUAmplifier.mChemicalFormula = ("Mass Fabricator Eff/Speed Bonus: x" + sUUASpeedBonus);
-/* 46: */ }
-/* 47: */
-/* 48: */ public int checkRecipe()
-/* 49: */ {
-/* 50:45 */ FluidStack tFluid = getDrainableStack();
-/* 51:46 */ if ((tFluid == null) || (tFluid.amount < getCapacity()))
-/* 52: */ {
-/* 53:47 */ this.mOutputFluid = Materials.UUMatter.getFluid(1L);
-/* 54:48 */ this.mEUt = ((int)gregtech.api.enums.GT_Values.V[this.mTier]);
-/* 55:49 */ this.mMaxProgresstime = (sDurationMultiplier / (1 << this.mTier - 1));
-/* 56:51 */ if (((tFluid = getFillableStack()) != null) && (tFluid.amount >= sUUAperUUM) && (tFluid.isFluidEqual(Materials.UUAmplifier.getFluid(1L))))
-/* 57: */ {
-/* 58:52 */ tFluid.amount -= sUUAperUUM;
-/* 59:53 */ this.mMaxProgresstime /= sUUASpeedBonus;
-/* 60:54 */ return 2;
-/* 61: */ }
-/* 62:56 */ return (sRequiresUUA) || (ItemList.Circuit_Integrated.isStackEqual(getInputAt(0), true, true)) ? 1 : 2;
-/* 63: */ }
-/* 64:58 */ return 0;
-/* 65: */ }
-/* 66: */
-/* 67: */ public boolean isFluidInputAllowed(FluidStack aFluid)
-/* 68: */ {
-/* 69:63 */ return aFluid.isFluidEqual(Materials.UUAmplifier.getFluid(1L));
-/* 70: */ }
-/* 71: */
-/* 72: */ public int getCapacity()
-/* 73: */ {
-/* 74:68 */ return Math.max(sUUAperUUM, 1000);
-/* 75: */ }
-/* 76: */ }
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Config;
+import net.minecraftforge.fluids.FluidStack;
+
+public class GT_MetaTileEntity_Massfabricator
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public static int sUUAperUUM = 1;
+ public static int sUUASpeedBonus = 4;
+ public static int sDurationMultiplier = 3215;
+ public static boolean sRequiresUUA = false;
+
+ public GT_MetaTileEntity_Massfabricator(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "UUM = Matter * Fabrication Squared", 1, 1, "Massfabricator.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_MASSFAB), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_MASSFAB) });
+ }
+
+ public GT_MetaTileEntity_Massfabricator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Massfabricator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public void onConfigLoad(GT_Config aConfig)
+ {
+ super.onConfigLoad(aConfig);
+ sDurationMultiplier = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUM_Duration_Multiplier", sDurationMultiplier);
+ sUUAperUUM = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_per_UUM", sUUAperUUM);
+ sUUASpeedBonus = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_Speed_Bonus", sUUASpeedBonus);
+ sRequiresUUA = aConfig.get(ConfigCategories.machineconfig, "Massfabricator.UUA_Requirement", sRequiresUUA);
+ Materials.UUAmplifier.mChemicalFormula = ("Mass Fabricator Eff/Speed Bonus: x" + sUUASpeedBonus);
+ }
+
+ public int checkRecipe()
+ {
+ FluidStack tFluid = getDrainableStack();
+ if ((tFluid == null) || (tFluid.amount < getCapacity()))
+ {
+ this.mOutputFluid = Materials.UUMatter.getFluid(1L);
+ this.mEUt = ((int)gregtech.api.enums.GT_Values.V[this.mTier]);
+ this.mMaxProgresstime = (sDurationMultiplier / (1 << this.mTier - 1));
+ if (((tFluid = getFillableStack()) != null) && (tFluid.amount >= sUUAperUUM) && (tFluid.isFluidEqual(Materials.UUAmplifier.getFluid(1L))))
+ {
+ tFluid.amount -= sUUAperUUM;
+ this.mMaxProgresstime /= sUUASpeedBonus;
+ return 2;
+ }
+ return (sRequiresUUA) || (ItemList.Circuit_Integrated.isStackEqual(getInputAt(0), true, true)) ? 1 : 2;
+ }
+ return 0;
+ }
+
+ public boolean isFluidInputAllowed(FluidStack aFluid)
+ {
+ return aFluid.isFluidEqual(Materials.UUAmplifier.getFluid(1L));
+ }
+
+ public int getCapacity()
+ {
+ return Math.max(sUUAperUUM, 1000);
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java index 7bfacc6b06..5064b50cb5 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java @@ -1,162 +1,162 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
-/* 4: */ import gregtech.api.enums.OrePrefixes;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
-/* 14: */ import net.minecraft.init.Items;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */ import net.minecraftforge.fluids.Fluid;
-/* 17: */ import net.minecraftforge.fluids.FluidRegistry;
-/* 18: */ import net.minecraftforge.fluids.FluidStack;
-/* 19: */
-/* 20: */ public class GT_MetaTileEntity_PotionBrewer
-/* 21: */ extends GT_MetaTileEntity_BasicMachine
-/* 22: */ {
-/* 23: */ public GT_MetaTileEntity_PotionBrewer(int aID, String aName, String aNameRegional, int aTier)
-/* 24: */ {
-/* 25: 21 */ super(aID, aName, aNameRegional, aTier, 1, "Brewing your Drinks", 1, 0, "PotionBrewer.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_POTIONBREWER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_POTIONBREWER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_POTIONBREWER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_POTIONBREWER) });
-/* 26: */ }
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_PotionBrewer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 29: */ {
-/* 30: 25 */ super(aName, aTier, 1, aDescription, aTextures, 1, 0, aGUIName, aNEIName);
-/* 31: */ }
-/* 32: */
-/* 33: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 34: */ {
-/* 35: 30 */ return new GT_MetaTileEntity_PotionBrewer(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 36: */ }
-/* 37: */
-/* 38: */ public GT_Recipe.GT_Recipe_Map getRecipeList()
-/* 39: */ {
-/* 40: 35 */ return GT_Recipe.GT_Recipe_Map.sBrewingRecipes;
-/* 41: */ }
-/* 42: */
-/* 43: */ public int checkRecipe()
-/* 44: */ {
-/* 45: 40 */ int tCheck = super.checkRecipe();
-/* 46: 41 */ if (tCheck != 0) {
-/* 47: 41 */ return tCheck;
-/* 48: */ }
-/* 49: 43 */ FluidStack aFluid = getFillableStack();
-/* 50: 44 */ if ((getDrainableStack() == null) && (aFluid != null) && (getInputAt(0) != null))
-/* 51: */ {
-/* 52: 45 */ String tInputName = aFluid.getFluid().getName();
-/* 53: 46 */ if (tInputName.startsWith("potion."))
-/* 54: */ {
-/* 55: 47 */ tInputName = tInputName.replaceFirst("potion.", "");
-/* 56: 48 */ int tFirstDot = tInputName.indexOf('.') + 1;
-/* 57: 49 */ String tModifier = tFirstDot <= 0 ? "" : tInputName.substring(tFirstDot);
-/* 58: 50 */ if (!tModifier.isEmpty()) {
-/* 59: 50 */ tInputName = tInputName.replaceFirst("." + tModifier, "");
-/* 60: */ }
-/* 61: 52 */ if (GT_Utility.areStacksEqual(new ItemStack(Items.fermented_spider_eye, 1, 0), getInputAt(0)))
-/* 62: */ {
-/* 63: 53 */ if (tInputName.equals("poison")) {
-/* 64: 53 */ return setOutput("potion.damage" + tModifier);
-/* 65: */ }
-/* 66: 54 */ if (tInputName.equals("health")) {
-/* 67: 54 */ return setOutput("potion.damage" + tModifier);
-/* 68: */ }
-/* 69: 55 */ if (tInputName.equals("waterbreathing")) {
-/* 70: 55 */ return setOutput("potion.damage" + tModifier);
-/* 71: */ }
-/* 72: 56 */ if (tInputName.equals("nightvision")) {
-/* 73: 56 */ return setOutput("potion.invisibility" + tModifier);
-/* 74: */ }
-/* 75: 57 */ if (tInputName.equals("fireresistance")) {
-/* 76: 57 */ return setOutput("potion.slowness" + tModifier);
-/* 77: */ }
-/* 78: 58 */ if (tInputName.equals("speed")) {
-/* 79: 58 */ return setOutput("potion.slowness" + tModifier);
-/* 80: */ }
-/* 81: 59 */ if (tInputName.equals("strength")) {
-/* 82: 59 */ return setOutput("potion.weakness" + tModifier);
-/* 83: */ }
-/* 84: 60 */ if (tInputName.equals("regen")) {
-/* 85: 60 */ return setOutput("potion.poison" + tModifier);
-/* 86: */ }
-/* 87: 61 */ return setOutput("potion.weakness");
-/* 88: */ }
-/* 89: 63 */ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L), getInputAt(0)))
-/* 90: */ {
-/* 91: 64 */ if (!tModifier.startsWith("strong")) {
-/* 92: 64 */ return setOutput("potion." + tInputName + ".strong" + (tModifier.isEmpty() ? "" : new StringBuilder().append(".").append(tModifier).toString()));
-/* 93: */ }
-/* 94: 65 */ if (tModifier.startsWith("long")) {
-/* 95: 65 */ return setOutput("potion." + tInputName + tModifier.replaceFirst("long", ""));
-/* 96: */ }
-/* 97: 66 */ return setOutput("potion.thick");
-/* 98: */ }
-/* 99: 68 */ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), getInputAt(0)))
-/* 100: */ {
-/* 101: 69 */ if (!tModifier.startsWith("long")) {
-/* 102: 69 */ return setOutput("potion." + tInputName + ".long" + (tModifier.isEmpty() ? "" : new StringBuilder().append(".").append(tModifier).toString()));
-/* 103: */ }
-/* 104: 70 */ if (tModifier.startsWith("strong")) {
-/* 105: 70 */ return setOutput("potion." + tInputName + tModifier.replaceFirst("strong", ""));
-/* 106: */ }
-/* 107: 71 */ return setOutput("potion.mundane");
-/* 108: */ }
-/* 109: 73 */ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1L), getInputAt(0)))
-/* 110: */ {
-/* 111: 74 */ if (!tInputName.endsWith(".splash")) {
-/* 112: 74 */ return setOutput("potion." + tInputName + ".splash");
-/* 113: */ }
-/* 114: 75 */ return setOutput("potion.mundane");
-/* 115: */ }
-/* 116: */ }
-/* 117: */ }
-/* 118: 79 */ return 0;
-/* 119: */ }
-/* 120: */
-/* 121: */ private final int setOutput(String aFluidName)
-/* 122: */ {
-/* 123: 83 */ this.mOutputFluid = FluidRegistry.getFluidStack(aFluidName, 750);
-/* 124: 84 */ if (this.mOutputFluid == null)
-/* 125: */ {
-/* 126: 85 */ this.mOutputFluid = FluidRegistry.getFluidStack("potion.mundane", getFillableStack().amount);
-/* 127: 86 */ getInputAt(0).stackSize -= 1;
-/* 128: 87 */ getFillableStack().amount = 0;
-/* 129: 88 */ this.mEUt = (4 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 130: 89 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 131: 90 */ return 2;
-/* 132: */ }
-/* 133: 92 */ if (getFillableStack().amount < 750) {
-/* 134: 92 */ return 0;
-/* 135: */ }
-/* 136: 93 */ getInputAt(0).stackSize -= 1;
-/* 137: 94 */ getFillableStack().amount -= 750;
-/* 138: 95 */ this.mEUt = (4 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 139: 96 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 140: 97 */ return 2;
-/* 141: */ }
-/* 142: */
-/* 143: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 144: */ {
-/* 145:102 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
-/* 146: */ }
-/* 147: */
-/* 148: */ public boolean isFluidInputAllowed(FluidStack aFluid)
-/* 149: */ {
-/* 150:107 */ return (aFluid.getFluid().getName().startsWith("potion.")) || (super.isFluidInputAllowed(aFluid));
-/* 151: */ }
-/* 152: */
-/* 153: */ public int getCapacity()
-/* 154: */ {
-/* 155:112 */ return 750;
-/* 156: */ }
-/* 157: */ }
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.fluids.Fluid;
+import net.minecraftforge.fluids.FluidRegistry;
+import net.minecraftforge.fluids.FluidStack;
+
+public class GT_MetaTileEntity_PotionBrewer
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_PotionBrewer(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Brewing your Drinks", 1, 0, "PotionBrewer.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_POTIONBREWER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_POTIONBREWER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_POTIONBREWER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_POTIONBREWER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_POTIONBREWER) });
+ }
+
+ public GT_MetaTileEntity_PotionBrewer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 1, 0, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_PotionBrewer(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeList()
+ {
+ return GT_Recipe.GT_Recipe_Map.sBrewingRecipes;
+ }
+
+ public int checkRecipe()
+ {
+ int tCheck = super.checkRecipe();
+ if (tCheck != 0) {
+ return tCheck;
+ }
+ FluidStack aFluid = getFillableStack();
+ if ((getDrainableStack() == null) && (aFluid != null) && (getInputAt(0) != null))
+ {
+ String tInputName = aFluid.getFluid().getName();
+ if (tInputName.startsWith("potion."))
+ {
+ tInputName = tInputName.replaceFirst("potion.", "");
+ int tFirstDot = tInputName.indexOf('.') + 1;
+ String tModifier = tFirstDot <= 0 ? "" : tInputName.substring(tFirstDot);
+ if (!tModifier.isEmpty()) {
+ tInputName = tInputName.replaceFirst("." + tModifier, "");
+ }
+ if (GT_Utility.areStacksEqual(new ItemStack(Items.fermented_spider_eye, 1, 0), getInputAt(0)))
+ {
+ if (tInputName.equals("poison")) {
+ return setOutput("potion.damage" + tModifier);
+ }
+ if (tInputName.equals("health")) {
+ return setOutput("potion.damage" + tModifier);
+ }
+ if (tInputName.equals("waterbreathing")) {
+ return setOutput("potion.damage" + tModifier);
+ }
+ if (tInputName.equals("nightvision")) {
+ return setOutput("potion.invisibility" + tModifier);
+ }
+ if (tInputName.equals("fireresistance")) {
+ return setOutput("potion.slowness" + tModifier);
+ }
+ if (tInputName.equals("speed")) {
+ return setOutput("potion.slowness" + tModifier);
+ }
+ if (tInputName.equals("strength")) {
+ return setOutput("potion.weakness" + tModifier);
+ }
+ if (tInputName.equals("regen")) {
+ return setOutput("potion.poison" + tModifier);
+ }
+ return setOutput("potion.weakness");
+ }
+ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Glowstone, 1L), getInputAt(0)))
+ {
+ if (!tModifier.startsWith("strong")) {
+ return setOutput("potion." + tInputName + ".strong" + (tModifier.isEmpty() ? "" : new StringBuilder().append(".").append(tModifier).toString()));
+ }
+ if (tModifier.startsWith("long")) {
+ return setOutput("potion." + tInputName + tModifier.replaceFirst("long", ""));
+ }
+ return setOutput("potion.thick");
+ }
+ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L), getInputAt(0)))
+ {
+ if (!tModifier.startsWith("long")) {
+ return setOutput("potion." + tInputName + ".long" + (tModifier.isEmpty() ? "" : new StringBuilder().append(".").append(tModifier).toString()));
+ }
+ if (tModifier.startsWith("strong")) {
+ return setOutput("potion." + tInputName + tModifier.replaceFirst("strong", ""));
+ }
+ return setOutput("potion.mundane");
+ }
+ if (GT_Utility.areStacksEqual(GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Gunpowder, 1L), getInputAt(0)))
+ {
+ if (!tInputName.endsWith(".splash")) {
+ return setOutput("potion." + tInputName + ".splash");
+ }
+ return setOutput("potion.mundane");
+ }
+ }
+ }
+ return 0;
+ }
+
+ private final int setOutput(String aFluidName)
+ {
+ this.mOutputFluid = FluidRegistry.getFluidStack(aFluidName, 750);
+ if (this.mOutputFluid == null)
+ {
+ this.mOutputFluid = FluidRegistry.getFluidStack("potion.mundane", getFillableStack().amount);
+ getInputAt(0).stackSize -= 1;
+ getFillableStack().amount = 0;
+ this.mEUt = (4 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ return 2;
+ }
+ if (getFillableStack().amount < 750) {
+ return 0;
+ }
+ getInputAt(0).stackSize -= 1;
+ getFillableStack().amount -= 750;
+ this.mEUt = (4 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ return 2;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
+ }
+
+ public boolean isFluidInputAllowed(FluidStack aFluid)
+ {
+ return (aFluid.getFluid().getName().startsWith("potion.")) || (super.isFluidInputAllowed(aFluid));
+ }
+
+ public int getCapacity()
+ {
+ return 750;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java index 8cd02d4c3d..bf10c5143e 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java @@ -1,68 +1,68 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.OrePrefixes;
-/* 4: */ import gregtech.api.interfaces.ITexture;
-/* 5: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 6: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 7: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 8: */ import gregtech.api.util.GT_OreDictUnificator;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.OrePrefixes;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
-/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 10: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 11: */ import java.util.ArrayList;
+import net.minecraft.item.ItemStack;
-/* 12: */ import net.minecraft.item.ItemStack;
-/* 13: */
-/* 14: */ public class GT_MetaTileEntity_Printer
-/* 15: */ extends GT_MetaTileEntity_BasicMachine
-/* 16: */ {
-/* 17: */ public GT_MetaTileEntity_Printer(int aID, String aName, String aNameRegional, int aTier)
-/* 18: */ {
-/* 19:19 */ super(aID, aName, aNameRegional, aTier, 1, "It can copy Books and paint Stuff", 1, 1, "Printer.png", GT_Recipe.GT_Recipe_Map.sPrinterRecipes.mNEIName, new ITexture[0]);
-/* 20: */ }
-/* 21: */
-/* 22: */ public GT_MetaTileEntity_Printer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 23: */ {
-/* 24:23 */ super(aName, aTier, 1, aDescription, aTextures, 2, 2, aGUIName, aNEIName);
-/* 25: */ }
-/* 26: */
-/* 27: */ public int checkRecipe()
-/* 28: */ {
-/* 29:28 */ if (getOutputAt(0) != null)
-/* 30: */ {
-/* 31:29 */ this.mOutputBlocked += 1;
-/* 32: */ }
-/* 33:30 */ else if ((GT_Utility.isStackValid(getInputAt(0))) && (getInputAt(0).stackSize > 0) &&
-/* 34:31 */ (GT_Utility.isStackInvalid(getSpecialSlot())) &&
-/* 35:32 */ (OrePrefixes.block.contains(getInputAt(0))))
-/* 36: */ {
-/* 37:33 */ ArrayList<ItemStack> tList = GT_OreDictUnificator.getOres(GT_OreDictUnificator.getAssociation(getInputAt(0)));
-/* 38:34 */ if (tList.size() > 1)
-/* 39: */ {
-/* 40:35 */ tList.add(tList.get(0));
-/* 41:36 */ int i = 0;
-/* 42:36 */ for (int j = tList.size() - 1; i < j; i++) {
-/* 43:37 */ if (GT_Utility.areStacksEqual(getInputAt(0), (ItemStack)tList.get(i)))
-/* 44: */ {
-/* 45:38 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { tList.get(i + 1) });
-/* 46:39 */ this.mEUt = (1 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 47:40 */ this.mMaxProgresstime = (32 / (1 << this.mTier - 1));
-/* 48:41 */ getInputAt(0).stackSize -= 1;
-/* 49:42 */ return 2;
-/* 50: */ }
-/* 51: */ }
-/* 52: */ }
-/* 53: */ }
-/* 54:49 */ this.mMaxProgresstime = 0;
-/* 55:50 */ return 0;
-/* 56: */ }
-/* 57: */
-/* 58: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 59: */ {
-/* 60:56 */ return null;
-/* 61: */ }
-/* 62: */ }
+public class GT_MetaTileEntity_Printer
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_Printer(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "It can copy Books and paint Stuff", 1, 1, "Printer.png", GT_Recipe.GT_Recipe_Map.sPrinterRecipes.mNEIName, new ITexture[0]);
+ }
+
+ public GT_MetaTileEntity_Printer(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 2, 2, aGUIName, aNEIName);
+ }
+
+ public int checkRecipe()
+ {
+ if (getOutputAt(0) != null)
+ {
+ this.mOutputBlocked += 1;
+ }
+ else if ((GT_Utility.isStackValid(getInputAt(0))) && (getInputAt(0).stackSize > 0) &&
+ (GT_Utility.isStackInvalid(getSpecialSlot())) &&
+ (OrePrefixes.block.contains(getInputAt(0))))
+ {
+ ArrayList<ItemStack> tList = GT_OreDictUnificator.getOres(GT_OreDictUnificator.getAssociation(getInputAt(0)));
+ if (tList.size() > 1)
+ {
+ tList.add(tList.get(0));
+ int i = 0;
+ for (int j = tList.size() - 1; i < j; i++) {
+ if (GT_Utility.areStacksEqual(getInputAt(0), (ItemStack)tList.get(i)))
+ {
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { tList.get(i + 1) });
+ this.mEUt = (1 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ this.mMaxProgresstime = (32 / (1 << this.mTier - 1));
+ getInputAt(0).stackSize -= 1;
+ return 2;
+ }
+ }
+ }
+ }
+ this.mMaxProgresstime = 0;
+ return 0;
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return null;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java index c2020ca7fa..d81103fbc5 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java @@ -1,122 +1,122 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Element;
-/* 5: */ import gregtech.api.enums.ItemList;
-/* 6: */ import gregtech.api.enums.Materials;
-/* 7: */ import gregtech.api.enums.OrePrefixes;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Element;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 8: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 9: */ import gregtech.api.interfaces.ITexture;
-/* 10: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 11: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 12: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 13: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 14: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 15: */ import gregtech.api.util.GT_Utility;
-/* 16: */ import gregtech.common.items.behaviors.Behaviour_DataOrb;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.items.behaviors.Behaviour_DataOrb;
+
+import java.util.ArrayList;
+import java.util.Collection;
+import java.util.Iterator;
-/* 17: */ import java.util.ArrayList;
-/* 18: */ import java.util.Collection;
-/* 19: */ import java.util.Iterator;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.fluids.FluidStack;
-/* 20: */ import net.minecraft.item.ItemStack;
-/* 21: */ import net.minecraftforge.fluids.FluidStack;
-/* 22: */
-/* 23: */ public class GT_MetaTileEntity_Replicator
-/* 24: */ extends GT_MetaTileEntity_BasicMachine
-/* 25: */ {
-/* 26:18 */ private static int sHeaviestElementMass = 0;
-/* 27: */
-/* 28: */ public GT_MetaTileEntity_Replicator(int aID, String aName, String aNameRegional, int aTier)
-/* 29: */ {
-/* 30:21 */ super(aID, aName, aNameRegional, aTier, 1, "Producing Elemental Matter", 1, 1, "Replicator.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_REPLICATOR) });
-/* 31: */ }
-/* 32: */
-/* 33: */ public GT_MetaTileEntity_Replicator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 34: */ {
-/* 35:25 */ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
-/* 36: */ }
-/* 37: */
-/* 38: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 39: */ {
-/* 40:30 */ return new GT_MetaTileEntity_Replicator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 41: */ }
-/* 42: */
-/* 43: */ public int checkRecipe()
-/* 44: */ {
-/* 45:35 */ FluidStack tFluid = getFillableStack();
-/* 46:36 */ if ((tFluid != null) && (tFluid.isFluidEqual(Materials.UUMatter.getFluid(1L))))
-/* 47: */ {
-/* 48:37 */ ItemStack tDataOrb = getSpecialSlot();
-/* 49:38 */ if ((ItemList.Tool_DataOrb.isStackEqual(tDataOrb, false, true)) && (Behaviour_DataOrb.getDataTitle(tDataOrb).equals("Elemental-Scan")))
-/* 50: */ {
-/* 51:39 */ Materials tMaterial = (Materials)Element.get(Behaviour_DataOrb.getDataName(tDataOrb)).mLinkedMaterials.get(0);
-/* 52:40 */ long tMass = tMaterial.getMass();
-/* 53:41 */ if ((tFluid.amount >= tMass) && (tMass > 0L))
-/* 54: */ {
-/* 55:42 */ this.mEUt = ((int)gregtech.api.enums.GT_Values.V[this.mTier]);
-/* 56:43 */ this.mMaxProgresstime = ((int)(tMass * 512L / (1 << this.mTier - 1)));
-/* 57:44 */ if ((this.mOutputItems[0] = GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial, 1L)) == null)
-/* 58: */ {
-/* 59:45 */ if ((this.mOutputItems[0] = GT_OreDictUnificator.get(OrePrefixes.cell, tMaterial, 1L)) != null) {
-/* 60:46 */ if ((this.mOutputFluid = GT_Utility.getFluidForFilledItem(this.mOutputItems[0], true)) == null)
-/* 61: */ {
-/* 62:47 */ if (ItemList.Cell_Empty.isStackEqual(getInputAt(0))) {
-/* 63:48 */ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
-/* 64: */ {
-/* 65:49 */ getInputAt(0).stackSize -= 1; FluidStack
-/* 66:50 */ tmp231_230 = tFluid;tmp231_230.amount = ((int)(tmp231_230.amount - tMass));
-/* 67:51 */ return 2;
-/* 68: */ }
-/* 69: */ }
-/* 70: */ }
-/* 71: */ else
-/* 72: */ {
-/* 73:55 */ this.mOutputItems[0] = null;
-/* 74:56 */ if ((getDrainableStack() == null) || ((getDrainableStack().isFluidEqual(this.mOutputFluid)) && (getDrainableStack().amount < 16000)))
-/* 75: */ {
-/* 76:57 */ FluidStack tmp287_286 = tFluid;tmp287_286.amount = ((int)(tmp287_286.amount - tMass));
-/* 77:58 */ return 2;
-/* 78: */ }
-/* 79: */ }
-/* 80: */ }
-/* 81: */ }
-/* 82:62 */ else if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
-/* 83: */ {
-/* 84:63 */ FluidStack tmp322_321 = tFluid;tmp322_321.amount = ((int)(tmp322_321.amount - tMass));
-/* 85:64 */ return 2;
-/* 86: */ }
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90:69 */ return 0;
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 94: */ {
-/* 95:74 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (ItemList.Cell_Empty.isStackEqual(aStack));
-/* 96: */ }
-/* 97: */
-/* 98: */ public boolean isFluidInputAllowed(FluidStack aFluid)
-/* 99: */ {
-/* :0:79 */ return aFluid.isFluidEqual(Materials.UUMatter.getFluid(1L));
-/* :1: */ }
-/* :2: */
-/* :3: */ public int getCapacity()
-/* :4: */ {
-/* :5:84 */ if ((sHeaviestElementMass == 0) && (GregTech_API.sPostloadFinished))
-/* :6: */ {
-/* :7: */ Materials tMaterial;
-/* :8:84 */ for (Iterator i$ = Materials.VALUES.iterator(); i$.hasNext(); sHeaviestElementMass = Math.max(sHeaviestElementMass, (int)tMaterial.getMass()))
-/* :9: */ {
-/* ;0:84 */ tMaterial = (Materials)i$.next();
-/* ;1:84 */ if ((tMaterial.mElement == null) || (tMaterial.mElement.mIsIsotope)) {}
-/* ;2: */ }
-/* ;3: */ }
-/* ;4:85 */ return sHeaviestElementMass;
-/* ;5: */ }
-/* ;6: */ }
+public class GT_MetaTileEntity_Replicator
+ extends GT_MetaTileEntity_BasicMachine
+{
+ private static int sHeaviestElementMass = 0;
+
+ public GT_MetaTileEntity_Replicator(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Producing Elemental Matter", 1, 1, "Replicator.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_REPLICATOR), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_REPLICATOR_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_REPLICATOR) });
+ }
+
+ public GT_MetaTileEntity_Replicator(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Replicator(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public int checkRecipe()
+ {
+ FluidStack tFluid = getFillableStack();
+ if ((tFluid != null) && (tFluid.isFluidEqual(Materials.UUMatter.getFluid(1L))))
+ {
+ ItemStack tDataOrb = getSpecialSlot();
+ if ((ItemList.Tool_DataOrb.isStackEqual(tDataOrb, false, true)) && (Behaviour_DataOrb.getDataTitle(tDataOrb).equals("Elemental-Scan")))
+ {
+ Materials tMaterial = (Materials)Element.get(Behaviour_DataOrb.getDataName(tDataOrb)).mLinkedMaterials.get(0);
+ long tMass = tMaterial.getMass();
+ if ((tFluid.amount >= tMass) && (tMass > 0L))
+ {
+ this.mEUt = ((int)gregtech.api.enums.GT_Values.V[this.mTier]);
+ this.mMaxProgresstime = ((int)(tMass * 512L / (1 << this.mTier - 1)));
+ if ((this.mOutputItems[0] = GT_OreDictUnificator.get(OrePrefixes.dust, tMaterial, 1L)) == null)
+ {
+ if ((this.mOutputItems[0] = GT_OreDictUnificator.get(OrePrefixes.cell, tMaterial, 1L)) != null) {
+ if ((this.mOutputFluid = GT_Utility.getFluidForFilledItem(this.mOutputItems[0], true)) == null)
+ {
+ if (ItemList.Cell_Empty.isStackEqual(getInputAt(0))) {
+ if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
+ {
+ getInputAt(0).stackSize -= 1; FluidStack
+ tmp231_230 = tFluid;tmp231_230.amount = ((int)(tmp231_230.amount - tMass));
+ return 2;
+ }
+ }
+ }
+ else
+ {
+ this.mOutputItems[0] = null;
+ if ((getDrainableStack() == null) || ((getDrainableStack().isFluidEqual(this.mOutputFluid)) && (getDrainableStack().amount < 16000)))
+ {
+ FluidStack tmp287_286 = tFluid;tmp287_286.amount = ((int)(tmp287_286.amount - tMass));
+ return 2;
+ }
+ }
+ }
+ }
+ else if (canOutput(new ItemStack[] { this.mOutputItems[0] }))
+ {
+ FluidStack tmp322_321 = tFluid;tmp322_321.amount = ((int)(tmp322_321.amount - tMass));
+ return 2;
+ }
+ }
+ }
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (ItemList.Cell_Empty.isStackEqual(aStack));
+ }
+
+ public boolean isFluidInputAllowed(FluidStack aFluid)
+ {
+ return aFluid.isFluidEqual(Materials.UUMatter.getFluid(1L));
+ }
+
+ public int getCapacity()
+ {
+ if ((sHeaviestElementMass == 0) && (GregTech_API.sPostloadFinished))
+ {
+ Materials tMaterial;
+ for (Iterator i$ = Materials.VALUES.iterator(); i$.hasNext(); sHeaviestElementMass = Math.max(sHeaviestElementMass, (int)tMaterial.getMass()))
+ {
+ tMaterial = (Materials)i$.next();
+ if ((tMaterial.mElement == null) || (tMaterial.mElement.mIsIsotope)) {}
+ }
+ }
+ return sHeaviestElementMass;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java index 6bcc5b5074..d65970dbac 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java @@ -1,85 +1,85 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import gregtech.api.enums.Materials;
-/* 4: */ import gregtech.api.enums.OrePrefixes;
+package gregtech.common.tileentities.machines.basic;
+
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 5: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
-/* 14: */ import net.minecraft.init.Blocks;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_RockBreaker
-/* 18: */ extends GT_MetaTileEntity_BasicMachine
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_RockBreaker(int aID, String aName, String aNameRegional, int aTier)
-/* 21: */ {
-/* 22:19 */ super(aID, aName, aNameRegional, aTier, 1, "Put Lava and Water adjacent", 1, 1, "RockBreaker.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_ROCK_BREAKER) });
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_RockBreaker(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 26: */ {
-/* 27:23 */ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
-/* 28: */ }
-/* 29: */
-/* 30: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 31: */ {
-/* 32:28 */ return new GT_MetaTileEntity_RockBreaker(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 33: */ }
-/* 34: */
-/* 35: */ public GT_Recipe.GT_Recipe_Map getRecipeList()
-/* 36: */ {
-/* 37:33 */ return GT_Recipe.GT_Recipe_Map.sRockBreakerFakeRecipes;
-/* 38: */ }
-/* 39: */
-/* 40: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 41: */ {
-/* 42:38 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
-/* 43: */ }
-/* 44: */
-/* 45: */ public int checkRecipe()
-/* 46: */ {
-/* 47:43 */ IGregTechTileEntity aBaseMetaTileEntity = getBaseMetaTileEntity();
-/* 48:44 */ if ((aBaseMetaTileEntity.getBlockOffset(0, 0, 1) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.water))
-/* 49: */ {
-/* 50:45 */ ItemStack tOutput = null;
-/* 51:46 */ if (aBaseMetaTileEntity.getBlockOffset(0, 1, 0) == Blocks.lava) {
-/* 52:47 */ tOutput = new ItemStack(Blocks.stone, 1);
-/* 53:49 */ } else if ((aBaseMetaTileEntity.getBlockOffset(0, 0, 1) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.lava)) {
-/* 54:50 */ tOutput = new ItemStack(Blocks.cobblestone, 1);
-/* 55: */ }
-/* 56:52 */ if (tOutput != null) {
-/* 57:53 */ if (GT_Utility.areStacksEqual(getInputAt(0), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L)))
-/* 58: */ {
-/* 59:54 */ tOutput = new ItemStack(Blocks.obsidian, 1);
-/* 60:55 */ if (canOutput(new ItemStack[] { tOutput }))
-/* 61: */ {
-/* 62:56 */ getInputAt(0).stackSize -= 1;
-/* 63:57 */ this.mOutputItems[0] = tOutput;
-/* 64:58 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 65:59 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 66:60 */ return 2;
-/* 67: */ }
-/* 68: */ }
-/* 69:63 */ else if (canOutput(new ItemStack[] { tOutput }))
-/* 70: */ {
-/* 71:64 */ this.mOutputItems[0] = tOutput;
-/* 72:65 */ this.mMaxProgresstime = (16 / (1 << this.mTier - 1));
-/* 73:66 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 74:67 */ return 2;
-/* 75: */ }
-/* 76: */ }
-/* 77: */ }
-/* 78:72 */ return 0;
-/* 79: */ }
-/* 80: */ }
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.init.Blocks;
+import net.minecraft.item.ItemStack;
+
+public class GT_MetaTileEntity_RockBreaker
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_RockBreaker(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Put Lava and Water adjacent", 1, 1, "RockBreaker.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_ROCK_BREAKER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_ROCK_BREAKER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_ROCK_BREAKER) });
+ }
+
+ public GT_MetaTileEntity_RockBreaker(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_RockBreaker(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeList()
+ {
+ return GT_Recipe.GT_Recipe_Map.sRockBreakerFakeRecipes;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
+ }
+
+ public int checkRecipe()
+ {
+ IGregTechTileEntity aBaseMetaTileEntity = getBaseMetaTileEntity();
+ if ((aBaseMetaTileEntity.getBlockOffset(0, 0, 1) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.water) || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.water))
+ {
+ ItemStack tOutput = null;
+ if (aBaseMetaTileEntity.getBlockOffset(0, 1, 0) == Blocks.lava) {
+ tOutput = new ItemStack(Blocks.stone, 1);
+ } else if ((aBaseMetaTileEntity.getBlockOffset(0, 0, 1) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(0, 0, -1) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(-1, 0, 0) == Blocks.lava) || (aBaseMetaTileEntity.getBlockOffset(1, 0, 0) == Blocks.lava)) {
+ tOutput = new ItemStack(Blocks.cobblestone, 1);
+ }
+ if (tOutput != null) {
+ if (GT_Utility.areStacksEqual(getInputAt(0), GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Redstone, 1L)))
+ {
+ tOutput = new ItemStack(Blocks.obsidian, 1);
+ if (canOutput(new ItemStack[] { tOutput }))
+ {
+ getInputAt(0).stackSize -= 1;
+ this.mOutputItems[0] = tOutput;
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ else if (canOutput(new ItemStack[] { tOutput }))
+ {
+ this.mOutputItems[0] = tOutput;
+ this.mMaxProgresstime = (16 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ }
+ return 0;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java index 72d613d225..3360369114 100644 --- a/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java @@ -1,179 +1,179 @@ -/* 1: */ package gregtech.common.tileentities.machines.basic;
-/* 2: */
-/* 3: */ import forestry.api.genetics.AlleleManager;
-/* 4: */ import forestry.api.genetics.IAlleleRegistry;
-/* 5: */ import forestry.api.genetics.IIndividual;
+package gregtech.common.tileentities.machines.basic;
+
+import forestry.api.genetics.AlleleManager;
+import forestry.api.genetics.IAlleleRegistry;
+import forestry.api.genetics.IIndividual;
import gregtech.GT_Mod;
-/* 6: */ import gregtech.api.GregTech_API;
-/* 7: */ import gregtech.api.enums.Element;
-/* 8: */ import gregtech.api.enums.GT_Values;
-/* 9: */ import gregtech.api.enums.ItemList;
-/* 10: */ import gregtech.api.enums.Materials;
-/* 11: */ import gregtech.api.enums.OrePrefixes;
+import gregtech.api.GregTech_API;
+import gregtech.api.enums.Element;
+import gregtech.api.enums.GT_Values;
+import gregtech.api.enums.ItemList;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 12: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 13: */ import gregtech.api.interfaces.ITexture;
-/* 14: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 15: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 16: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
-/* 17: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 18: */ import gregtech.api.objects.ItemData;
-/* 19: */ import gregtech.api.objects.MaterialStack;
-/* 20: */ import gregtech.api.util.GT_Log;
-/* 21: */ import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.objects.ItemData;
+import gregtech.api.objects.MaterialStack;
+import gregtech.api.util.GT_Log;
+import gregtech.api.util.GT_OreDictUnificator;
import gregtech.api.util.GT_Recipe;
-/* 22: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 23: */ import gregtech.api.util.GT_Utility;
-/* 24: */ import gregtech.common.items.behaviors.Behaviour_DataOrb;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.items.behaviors.Behaviour_DataOrb;
+
+import java.util.Map;
-/* 25: */ import java.util.Map;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraftforge.fluids.FluidStack;
-/* 26: */ import net.minecraft.init.Items;
-/* 27: */ import net.minecraft.item.ItemStack;
-/* 28: */ import net.minecraft.nbt.NBTTagCompound;
-/* 29: */ import net.minecraftforge.fluids.FluidStack;
-/* 30: */
-/* 31: */ public class GT_MetaTileEntity_Scanner
-/* 32: */ extends GT_MetaTileEntity_BasicMachine
-/* 33: */ {
-/* 34: */ public GT_MetaTileEntity_Scanner(int aID, String aName, String aNameRegional, int aTier)
-/* 35: */ {
-/* 36: 29 */ super(aID, aName, aNameRegional, aTier, 1, "Scans Crops and other things.", 1, 1, "Scanner.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_SCANNER) });
-/* 37: */ }
-/* 38: */
-/* 39: */ public GT_MetaTileEntity_Scanner(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
-/* 40: */ {
-/* 41: 33 */ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
-/* 42: */ }
-/* 43: */
-/* 44: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 45: */ {
-/* 46: 38 */ return new GT_MetaTileEntity_Scanner(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
-/* 47: */ }
-/* 48: */
-/* 49: */ public int checkRecipe()
-/* 50: */ {
-/* 51: 43 */ ItemStack aStack = getInputAt(0);
-/* 52: 44 */ if (getOutputAt(0) != null)
-/* 53: */ {
-/* 54: 45 */ this.mOutputBlocked += 1;
-/* 55: */ }
-/* 56: 46 */ else if ((GT_Utility.isStackValid(aStack)) && (aStack.stackSize > 0))
-/* 57: */ {
-/* 58: 47 */ if ((getFillableStack() != null) && (getFillableStack().containsFluid(Materials.Honey.getFluid(100L)))) {
-/* 59: */ try
-/* 60: */ {
-/* 61: 49 */ Object tIndividual = AlleleManager.alleleRegistry.getIndividual(aStack);
-/* 62: 50 */ if (tIndividual != null)
-/* 63: */ {
-/* 64: 51 */ if (((IIndividual)tIndividual).analyze())
-/* 65: */ {
-/* 66: 52 */ getFillableStack().amount -= 100;
-/* 67: 53 */ this.mOutputItems[0] = GT_Utility.copy(new Object[] { aStack });
-/* 68: 54 */ aStack.stackSize = 0;
-/* 69: 55 */ NBTTagCompound tNBT = new NBTTagCompound();
-/* 70: 56 */ ((IIndividual)tIndividual).writeToNBT(tNBT);
-/* 71: 57 */ this.mOutputItems[0].setTagCompound(tNBT);
-/* 72: 58 */ this.mMaxProgresstime = (500 / (1 << this.mTier - 1));
-/* 73: 59 */ this.mEUt = (2 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 74: 60 */ return 2;
-/* 75: */ }
-/* 76: 62 */ this.mOutputItems[0] = GT_Utility.copy(new Object[] { aStack });
-/* 77: 63 */ aStack.stackSize = 0;
-/* 78: 64 */ this.mMaxProgresstime = 1;
-/* 79: 65 */ this.mEUt = 1;
-/* 80: 66 */ return 2;
-/* 81: */ }
-/* 82: */ }
-/* 83: */ catch (Throwable e)
-/* 84: */ {
-/* 85: 69 */ if (GT_Values.D1) {
-/* 86: 69 */ e.printStackTrace(GT_Log.err);
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90: 72 */ if (ItemList.IC2_Crop_Seeds.isStackEqual(aStack, true, true))
-/* 91: */ {
-/* 92: 73 */ NBTTagCompound tNBT = aStack.getTagCompound();
-/* 93: 74 */ if (tNBT == null) {
-/* 94: 74 */ tNBT = new NBTTagCompound();
-/* 95: */ }
-/* 96: 75 */ if (tNBT.getByte("scan") < 4)
-/* 97: */ {
-/* 98: 76 */ tNBT.setByte("scan", (byte)4);
-/* 99: 77 */ this.mMaxProgresstime = (160 / (1 << this.mTier - 1));
-/* 100: 78 */ this.mEUt = (8 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 101: */ }
-/* 102: */ else
-/* 103: */ {
-/* 104: 80 */ this.mMaxProgresstime = 1;
-/* 105: 81 */ this.mEUt = 1;
-/* 106: */ }
-/* 107: 83 */ aStack.stackSize -= 1;
-/* 108: 84 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { aStack });
-/* 109: 85 */ this.mOutputItems[0].setTagCompound(tNBT);
-/* 110: 86 */ return 2;
-/* 111: */ }
-/* 112: 88 */ if (ItemList.Tool_DataOrb.isStackEqual(getSpecialSlot(), false, true))
-/* 113: */ {
-/* 114: 89 */ if (ItemList.Tool_DataOrb.isStackEqual(aStack, false, true))
-/* 115: */ {
-/* 116: 90 */ aStack.stackSize -= 1;
-/* 117: 91 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
-/* 118: 92 */ this.mMaxProgresstime = (512 / (1 << this.mTier - 1));
-/* 119: 93 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 120: 94 */ return 2;
-/* 121: */ }
-/* 122: 96 */ ItemData tData = GT_OreDictUnificator.getAssociation(aStack);
-/* 123: 97 */ if ((tData != null) && ((tData.mPrefix == OrePrefixes.dust) || (tData.mPrefix == OrePrefixes.cell)) && (tData.mMaterial.mMaterial.mElement != null) && (!tData.mMaterial.mMaterial.mElement.mIsIsotope) && (tData.mMaterial.mMaterial != Materials.Magic) && (tData.mMaterial.mMaterial.getMass() > 0L))
-/* 124: */ {
-/* 125: 98 */ getSpecialSlot().stackSize -= 1;
-/* 126: 99 */ aStack.stackSize -= 1;
-/* 127: */
-/* 128:101 */ this.mOutputItems[0] = ItemList.Tool_DataOrb.get(1L, new Object[0]);
-/* 129:102 */ Behaviour_DataOrb.setDataTitle(this.mOutputItems[0], "Elemental-Scan");
-/* 130:103 */ Behaviour_DataOrb.setDataName(this.mOutputItems[0], tData.mMaterial.mMaterial.mElement.name());
-/* 132:105 */ this.mMaxProgresstime = ((int)(tData.mMaterial.mMaterial.getMass() * 8192L / (1 << this.mTier - 1)));
-/* 133:106 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 134:107 */ return 2;
-/* 135: */ }
-/* 136: */ }
-/* 137:110 */ if (ItemList.Tool_DataStick.isStackEqual(getSpecialSlot(), false, true))
-/* 138: */ {
-/* 139:111 */ if (ItemList.Tool_DataStick.isStackEqual(aStack, false, true))
-/* 140: */ {
-/* 141:112 */ aStack.stackSize -= 1;
-/* 142:113 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
-/* 143:114 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 144:115 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 145:116 */ return 2;
-/* 146: */ }
-/* 147:118 */ if (aStack.getItem() == Items.written_book)
-/* 148: */ {
-/* 149:119 */ getSpecialSlot().stackSize -= 1;
-/* 150:120 */ aStack.stackSize -= 1;
-/* 151: */
-/* 152:122 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
-/* 153:123 */ this.mOutputItems[0].setTagCompound(aStack.getTagCompound());
-/* 154:124 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 155:125 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 156:126 */ return 2;
-/* 157: */ }
-/* 158:128 */ if (aStack.getItem() == Items.filled_map)
-/* 159: */ {
-/* 160:129 */ getSpecialSlot().stackSize -= 1;
-/* 161:130 */ aStack.stackSize -= 1;
-/* 162: */
-/* 163:132 */ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
-/* 164:133 */ this.mOutputItems[0].setTagCompound(GT_Utility.getNBTContainingShort(new NBTTagCompound(), "map_id", (short)aStack.getItemDamage()));
-/* 165:134 */ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
-/* 166:135 */ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
-/* 167:136 */ return 2;
-/* 168: */ }
-/* 169: */ }
-/* 170: */ }
-/* 171:140 */ return 0;
-/* 172: */ }
+public class GT_MetaTileEntity_Scanner
+ extends GT_MetaTileEntity_BasicMachine
+{
+ public GT_MetaTileEntity_Scanner(int aID, String aName, String aNameRegional, int aTier)
+ {
+ super(aID, aName, aNameRegional, aTier, 1, "Scans Crops and other things.", 1, 1, "Scanner.png", "", new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_SCANNER), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_SCANNER_ACTIVE), new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_SCANNER) });
+ }
+
+ public GT_MetaTileEntity_Scanner(String aName, int aTier, String aDescription, ITexture[][][] aTextures, String aGUIName, String aNEIName)
+ {
+ super(aName, aTier, 1, aDescription, aTextures, 1, 1, aGUIName, aNEIName);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Scanner(this.mName, this.mTier, this.mDescription, this.mTextures, this.mGUIName, this.mNEIName);
+ }
+
+ public int checkRecipe()
+ {
+ ItemStack aStack = getInputAt(0);
+ if (getOutputAt(0) != null)
+ {
+ this.mOutputBlocked += 1;
+ }
+ else if ((GT_Utility.isStackValid(aStack)) && (aStack.stackSize > 0))
+ {
+ if ((getFillableStack() != null) && (getFillableStack().containsFluid(Materials.Honey.getFluid(100L)))) {
+ try
+ {
+ Object tIndividual = AlleleManager.alleleRegistry.getIndividual(aStack);
+ if (tIndividual != null)
+ {
+ if (((IIndividual)tIndividual).analyze())
+ {
+ getFillableStack().amount -= 100;
+ this.mOutputItems[0] = GT_Utility.copy(new Object[] { aStack });
+ aStack.stackSize = 0;
+ NBTTagCompound tNBT = new NBTTagCompound();
+ ((IIndividual)tIndividual).writeToNBT(tNBT);
+ this.mOutputItems[0].setTagCompound(tNBT);
+ this.mMaxProgresstime = (500 / (1 << this.mTier - 1));
+ this.mEUt = (2 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ this.mOutputItems[0] = GT_Utility.copy(new Object[] { aStack });
+ aStack.stackSize = 0;
+ this.mMaxProgresstime = 1;
+ this.mEUt = 1;
+ return 2;
+ }
+ }
+ catch (Throwable e)
+ {
+ if (GT_Values.D1) {
+ e.printStackTrace(GT_Log.err);
+ }
+ }
+ }
+ if (ItemList.IC2_Crop_Seeds.isStackEqual(aStack, true, true))
+ {
+ NBTTagCompound tNBT = aStack.getTagCompound();
+ if (tNBT == null) {
+ tNBT = new NBTTagCompound();
+ }
+ if (tNBT.getByte("scan") < 4)
+ {
+ tNBT.setByte("scan", (byte)4);
+ this.mMaxProgresstime = (160 / (1 << this.mTier - 1));
+ this.mEUt = (8 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ }
+ else
+ {
+ this.mMaxProgresstime = 1;
+ this.mEUt = 1;
+ }
+ aStack.stackSize -= 1;
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { aStack });
+ this.mOutputItems[0].setTagCompound(tNBT);
+ return 2;
+ }
+ if (ItemList.Tool_DataOrb.isStackEqual(getSpecialSlot(), false, true))
+ {
+ if (ItemList.Tool_DataOrb.isStackEqual(aStack, false, true))
+ {
+ aStack.stackSize -= 1;
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
+ this.mMaxProgresstime = (512 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ ItemData tData = GT_OreDictUnificator.getAssociation(aStack);
+ if ((tData != null) && ((tData.mPrefix == OrePrefixes.dust) || (tData.mPrefix == OrePrefixes.cell)) && (tData.mMaterial.mMaterial.mElement != null) && (!tData.mMaterial.mMaterial.mElement.mIsIsotope) && (tData.mMaterial.mMaterial != Materials.Magic) && (tData.mMaterial.mMaterial.getMass() > 0L))
+ {
+ getSpecialSlot().stackSize -= 1;
+ aStack.stackSize -= 1;
+
+ this.mOutputItems[0] = ItemList.Tool_DataOrb.get(1L, new Object[0]);
+ Behaviour_DataOrb.setDataTitle(this.mOutputItems[0], "Elemental-Scan");
+ Behaviour_DataOrb.setDataName(this.mOutputItems[0], tData.mMaterial.mMaterial.mElement.name());
+ this.mMaxProgresstime = ((int)(tData.mMaterial.mMaterial.getMass() * 8192L / (1 << this.mTier - 1)));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ if (ItemList.Tool_DataStick.isStackEqual(getSpecialSlot(), false, true))
+ {
+ if (ItemList.Tool_DataStick.isStackEqual(aStack, false, true))
+ {
+ aStack.stackSize -= 1;
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ if (aStack.getItem() == Items.written_book)
+ {
+ getSpecialSlot().stackSize -= 1;
+ aStack.stackSize -= 1;
+
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
+ this.mOutputItems[0].setTagCompound(aStack.getTagCompound());
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ if (aStack.getItem() == Items.filled_map)
+ {
+ getSpecialSlot().stackSize -= 1;
+ aStack.stackSize -= 1;
+
+ this.mOutputItems[0] = GT_Utility.copyAmount(1L, new Object[] { getSpecialSlot() });
+ this.mOutputItems[0].setTagCompound(GT_Utility.getNBTContainingShort(new NBTTagCompound(), "map_id", (short)aStack.getItemDamage()));
+ this.mMaxProgresstime = (128 / (1 << this.mTier - 1));
+ this.mEUt = (32 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ return 2;
+ }
+ }
+ }
+ return 0;
+ }
@Override
public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
@@ -184,35 +184,35 @@ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { super.onPostTick(aBaseMetaTileEntity, aTick);
}
-/* 173: */
-/* 174: */ public GT_Recipe.GT_Recipe_Map getRecipeList()
-/* 175: */ {
-/* 176:145 */ return GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes;
-/* 177: */ }
-/* 178: */
-/* 179: */ public int getCapacity()
-/* 180: */ {
-/* 181:150 */ return 1000;
-/* 182: */ }
-/* 183: */
-/* 184: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 185: */ {
-/* 186:155 */ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
-/* 187: */ }
-/* 188: */
-/* 189: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 190: */ {
-/* 191:160 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 192:161 */ if (aIndex == 1) {
-/* 193:161 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(212)), 10, 1.0F, aX, aY, aZ);
-/* 194: */ }
-/* 195: */ }
-/* 196: */
-/* 197: */ public void startProcess()
-/* 198: */ {
-/* 199:166 */ sendLoopStart((byte)1);
-/* 200: */ }
-/* 201: */ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeList()
+ {
+ return GT_Recipe.GT_Recipe_Map.sScannerFakeRecipes;
+ }
+
+ public int getCapacity()
+ {
+ return 1000;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (getRecipeList().containsInput(aStack));
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(212)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java index d1b5ea8ec9..9f244a546b 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java @@ -1,405 +1,405 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.GT_Mod;
import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.enums.OrePrefixes;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 6: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 7: */ import gregtech.api.interfaces.ITexture;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 10: */ import gregtech.api.objects.GT_ItemStack;
-/* 11: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 12: */ import gregtech.api.util.GT_CoverBehavior;
-/* 13: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 14: */ import gregtech.api.util.GT_Utility;
-/* 15: */ import gregtech.common.gui.GT_Container_BronzeBlastFurnace;
-/* 16: */ import gregtech.common.gui.GT_GUIContainer_BronzeBlastFurnace;
-/* 17: */ import net.minecraft.entity.player.EntityPlayer;
-/* 18: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 19: */ import net.minecraft.init.Blocks;
-/* 20: */ import net.minecraft.init.Items;
-/* 21: */ import net.minecraft.item.ItemStack;
-/* 22: */ import net.minecraft.nbt.NBTTagCompound;
-/* 23: */ import net.minecraft.world.World;
-/* 24: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 25: */
-/* 26: */ public class GT_MetaTileEntity_BronzeBlastFurnace
-/* 27: */ extends MetaTileEntity
-/* 28: */ {
-/* 29: 26 */ public int mMaxProgresstime = 0;
-/* 30: 26 */ public int mUpdate = 5;
-/* 31: 26 */ public int mProgresstime = 0;
-/* 32: 28 */ public boolean mMachine = false;
-/* 33: 31 */ private static final ITexture[] FACING_SIDE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS) };
-/* 34: 32 */ private static final ITexture[] FACING_FRONT = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE) };
-/* 35: 33 */ private static final ITexture[] FACING_ACTIVE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE_ACTIVE) };
-/* 36: */ public ItemStack mOutputItem1;
-/* 37: */ public ItemStack mOutputItem2;
-/* 38: */
-/* 39: */ public GT_MetaTileEntity_BronzeBlastFurnace(int aID, String aName, String aNameRegional)
-/* 40: */ {
-/* 41: 36 */ super(aID, aName, aNameRegional, 4);
-/* 42: */ }
-/* 43: */
-/* 44: */ public GT_MetaTileEntity_BronzeBlastFurnace(String aName)
-/* 45: */ {
-/* 46: 40 */ super(aName, 4);
-/* 47: */ }
-/* 48: */
-/* 49: */ public String[] getDescription()
-/* 50: */ {
-/* 51: 45 */ return new String[] { "To get your first Steel", "Multiblock: 3x3x4 hollow with opening on top", "32 Bronze Plated Bricks required" };
-/* 52: */ }
-/* 53: */
-/* 54: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 55: */ {
-/* 56: 50 */ if (aSide == aFacing) {
-/* 57: 50 */ return aActive ? FACING_ACTIVE : FACING_FRONT;
-/* 58: */ }
-/* 59: 51 */ return FACING_SIDE;
-/* 60: */ }
-/* 61: */
-/* 62: */ public boolean isSteampowered()
-/* 63: */ {
-/* 64: 54 */ return false;
-/* 65: */ }
-/* 66: */
-/* 67: */ public boolean isElectric()
-/* 68: */ {
-/* 69: 55 */ return false;
-/* 70: */ }
-/* 71: */
-/* 72: */ public boolean isPneumatic()
-/* 73: */ {
-/* 74: 56 */ return false;
-/* 75: */ }
-/* 76: */
-/* 77: */ public boolean isEnetInput()
-/* 78: */ {
-/* 79: 57 */ return false;
-/* 80: */ }
-/* 81: */
-/* 82: */ public boolean isEnetOutput()
-/* 83: */ {
-/* 84: 58 */ return false;
-/* 85: */ }
-/* 86: */
-/* 87: */ public boolean isInputFacing(byte aSide)
-/* 88: */ {
-/* 89: 59 */ return false;
-/* 90: */ }
-/* 91: */
-/* 92: */ public boolean isOutputFacing(byte aSide)
-/* 93: */ {
-/* 94: 60 */ return false;
-/* 95: */ }
-/* 96: */
-/* 97: */ public boolean isTeleporterCompatible()
-/* 98: */ {
-/* 99: 61 */ return false;
-/* 100: */ }
-/* 101: */
-/* 102: */ public boolean isFacingValid(byte aFacing)
-/* 103: */ {
-/* 104: 62 */ return aFacing > 1;
-/* 105: */ }
-/* 106: */
-/* 107: */ public boolean isAccessAllowed(EntityPlayer aPlayer)
-/* 108: */ {
-/* 109: 63 */ return true;
-/* 110: */ }
-/* 111: */
-/* 112: */ public int getProgresstime()
-/* 113: */ {
-/* 114: 64 */ return this.mProgresstime;
-/* 115: */ }
-/* 116: */
-/* 117: */ public int maxProgresstime()
-/* 118: */ {
-/* 119: 65 */ return this.mMaxProgresstime;
-/* 120: */ }
-/* 121: */
-/* 122: */ public int increaseProgress(int aProgress)
-/* 123: */ {
-/* 124: 66 */ this.mProgresstime += aProgress;return this.mMaxProgresstime - this.mProgresstime;
-/* 125: */ }
-/* 126: */
-/* 127: */ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aCoverID)
-/* 128: */ {
-/* 129: 70 */ return (GregTech_API.getCoverBehavior(aCoverID.toStack()).isSimpleCover()) && (super.allowCoverOnSide(aSide, aCoverID));
-/* 130: */ }
-/* 131: */
-/* 132: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 133: */ {
-/* 134: 75 */ return new GT_MetaTileEntity_BronzeBlastFurnace(this.mName);
-/* 135: */ }
-/* 136: */
-/* 137: */ public void saveNBTData(NBTTagCompound aNBT)
-/* 138: */ {
-/* 139: 80 */ aNBT.setInteger("mProgresstime", this.mProgresstime);
-/* 140: 81 */ aNBT.setInteger("mMaxProgresstime", this.mMaxProgresstime);
-/* 141: 82 */ if (this.mOutputItem1 != null)
-/* 142: */ {
-/* 143: 83 */ NBTTagCompound tNBT = new NBTTagCompound();
-/* 144: 84 */ this.mOutputItem1.writeToNBT(tNBT);
-/* 145: 85 */ aNBT.setTag("mOutputItem1", tNBT);
-/* 146: */ }
-/* 147: 87 */ if (this.mOutputItem2 != null)
-/* 148: */ {
-/* 149: 88 */ NBTTagCompound tNBT = new NBTTagCompound();
-/* 150: 89 */ this.mOutputItem2.writeToNBT(tNBT);
-/* 151: 90 */ aNBT.setTag("mOutputItem2", tNBT);
-/* 152: */ }
-/* 153: */ }
-/* 154: */
-/* 155: */ public void loadNBTData(NBTTagCompound aNBT)
-/* 156: */ {
-/* 157: 96 */ this.mUpdate = 5;
-/* 158: 97 */ this.mProgresstime = aNBT.getInteger("mProgresstime");
-/* 159: 98 */ this.mMaxProgresstime = aNBT.getInteger("mMaxProgresstime");
-/* 160: 99 */ this.mOutputItem1 = GT_Utility.loadItem(aNBT, "mOutputItem1");
-/* 161:100 */ this.mOutputItem2 = GT_Utility.loadItem(aNBT, "mOutputItem2");
-/* 162: */ }
-/* 163: */
-/* 164: */ public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer)
-/* 165: */ {
-/* 166:105 */ if (aBaseMetaTileEntity.isClientSide()) {
-/* 167:105 */ return true;
-/* 168: */ }
-/* 169:106 */ aBaseMetaTileEntity.openGUI(aPlayer);
-/* 170:107 */ return true;
-/* 171: */ }
-/* 172: */
-/* 173: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 174: */ {
-/* 175:112 */ return new GT_Container_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
-/* 176: */ }
-/* 177: */
-/* 178: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 179: */ {
-/* 180:117 */ return new GT_GUIContainer_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
-/* 181: */ }
-/* 182: */
-/* 183: */ private boolean checkMachine()
-/* 184: */ {
-/* 185:121 */ int xDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetZ;
-/* 186:122 */ for (int i = -1; i < 2; i++) {
-/* 187:122 */ for (int j = -1; j < 3; j++) {
-/* 188:122 */ for (int k = -1; k < 2; k++) {
-/* 189:122 */ if ((xDir + i != 0) || (j != 0) || (zDir + k != 0)) {
-/* 190:123 */ if ((i != 0) || (j == -1) || (k != 0))
-/* 191: */ {
-/* 192:124 */ if ((getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k) != GregTech_API.sBlockCasings1) || (getBaseMetaTileEntity().getMetaIDOffset(xDir + i, j, zDir + k) != 10)) {
-/* 193:124 */ return false;
-/* 194: */ }
-/* 195: */ }
-/* 196:126 */ else if ((!GT_Utility.arrayContains(getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k), new Object[] { Blocks.lava, Blocks.flowing_lava, null })) && (!getBaseMetaTileEntity().getAirOffset(xDir + i, j, zDir + k))) {
-/* 197:126 */ return false;
-/* 198: */ }
-/* 199: */ }
-/* 200: */ }
-/* 201: */ }
-/* 202: */ }
-/* 203:129 */ return true;
-/* 204: */ }
-/* 205: */
-/* 206: */ public void onMachineBlockUpdate()
-/* 207: */ {
-/* 208:134 */ this.mUpdate = 5;
-/* 209: */ }
-/* 210: */
-/* 211: */ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
-/* 212: */ {
-/* 213:139 */ if ((aBaseMetaTileEntity.isClientSide()) &&
-/* 214:140 */ (aBaseMetaTileEntity.isActive())) {
-/* 215:141 */ aBaseMetaTileEntity.getWorld().spawnParticle("largesmoke", aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), aBaseMetaTileEntity.getOffsetY(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), 0.0D, 0.3D, 0.0D);
-/* 216: */ }
-/* 217:144 */ if (aBaseMetaTileEntity.isServerSide())
-/* 218: */ {
-/* 219:145 */ if (this.mUpdate-- == 0) {
-/* 220:146 */ this.mMachine = checkMachine();
-/* 221: */ }
-/* 222:149 */ if (this.mMachine) {
-/* 223:150 */ if (this.mMaxProgresstime > 0)
-/* 224: */ {
-/* 225:151 */ if (++this.mProgresstime >= this.mMaxProgresstime)
-/* 226: */ {
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.objects.GT_ItemStack;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.gui.GT_Container_BronzeBlastFurnace;
+import gregtech.common.gui.GT_GUIContainer_BronzeBlastFurnace;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+
+public class GT_MetaTileEntity_BronzeBlastFurnace
+ extends MetaTileEntity
+{
+ public int mMaxProgresstime = 0;
+ public int mUpdate = 5;
+ public int mProgresstime = 0;
+ public boolean mMachine = false;
+ private static final ITexture[] FACING_SIDE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS) };
+ private static final ITexture[] FACING_FRONT = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE) };
+ private static final ITexture[] FACING_ACTIVE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE_ACTIVE) };
+ public ItemStack mOutputItem1;
+ public ItemStack mOutputItem2;
+
+ public GT_MetaTileEntity_BronzeBlastFurnace(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, 4);
+ }
+
+ public GT_MetaTileEntity_BronzeBlastFurnace(String aName)
+ {
+ super(aName, 4);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "To get your first Steel", "Multiblock: 3x3x4 hollow with opening on top", "32 Bronze Plated Bricks required" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return aActive ? FACING_ACTIVE : FACING_FRONT;
+ }
+ return FACING_SIDE;
+ }
+
+ public boolean isSteampowered()
+ {
+ return false;
+ }
+
+ public boolean isElectric()
+ {
+ return false;
+ }
+
+ public boolean isPneumatic()
+ {
+ return false;
+ }
+
+ public boolean isEnetInput()
+ {
+ return false;
+ }
+
+ public boolean isEnetOutput()
+ {
+ return false;
+ }
+
+ public boolean isInputFacing(byte aSide)
+ {
+ return false;
+ }
+
+ public boolean isOutputFacing(byte aSide)
+ {
+ return false;
+ }
+
+ public boolean isTeleporterCompatible()
+ {
+ return false;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean isAccessAllowed(EntityPlayer aPlayer)
+ {
+ return true;
+ }
+
+ public int getProgresstime()
+ {
+ return this.mProgresstime;
+ }
+
+ public int maxProgresstime()
+ {
+ return this.mMaxProgresstime;
+ }
+
+ public int increaseProgress(int aProgress)
+ {
+ this.mProgresstime += aProgress;return this.mMaxProgresstime - this.mProgresstime;
+ }
+
+ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aCoverID)
+ {
+ return (GregTech_API.getCoverBehavior(aCoverID.toStack()).isSimpleCover()) && (super.allowCoverOnSide(aSide, aCoverID));
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BronzeBlastFurnace(this.mName);
+ }
+
+ public void saveNBTData(NBTTagCompound aNBT)
+ {
+ aNBT.setInteger("mProgresstime", this.mProgresstime);
+ aNBT.setInteger("mMaxProgresstime", this.mMaxProgresstime);
+ if (this.mOutputItem1 != null)
+ {
+ NBTTagCompound tNBT = new NBTTagCompound();
+ this.mOutputItem1.writeToNBT(tNBT);
+ aNBT.setTag("mOutputItem1", tNBT);
+ }
+ if (this.mOutputItem2 != null)
+ {
+ NBTTagCompound tNBT = new NBTTagCompound();
+ this.mOutputItem2.writeToNBT(tNBT);
+ aNBT.setTag("mOutputItem2", tNBT);
+ }
+ }
+
+ public void loadNBTData(NBTTagCompound aNBT)
+ {
+ this.mUpdate = 5;
+ this.mProgresstime = aNBT.getInteger("mProgresstime");
+ this.mMaxProgresstime = aNBT.getInteger("mMaxProgresstime");
+ this.mOutputItem1 = GT_Utility.loadItem(aNBT, "mOutputItem1");
+ this.mOutputItem2 = GT_Utility.loadItem(aNBT, "mOutputItem2");
+ }
+
+ public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer)
+ {
+ if (aBaseMetaTileEntity.isClientSide()) {
+ return true;
+ }
+ aBaseMetaTileEntity.openGUI(aPlayer);
+ return true;
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ private boolean checkMachine()
+ {
+ int xDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetZ;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 3; j++) {
+ for (int k = -1; k < 2; k++) {
+ if ((xDir + i != 0) || (j != 0) || (zDir + k != 0)) {
+ if ((i != 0) || (j == -1) || (k != 0))
+ {
+ if ((getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k) != GregTech_API.sBlockCasings1) || (getBaseMetaTileEntity().getMetaIDOffset(xDir + i, j, zDir + k) != 10)) {
+ return false;
+ }
+ }
+ else if ((!GT_Utility.arrayContains(getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k), new Object[] { Blocks.lava, Blocks.flowing_lava, null })) && (!getBaseMetaTileEntity().getAirOffset(xDir + i, j, zDir + k))) {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ return true;
+ }
+
+ public void onMachineBlockUpdate()
+ {
+ this.mUpdate = 5;
+ }
+
+ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
+ {
+ if ((aBaseMetaTileEntity.isClientSide()) &&
+ (aBaseMetaTileEntity.isActive())) {
+ aBaseMetaTileEntity.getWorld().spawnParticle("largesmoke", aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), aBaseMetaTileEntity.getOffsetY(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), 0.0D, 0.3D, 0.0D);
+ }
+ if (aBaseMetaTileEntity.isServerSide())
+ {
+ if (this.mUpdate-- == 0) {
+ this.mMachine = checkMachine();
+ }
+ if (this.mMachine) {
+ if (this.mMaxProgresstime > 0)
+ {
+ if (++this.mProgresstime >= this.mMaxProgresstime)
+ {
addOutputProducts();
-/* 228:153 */ this.mOutputItem1 = null;
-/* 229:154 */ this.mOutputItem2 = null;
-/* 230:155 */ this.mProgresstime = 0;
-/* 231:156 */ this.mMaxProgresstime = 0;
-/* 232: */ try{GT_Mod.instance.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "steel");}catch(Exception e){}
-/* 227:152 */ }
-/* 233: */ }
-/* 234:159 */ else if (aBaseMetaTileEntity.isAllowedToWork()) {
-/* 235:159 */ checkRecipe();
-/* 236: */ }
-/* 237: */ }
-/* 238:163 */ aBaseMetaTileEntity.setActive((this.mMaxProgresstime > 0) && (this.mMachine));
-/* 239:165 */ if (aBaseMetaTileEntity.isActive())
-/* 240: */ {
-/* 241:166 */ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
-/* 242: */ {
-/* 243:167 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
-/* 244:168 */ this.mUpdate = 1;
-/* 245: */ }
-/* 246:170 */ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
-/* 247: */ {
-/* 248:171 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
-/* 249:172 */ this.mUpdate = 1;
-/* 250: */ }
-/* 251: */ }
-/* 252: */ else
-/* 253: */ {
-/* 254:175 */ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
-/* 255: */ {
-/* 256:176 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
-/* 257:177 */ this.mUpdate = 1;
-/* 258: */ }
-/* 259:179 */ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
-/* 260: */ {
-/* 261:180 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
-/* 262:181 */ this.mUpdate = 1;
-/* 263: */ }
-/* 264: */ }
-/* 265: */ }
-/* 266: */ }
-/* 267: */
-/* 268: */ private void addOutputProducts()
-/* 269: */ {
-/* 270:188 */ if (this.mOutputItem1 != null) {
-/* 271:189 */ if (this.mInventory[2] == null) {
-/* 272:190 */ this.mInventory[2] = GT_Utility.copy(new Object[] { this.mOutputItem1 });
-/* 273:191 */ } else if (GT_Utility.areStacksEqual(this.mInventory[2], this.mOutputItem1)) {
-/* 274:192 */ this.mInventory[2].stackSize = Math.min(this.mOutputItem1.getMaxStackSize(), this.mOutputItem1.stackSize + this.mInventory[2].stackSize);
-/* 275: */ }
-/* 276: */ }
-/* 277:194 */ if (this.mOutputItem2 != null) {
-/* 278:195 */ if (this.mInventory[3] == null) {
-/* 279:196 */ this.mInventory[3] = GT_Utility.copy(new Object[] { this.mOutputItem2 });
-/* 280:197 */ } else if (GT_Utility.areStacksEqual(this.mInventory[3], this.mOutputItem2)) {
-/* 281:198 */ this.mInventory[3].stackSize = Math.min(this.mOutputItem2.getMaxStackSize(), this.mOutputItem2.stackSize + this.mInventory[3].stackSize);
-/* 282: */ }
-/* 283: */ }
-/* 284: */ }
-/* 285: */
-/* 286: */ private boolean spaceForOutput(ItemStack aStack1, ItemStack aStack2)
-/* 287: */ {
-/* 288:202 */ if (((this.mInventory[2] == null) || (aStack1 == null) || ((this.mInventory[2].stackSize + aStack1.stackSize <= this.mInventory[2].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[2], aStack1)))) && (
-/* 289:203 */ (this.mInventory[3] == null) || (aStack2 == null) || ((this.mInventory[3].stackSize + aStack2.stackSize <= this.mInventory[3].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[3], aStack2))))) {
-/* 290:204 */ return true;
-/* 291: */ }
-/* 292:205 */ return false;
-/* 293: */ }
-/* 294: */
-/* 295: */ private boolean checkRecipe()
-/* 296: */ {
-/* 297:209 */ if (!this.mMachine) {
-/* 298:209 */ return false;
-/* 299: */ }
-/* 300:211 */ if ((this.mInventory[0] != null) && (this.mInventory[1] != null) && (this.mInventory[0].stackSize >= 1)) {
-/* 301:212 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustIron")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "ingotIron")))
-/* 302: */ {
-/* 303:213 */ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L))))
-/* 304: */ {
-/* 305:214 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 306:215 */ getBaseMetaTileEntity().decrStackSize(1, 4);
-/* 307:216 */ this.mMaxProgresstime = 7200;
-/* 308:217 */ return true;
-/* 309: */ }
-/* 310:219 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 4L))))
-/* 311: */ {
-/* 312:220 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 313:221 */ getBaseMetaTileEntity().decrStackSize(1, 2);
-/* 314:222 */ this.mMaxProgresstime = 4800;
-/* 315:223 */ return true;
-/* 316: */ }
-/* 317:225 */ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
-/* 318: */ {
-/* 319:226 */ getBaseMetaTileEntity().decrStackSize(0, 9);
-/* 320:227 */ getBaseMetaTileEntity().decrStackSize(1, 4);
-/* 321:228 */ this.mMaxProgresstime = 64800;
-/* 322:229 */ return true;
-/* 323: */ }
-/* 324: */ }
-/* 325:231 */ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustSteel"))
-/* 326: */ {
-/* 327:232 */ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2L))))
-/* 328: */ {
-/* 329:233 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 330:234 */ getBaseMetaTileEntity().decrStackSize(1, 2);
-/* 331:235 */ this.mMaxProgresstime = 3600;
-/* 332:236 */ return true;
-/* 333: */ }
-/* 334:238 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 1) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 2L))))
-/* 335: */ {
-/* 336:239 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 337:240 */ getBaseMetaTileEntity().decrStackSize(1, 1);
-/* 338:241 */ this.mMaxProgresstime = 2400;
-/* 339:242 */ return true;
-/* 340: */ }
-/* 341:244 */ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 2L))))
-/* 342: */ {
-/* 343:245 */ getBaseMetaTileEntity().decrStackSize(0, 9);
-/* 344:246 */ getBaseMetaTileEntity().decrStackSize(1, 2);
-/* 345:247 */ this.mMaxProgresstime = 32400;
-/* 346:248 */ return true;
-/* 347: */ }
-/* 348: */ }
-/* 349:250 */ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "blockIron"))
-/* 350: */ {
-/* 351:251 */ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 36) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
-/* 352: */ {
-/* 353:252 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 354:253 */ getBaseMetaTileEntity().decrStackSize(1, 36);
-/* 355:254 */ this.mMaxProgresstime = 64800;
-/* 356:255 */ return true;
-/* 357: */ }
-/* 358:257 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 18) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4L))))
-/* 359: */ {
-/* 360:258 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 361:259 */ getBaseMetaTileEntity().decrStackSize(1, 18);
-/* 362:260 */ this.mMaxProgresstime = 43200;
-/* 363:261 */ return true;
-/* 364: */ }
-/* 365:263 */ if (((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
-/* 366: */ {
-/* 367:264 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 368:265 */ getBaseMetaTileEntity().decrStackSize(1, 4);
-/* 369:266 */ this.mMaxProgresstime = 64800;
-/* 370:267 */ return true;
-/* 371: */ }
-/* 372: */ }
-/* 373: */ }
-/* 374:272 */ this.mOutputItem1 = null;
-/* 375:273 */ this.mOutputItem2 = null;
-/* 376:274 */ return false;
-/* 377: */ }
-/* 378: */
-/* 379: */ public boolean isGivingInformation()
-/* 380: */ {
-/* 381:279 */ return false;
-/* 382: */ }
-/* 383: */
-/* 384: */ public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 385: */ {
-/* 386:284 */ return aIndex > 1;
-/* 387: */ }
-/* 388: */
-/* 389: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 390: */ {
-/* 391:289 */ if (aIndex < 2) {}
-/* 392:289 */ return !GT_Utility.areStacksEqual(aStack, this.mInventory[0]);
-/* 393: */ }
-/* 394: */
-/* 395: */ public byte getTileEntityBaseType()
-/* 396: */ {
-/* 397:294 */ return 0;
-/* 398: */ }
-/* 399: */ }
+ this.mOutputItem1 = null;
+ this.mOutputItem2 = null;
+ this.mProgresstime = 0;
+ this.mMaxProgresstime = 0;
+ try{GT_Mod.instance.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "steel");}catch(Exception e){}
+ }
+ }
+ else if (aBaseMetaTileEntity.isAllowedToWork()) {
+ checkRecipe();
+ }
+ }
+ aBaseMetaTileEntity.setActive((this.mMaxProgresstime > 0) && (this.mMachine));
+ if (aBaseMetaTileEntity.isActive())
+ {
+ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
+ this.mUpdate = 1;
+ }
+ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
+ this.mUpdate = 1;
+ }
+ }
+ else
+ {
+ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
+ this.mUpdate = 1;
+ }
+ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
+ this.mUpdate = 1;
+ }
+ }
+ }
+ }
+
+ private void addOutputProducts()
+ {
+ if (this.mOutputItem1 != null) {
+ if (this.mInventory[2] == null) {
+ this.mInventory[2] = GT_Utility.copy(new Object[] { this.mOutputItem1 });
+ } else if (GT_Utility.areStacksEqual(this.mInventory[2], this.mOutputItem1)) {
+ this.mInventory[2].stackSize = Math.min(this.mOutputItem1.getMaxStackSize(), this.mOutputItem1.stackSize + this.mInventory[2].stackSize);
+ }
+ }
+ if (this.mOutputItem2 != null) {
+ if (this.mInventory[3] == null) {
+ this.mInventory[3] = GT_Utility.copy(new Object[] { this.mOutputItem2 });
+ } else if (GT_Utility.areStacksEqual(this.mInventory[3], this.mOutputItem2)) {
+ this.mInventory[3].stackSize = Math.min(this.mOutputItem2.getMaxStackSize(), this.mOutputItem2.stackSize + this.mInventory[3].stackSize);
+ }
+ }
+ }
+
+ private boolean spaceForOutput(ItemStack aStack1, ItemStack aStack2)
+ {
+ if (((this.mInventory[2] == null) || (aStack1 == null) || ((this.mInventory[2].stackSize + aStack1.stackSize <= this.mInventory[2].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[2], aStack1)))) && (
+ (this.mInventory[3] == null) || (aStack2 == null) || ((this.mInventory[3].stackSize + aStack2.stackSize <= this.mInventory[3].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[3], aStack2))))) {
+ return true;
+ }
+ return false;
+ }
+
+ private boolean checkRecipe()
+ {
+ if (!this.mMachine) {
+ return false;
+ }
+ if ((this.mInventory[0] != null) && (this.mInventory[1] != null) && (this.mInventory[0].stackSize >= 1)) {
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustIron")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "ingotIron")))
+ {
+ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 4);
+ this.mMaxProgresstime = 7200;
+ return true;
+ }
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 2);
+ this.mMaxProgresstime = 4800;
+ return true;
+ }
+ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 9);
+ getBaseMetaTileEntity().decrStackSize(1, 4);
+ this.mMaxProgresstime = 64800;
+ return true;
+ }
+ }
+ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustSteel"))
+ {
+ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 2);
+ this.mMaxProgresstime = 3600;
+ return true;
+ }
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 1) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 2L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 1);
+ this.mMaxProgresstime = 2400;
+ return true;
+ }
+ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 2L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 9);
+ getBaseMetaTileEntity().decrStackSize(1, 2);
+ this.mMaxProgresstime = 32400;
+ return true;
+ }
+ }
+ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "blockIron"))
+ {
+ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 36) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 36);
+ this.mMaxProgresstime = 64800;
+ return true;
+ }
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 18) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 18);
+ this.mMaxProgresstime = 43200;
+ return true;
+ }
+ if (((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 4);
+ this.mMaxProgresstime = 64800;
+ return true;
+ }
+ }
+ }
+ this.mOutputItem1 = null;
+ this.mOutputItem2 = null;
+ return false;
+ }
+
+ public boolean isGivingInformation()
+ {
+ return false;
+ }
+
+ public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return aIndex > 1;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ if (aIndex < 2) {}
+ return !GT_Utility.areStacksEqual(aStack, this.mInventory[0]);
+ }
+
+ public byte getTileEntityBaseType()
+ {
+ return 0;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java index c04a61d8bb..c48a2793bf 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java @@ -1,147 +1,147 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi; -/* 2: */ -/* 3: */ import gregtech.api.GregTech_API; +package gregtech.common.tileentities.machines.multi; + +import gregtech.api.GregTech_API; import gregtech.api.enums.Textures; -/* 4: */ import gregtech.api.enums.Textures.BlockIcons; -/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine; -/* 6: */ import gregtech.api.interfaces.ITexture; -/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity; -/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.enums.Textures.BlockIcons; +import gregtech.api.gui.GT_GUIContainer_MultiMachine; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.metatileentity.IMetaTileEntity; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Output; -/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase; -/* 10: */ import gregtech.api.objects.GT_RenderedTexture; -/* 11: */ import gregtech.api.util.GT_Recipe; -/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 13: */ import gregtech.api.util.GT_Utility; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase; +import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.util.GT_Recipe; +import gregtech.api.util.GT_Recipe.GT_Recipe_Map; +import gregtech.api.util.GT_Utility; -/* 14: */ import java.util.ArrayList; +import java.util.ArrayList; import net.minecraft.block.Block; -/* 15: */ import net.minecraft.entity.player.InventoryPlayer; -/* 16: */ import net.minecraft.item.ItemStack; -/* 17: */ import net.minecraftforge.common.util.ForgeDirection; +import net.minecraft.entity.player.InventoryPlayer; +import net.minecraft.item.ItemStack; +import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.fluids.FluidStack; -/* 18: */ -/* 19: */ public class GT_MetaTileEntity_DistillationTower -/* 20: */ extends GT_MetaTileEntity_MultiBlockBase -/* 21: */ { -/* 22: */ public GT_MetaTileEntity_DistillationTower(int aID, String aName, String aNameRegional) -/* 23: */ { -/* 24: 24 */ super(aID, aName, aNameRegional); -/* 25: */ } -/* 26: */ -/* 27: */ public GT_MetaTileEntity_DistillationTower(String aName) -/* 28: */ { -/* 29: 28 */ super(aName); -/* 30: */ } -/* 31: */ -/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) -/* 33: */ { -/* 34: 33 */ return new GT_MetaTileEntity_DistillationTower(this.mName); -/* 35: */ } -/* 36: */ -/* 37: */ public String[] getDescription() -/* 38: */ { -/* 39: 38 */ return new String[] { "Controller Block for the Distillation Tower", "Size: 3x6x3 (Hollow)", "Controller (front bottom)", "1x Input Hatch (bottom)", "5x Output Hatch (one each height level besides botton)","1x Output Bus (Botton)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Clean Stainless Steel Casings for the rest (26 at least!)" }; -/* 40: */ } -/* 41: */ -/* 42: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) -/* 43: */ { -/* 44: 43 */ if (aSide == aFacing) { -/* 45: 43 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) }; -/* 46: */ } -/* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49] }; -/* 48: */ } -/* 49: */ -/* 50: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) -/* 51: */ { -/* 52: 49 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); -/* 53: */ } -/* 54: */ -/* 55: */ public GT_Recipe.GT_Recipe_Map getRecipeMap() -/* 56: */ { -/* 57: 54 */ return GT_Recipe.GT_Recipe_Map.sDistillationRecipes; -/* 58: */ } -/* 59: */ -/* 60: */ public boolean isCorrectMachinePart(ItemStack aStack) -/* 61: */ { -/* 62: 59 */ return true; -/* 63: */ } -/* 64: */ -/* 65: */ public boolean isFacingValid(byte aFacing) -/* 66: */ { -/* 67: 62 */ return aFacing > 1; -/* 68: */ } -/* 69: */ -/* 70: */ public boolean checkRecipe(ItemStack aStack) -/* 71: */ { -/* 72: 66 */ -/* 75: 69 */ long tVoltage = getMaxInputVoltage(); -/* 76: 70 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage)); -/* 77: */ if(this.mInputHatches.size()>0&&this.mInputHatches.get(0)!=null&&this.mInputHatches.get(0).mFluid!=null&&this.mInputHatches.get(0).mFluid.amount>0){ -/* 78: 72 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistillationRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {}); -/* 79: 73 */ if (tRecipe != null) { -/* 80: 73 */ if (tRecipe.isRecipeInputEqual(true, new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {})) -/* 81: */ { -/* 82: 74 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); -/* 83: 75 */ this.mEfficiencyIncrease = 10000; -/* 84: 77 */ if (tRecipe.mEUt <= 16) -/* 85: */ { -/* 86: 78 */ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1)); -/* 87: 79 */ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1)); -/* 88: */ } -/* 89: */ else -/* 90: */ { -/* 91: 81 */ this.mEUt = tRecipe.mEUt; -/* 92: 82 */ this.mMaxProgresstime = tRecipe.mDuration; -/* 93: 83 */ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) -/* 94: */ { -/* 95: 84 */ this.mEUt *= 4; -/* 96: 85 */ this.mMaxProgresstime /= 2; -/* 97: */ } -/* 98: */ } -/* 99: 89 */ if (this.mEUt > 0) { -/* 100: 89 */ this.mEUt = (-this.mEUt); -/* 101: */ } -/* 102: 90 */ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime); -/* 103: 91 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) }; + +public class GT_MetaTileEntity_DistillationTower + extends GT_MetaTileEntity_MultiBlockBase +{ + public GT_MetaTileEntity_DistillationTower(int aID, String aName, String aNameRegional) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_DistillationTower(String aName) + { + super(aName); + } + + public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_DistillationTower(this.mName); + } + + public String[] getDescription() + { + return new String[] { "Controller Block for the Distillation Tower", "Size: 3x6x3 (Hollow)", "Controller (front bottom)", "1x Input Hatch (bottom)", "5x Output Hatch (one each height level besides botton)","1x Output Bus (Botton)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Clean Stainless Steel Casings for the rest (26 at least!)" }; + } + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { + if (aSide == aFacing) { + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) }; + } + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49] }; + } + + public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) + { + return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); + } + + public GT_Recipe.GT_Recipe_Map getRecipeMap() + { + return GT_Recipe.GT_Recipe_Map.sDistillationRecipes; + } + + public boolean isCorrectMachinePart(ItemStack aStack) + { + return true; + } + + public boolean isFacingValid(byte aFacing) + { + return aFacing > 1; + } + + public boolean checkRecipe(ItemStack aStack) + { + + long tVoltage = getMaxInputVoltage(); + byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage)); + if(this.mInputHatches.size()>0&&this.mInputHatches.get(0)!=null&&this.mInputHatches.get(0).mFluid!=null&&this.mInputHatches.get(0).mFluid.amount>0){ + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistillationRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {}); + if (tRecipe != null) { + if (tRecipe.isRecipeInputEqual(true, new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {})) + { + this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); + this.mEfficiencyIncrease = 10000; + if (tRecipe.mEUt <= 16) + { + this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1)); + this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1)); + } + else + { + this.mEUt = tRecipe.mEUt; + this.mMaxProgresstime = tRecipe.mDuration; + while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) + { + this.mEUt *= 4; + this.mMaxProgresstime /= 2; + } + } + if (this.mEUt > 0) { + this.mEUt = (-this.mEUt); + } + this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime); + this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) }; this.mOutputFluids = tRecipe.mFluidOutputs; -/* 104: 92 */ updateSlots(); -/* 105: 93 */ return true; -/* 106: */ } -/* 107: */ }} -/* 108: */ -/* 109: 96 */ return false; -/* 110: */ } -/* 111: */ private static boolean controller; -/* 112: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) -/* 113: */ { -/* 114:101 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; -/* 115:103 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) { -/* 116:103 */ return false; -/* 117: */ } -/* 118:105 */ int tAmount = 0; + updateSlots(); + return true; + } + }} + + return false; + } + private static boolean controller; + public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) + { + int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; + if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) { + return false; + } + int tAmount = 0; controller=false; -/* 119:107 */ for (int i = -1; i < 2; i++) { -/* 120:107 */ for (int j = -1; j < 2; j++) { -/* 121:107 */ for (int h = 0; h < 6; h++) { -/* 122:107 */ if (!(i==0&&j==0&&(h>0&&h<5)))//((h > 0)&&(h<5)) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))) -/* 123: */ { -/* 124:108 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); -/* 125:109 */ if ((!addMaintenanceToMachineList(tTileEntity, 49)) && (!addInputToMachineList(tTileEntity, 49)) && (!addOutputToMachineList(tTileEntity, 49)) && (!addEnergyInputToMachineList(tTileEntity, 49))&&(!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j)))) -/* 126: */ { -/* 127:110 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { -/* 128:110 */ return false; -/* 129: */ } + for (int i = -1; i < 2; i++) { + for (int j = -1; j < 2; j++) { + for (int h = 0; h < 6; h++) { + if (!(i==0&&j==0&&(h>0&&h<5)))//((h > 0)&&(h<5)) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))) + { + IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); + if ((!addMaintenanceToMachineList(tTileEntity, 49)) && (!addInputToMachineList(tTileEntity, 49)) && (!addOutputToMachineList(tTileEntity, 49)) && (!addEnergyInputToMachineList(tTileEntity, 49))&&(!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j)))) + { + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { + return false; + } if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 1) { -/* 131:111 */ return false; -/* 132: */ } -/* 133:112 */ tAmount++; -/* 134: */ } -/* 135: */ } -/* 136: */ } -/* 137: */ } -/* 138: */ } + return false; + } + tAmount++; + } + } + } + } + } if(this.mInputHatches.size()!=1||this.mOutputBusses.size()!=1||this.mInputBusses.size()!=0||this.mOutputHatches.size()!=5){return false;} int height = this.getBaseMetaTileEntity().getYCoord(); if(this.mInputHatches.get(0).getBaseMetaTileEntity().getYCoord()!=height||this.mOutputBusses.get(0).getBaseMetaTileEntity().getYCoord()!=height){return false;} @@ -152,36 +152,36 @@ import net.minecraftforge.fluids.FluidStack; tmpHatches[hatchNumber]=this.mOutputHatches.get(i); }else{return false;} } -/* 139:116 */ return tAmount >= 26; -/* 140: */ } + return tAmount >= 26; + } public boolean ignoreController(Block tTileEntity){ if(!controller&&tTileEntity == GregTech_API.sBlockMachines){return true;} return false; } -/* 141: */ -/* 142: */ public int getMaxEfficiency(ItemStack aStack) -/* 143: */ { -/* 144:121 */ return 10000; -/* 145: */ } -/* 146: */ -/* 147: */ public int getPollutionPerTick(ItemStack aStack) -/* 148: */ { -/* 149:126 */ return 0; -/* 150: */ } -/* 151: */ -/* 152: */ public int getDamageToComponent(ItemStack aStack) -/* 153: */ { -/* 154:131 */ return 0; -/* 155: */ } -/* 156: */ -/* 157: */ public int getAmountOfOutputs() -/* 158: */ { -/* 159:136 */ return 1; -/* 160: */ } -/* 161: */ -/* 162: */ public boolean explodesOnComponentBreak(ItemStack aStack) -/* 163: */ { -/* 164:141 */ return false; -/* 165: */ } -/* 166: */ }
\ No newline at end of file + + public int getMaxEfficiency(ItemStack aStack) + { + return 10000; + } + + public int getPollutionPerTick(ItemStack aStack) + { + return 0; + } + + public int getDamageToComponent(ItemStack aStack) + { + return 0; + } + + public int getAmountOfOutputs() + { + return 1; + } + + public boolean explodesOnComponentBreak(ItemStack aStack) + { + return false; + } +}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java index b8ef002bd9..5c6df03c1e 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java @@ -1,246 +1,246 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
+import java.util.Arrays;
-/* 14: */ import java.util.ArrayList;
-/* 15: */ import java.util.Arrays;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
-/* 16: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 17: */ import net.minecraft.item.ItemStack;
-/* 18: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 19: */ import net.minecraftforge.fluids.FluidStack;
-/* 20: */
-/* 21: */ public class GT_MetaTileEntity_ElectricBlastFurnace
-/* 22: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 23: */ {
-/* 24: 25 */ private int mHeatingCapacity = 0;
-/* 25: */
-/* 26: */ public GT_MetaTileEntity_ElectricBlastFurnace(int aID, String aName, String aNameRegional)
-/* 27: */ {
-/* 28: 28 */ super(aID, aName, aNameRegional);
-/* 29: */ }
-/* 30: */
-/* 31: */ public GT_MetaTileEntity_ElectricBlastFurnace(String aName)
-/* 32: */ {
-/* 33: 32 */ super(aName);
-/* 34: */ }
-/* 35: */
-/* 36: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 37: */ {
-/* 38: 37 */ return new GT_MetaTileEntity_ElectricBlastFurnace(this.mName);
-/* 39: */ }
-/* 40: */
-/* 41: */ public String[] getDescription()
-/* 42: */ {
-/* 43: 42 */ return new String[] { "Controller Block for the Blast Furnace", "Size: 3x3x4 (Hollow)", "Controller (front middle at bottom)", "16x Heating Coils (two middle Layers, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
-/* 44: */ }
-/* 45: */
-/* 46: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 47: */ {
-/* 48: 47 */ if (aSide == aFacing) {
-/* 49: 47 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE) };
-/* 50: */ }
-/* 51: 48 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
-/* 52: */ }
-/* 53: */
-/* 54: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 55: */ {
-/* 56: 53 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ElectricBlastFurnace.png");
-/* 57: */ }
-/* 58: */
-/* 59: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 60: */ {
-/* 61: 58 */ return GT_Recipe.GT_Recipe_Map.sBlastRecipes;
-/* 62: */ }
-/* 63: */
-/* 64: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 65: */ {
-/* 66: 63 */ return true;
-/* 67: */ }
-/* 68: */
-/* 69: */ public boolean isFacingValid(byte aFacing)
-/* 70: */ {
-/* 71: 66 */ return aFacing > 1;
-/* 72: */ }
-/* 73: */
-/* 74: */ public boolean checkRecipe(ItemStack aStack)
-/* 75: */ {
-/* 76: 70 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 77: 71 */ for (int i = 0; i < tInputList.size() - 1; i++) {
-/* 78: 71 */ for (int j = i + 1; j < tInputList.size(); j++) {
-/* 79: 72 */ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
-/* 80: 73 */ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
-/* 81: */ {
-/* 82: 73 */ tInputList.remove(j--);
-/* 83: */ }
-/* 84: */ else
-/* 85: */ {
-/* 86: 73 */ tInputList.remove(i--); break;
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90: */ }
-/* 91: 76 */ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
-/* 92: */
-/* 93: 78 */ ArrayList<FluidStack> tFluidList = getStoredFluids();
-/* 94: 79 */ for (int i = 0; i < tFluidList.size() - 1; i++) {
-/* 95: 79 */ for (int j = i + 1; j < tFluidList.size(); j++) {
-/* 96: 80 */ if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) {
-/* 97: 81 */ if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount)
-/* 98: */ {
-/* 99: 81 */ tFluidList.remove(j--);
-/* 100: */ }
-/* 101: */ else
-/* 102: */ {
-/* 103: 81 */ tFluidList.remove(i--); break;
-/* 104: */ }
-/* 105: */ }
-/* 106: */ }
-/* 107: */ }
-/* 108: 84 */ FluidStack[] tFluids = (FluidStack[])Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tInputList.size()]), 0, 1);
-/* 109: 86 */ if (tInputList.size() > 0)
-/* 110: */ {
-/* 111: 87 */ long tVoltage = getMaxInputVoltage();
-/* 112: 88 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
-/* 113: 89 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBlastRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs);
-/* 114: 91 */ if ((tRecipe != null) && (this.mHeatingCapacity >= tRecipe.mSpecialValue) && (tRecipe.isRecipeInputEqual(true, tFluids, tInputs)))
-/* 115: */ {
-/* 116: 92 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 117: 93 */ this.mEfficiencyIncrease = 10000;
-/* 118: 95 */ if (tRecipe.mEUt <= 16)
-/* 119: */ {
-/* 120: 96 */ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
-/* 121: 97 */ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
-/* 122: */ }
-/* 123: */ else
-/* 124: */ {
-/* 125: 99 */ this.mEUt = tRecipe.mEUt;
-/* 126:100 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 127:101 */ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
-/* 128: */ {
-/* 129:102 */ this.mEUt *= 4;
-/* 130:103 */ this.mMaxProgresstime /= 2;
-/* 131: */ }
-/* 132: */ }
-/* 133:107 */ if (this.mEUt > 0) {
-/* 134:107 */ this.mEUt = (-this.mEUt);
-/* 135: */ }
-/* 136:108 */ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
-/* 137:109 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
-/* 138:110 */ updateSlots();
-/* 139:111 */ return true;
-/* 140: */ }
-/* 141: */ }
-/* 142:114 */ return false;
-/* 143: */ }
-/* 144: */
-/* 145: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 146: */ {
-/* 147:119 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 148: */
-/* 149:121 */ this.mHeatingCapacity = 0;
-/* 150:123 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
-/* 151:123 */ return false;
-/* 152: */ }
-/* 153:124 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 2, zDir)) {
-/* 154:124 */ return false;
-/* 155: */ }
-/* 156:126 */ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 3, zDir), 11);
-/* 157: */
-/* 158:128 */ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 2, zDir);
-/* 159:130 */ switch (tUsedMeta)
-/* 160: */ {
-/* 161: */ case 12:
-/* 162:131 */ this.mHeatingCapacity = 1800; break;
-/* 163: */ case 13:
-/* 164:132 */ this.mHeatingCapacity = 2700; break;
-/* 165: */ case 14:
-/* 166:133 */ this.mHeatingCapacity = 3600; break;
-/* 167: */ default:
-/* 168:134 */ return false;
-/* 169: */ }
-/* 170:137 */ for (int i = -1; i < 2; i++) {
-/* 171:137 */ for (int j = -1; j < 2; j++) {
-/* 172:137 */ if ((i != 0) || (j != 0))
-/* 173: */ {
-/* 174:138 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 175:138 */ return false;
-/* 176: */ }
-/* 177:139 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != tUsedMeta) {
-/* 178:139 */ return false;
-/* 179: */ }
-/* 180:140 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 181:140 */ return false;
-/* 182: */ }
-/* 183:141 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
-/* 184:141 */ return false;
-/* 185: */ }
-/* 186:142 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 3, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 187:142 */ return false;
-/* 188: */ }
-/* 189:143 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 3, zDir + j) != 11) {
-/* 190:143 */ return false;
-/* 191: */ }
-/* 192: */ }
-/* 193: */ }
-/* 194: */ }
-/* 195:146 */ for (int i = -1; i < 2; i++) {
-/* 196:146 */ for (int j = -1; j < 2; j++) {
-/* 197:146 */ if ((xDir + i != 0) || (zDir + j != 0))
-/* 198: */ {
-/* 199:147 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
-/* 200:148 */ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
-/* 201: */ {
-/* 202:149 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 203:149 */ return false;
-/* 204: */ }
-/* 205:150 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
-/* 206:150 */ return false;
-/* 207: */ }
-/* 208: */ }
-/* 209: */ }
-/* 210: */ }
-/* 211: */ }
-/* 212:154 */ this.mHeatingCapacity += 100 * (GT_Utility.getTier(getMaxInputVoltage()) - 2);
-/* 213:155 */ return true;
-/* 214: */ }
-/* 215: */
-/* 216: */ public int getMaxEfficiency(ItemStack aStack)
-/* 217: */ {
-/* 218:160 */ return 10000;
-/* 219: */ }
-/* 220: */
-/* 221: */ public int getPollutionPerTick(ItemStack aStack)
-/* 222: */ {
-/* 223:165 */ return 10;
-/* 224: */ }
-/* 225: */
-/* 226: */ public int getDamageToComponent(ItemStack aStack)
-/* 227: */ {
-/* 228:170 */ return 0;
-/* 229: */ }
-/* 230: */
-/* 231: */ public int getAmountOfOutputs()
-/* 232: */ {
-/* 233:175 */ return 2;
-/* 234: */ }
-/* 235: */
-/* 236: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 237: */ {
-/* 238:180 */ return false;
-/* 239: */ }
-/* 240: */ }
+public class GT_MetaTileEntity_ElectricBlastFurnace
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ private int mHeatingCapacity = 0;
+
+ public GT_MetaTileEntity_ElectricBlastFurnace(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_ElectricBlastFurnace(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ElectricBlastFurnace(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Blast Furnace", "Size: 3x3x4 (Hollow)", "Controller (front middle at bottom)", "16x Heating Coils (two middle Layers, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ElectricBlastFurnace.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sBlastRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ for (int i = 0; i < tInputList.size() - 1; i++) {
+ for (int j = i + 1; j < tInputList.size(); j++) {
+ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
+ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
+ {
+ tInputList.remove(j--);
+ }
+ else
+ {
+ tInputList.remove(i--); break;
+ }
+ }
+ }
+ }
+ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
+
+ ArrayList<FluidStack> tFluidList = getStoredFluids();
+ for (int i = 0; i < tFluidList.size() - 1; i++) {
+ for (int j = i + 1; j < tFluidList.size(); j++) {
+ if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) {
+ if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount)
+ {
+ tFluidList.remove(j--);
+ }
+ else
+ {
+ tFluidList.remove(i--); break;
+ }
+ }
+ }
+ }
+ FluidStack[] tFluids = (FluidStack[])Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tInputList.size()]), 0, 1);
+ if (tInputList.size() > 0)
+ {
+ long tVoltage = getMaxInputVoltage();
+ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBlastRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs);
+ if ((tRecipe != null) && (this.mHeatingCapacity >= tRecipe.mSpecialValue) && (tRecipe.isRecipeInputEqual(true, tFluids, tInputs)))
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
+ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
+ }
+ else
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = tRecipe.mDuration;
+ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
+ {
+ this.mEUt *= 4;
+ this.mMaxProgresstime /= 2;
+ }
+ }
+ if (this.mEUt > 0) {
+ this.mEUt = (-this.mEUt);
+ }
+ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
+ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
+ updateSlots();
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+
+ this.mHeatingCapacity = 0;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
+ return false;
+ }
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 2, zDir)) {
+ return false;
+ }
+ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 3, zDir), 11);
+
+ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 2, zDir);
+ switch (tUsedMeta)
+ {
+ case 12:
+ this.mHeatingCapacity = 1800; break;
+ case 13:
+ this.mHeatingCapacity = 2700; break;
+ case 14:
+ this.mHeatingCapacity = 3600; break;
+ default:
+ return false;
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((i != 0) || (j != 0))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != tUsedMeta) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 3, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 3, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((xDir + i != 0) || (zDir + j != 0))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ this.mHeatingCapacity += 100 * (GT_Utility.getTier(getMaxInputVoltage()) - 2);
+ return true;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 10;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 2;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java index aedeeac45d..ef34923e27 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java @@ -1,6 +1,6 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi; -/* 2: */ -/* 3: */ import java.util.ArrayList; +package gregtech.common.tileentities.machines.multi; + +import java.util.ArrayList; import java.util.Arrays; import gregtech.GT_Mod; @@ -9,46 +9,46 @@ import gregtech.api.enums.Dyes; import gregtech.api.enums.Textures; import gregtech.api.gui.GT_Container_MultiMachine; import gregtech.api.gui.GT_GUIContainer_MultiMachine; -/* 4: */ import gregtech.api.interfaces.ITexture; -/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -/* 6: */ import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Energy; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Input; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Maintenance; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase; -/* 7: */ import gregtech.api.objects.GT_ItemStack; +import gregtech.api.objects.GT_ItemStack; import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; import gregtech.api.metatileentity.implementations.*; import gregtech.common.gui.GT_GUIContainer_FusionReactor; import net.minecraft.block.Block; -/* 8: */ import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; -/* 9: */ import net.minecraft.item.ItemStack; -/* 10: */ import net.minecraft.nbt.NBTTagCompound; -/* 11: */ import net.minecraftforge.common.util.ForgeDirection; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.fluids.FluidStack; -/* 12: */ -/* 13: */ public abstract class GT_MetaTileEntity_FusionComputer -/* 14: */ extends GT_MetaTileEntity_MultiBlockBase -/* 15: */ { + +public abstract class GT_MetaTileEntity_FusionComputer + extends GT_MetaTileEntity_MultiBlockBase +{ public GT_Recipe mLastRecipe; public int mEUStore; -/* 16: */ public GT_MetaTileEntity_FusionComputer(int aID, String aName, String aNameRegional, int tier) -/* 17: */ { -/* 18: 16 */ super(aID, aName, aNameRegional); -/* 19: */ } -/* 20: */ -/* 21: */ public GT_MetaTileEntity_FusionComputer(String aName) -/* 22: */ { -/* 23: 20 */ super(aName); -/* 24: */ } -/* 30: */ public abstract int tier(); -/* 40: */ -/* 41: */ public abstract long maxEUStore(); -/* 50: */ + public GT_MetaTileEntity_FusionComputer(int aID, String aName, String aNameRegional, int tier) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_FusionComputer(String aName) + { + super(aName); + } + public abstract int tier(); + + public abstract long maxEUStore(); + @Override public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) { return new GT_Container_MultiMachine(aPlayerInventory, aBaseMetaTileEntity); @@ -58,81 +58,81 @@ import net.minecraftforge.fluids.FluidStack; public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) { return new GT_GUIContainer_FusionReactor(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "FusionComputer.png"); } -/* 56: */ -/* 57: */ public abstract MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity); -/* 61: */ -/* 62: */ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aStack) -/* 63: */ { -/* 64: 42 */ return aSide != getBaseMetaTileEntity().getFrontFacing(); -/* 65: */ } -/* 66: */ -/* 67: */ public void saveNBTData(NBTTagCompound aNBT) { + + public abstract MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity); + + public boolean allowCoverOnSide(byte aSide, GT_ItemStack aStack) + { + return aSide != getBaseMetaTileEntity().getFrontFacing(); + } + + public void saveNBTData(NBTTagCompound aNBT) { super.saveNBTData(aNBT); } -/* 68: */ -/* 69: */ public void loadNBTData(NBTTagCompound aNBT) { + + public void loadNBTData(NBTTagCompound aNBT) { super.loadNBTData(aNBT); } -/* 70: */ -/* 71: */ @Override + + @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity,ItemStack aStack) { -/* 73: 57 */ int xCenter = getBaseMetaTileEntity().getXCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetX * 5;int yCenter = getBaseMetaTileEntity().getYCoord();int zCenter = getBaseMetaTileEntity().getZCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetZ * 5; -/* 74: 59 */ if (((isAdvancedMachineCasing(xCenter + 5, yCenter, zCenter)) || (xCenter + 5 == getBaseMetaTileEntity().getXCoord())) && -/* 75: 60 */ ((isAdvancedMachineCasing(xCenter - 5, yCenter, zCenter)) || (xCenter - 5 == getBaseMetaTileEntity().getXCoord())) && -/* 76: 61 */ ((isAdvancedMachineCasing(xCenter, yCenter, zCenter + 5)) || (zCenter + 5 == getBaseMetaTileEntity().getZCoord())) && -/* 77: 62 */ ((isAdvancedMachineCasing(xCenter, yCenter, zCenter - 5)) || (zCenter - 5 == getBaseMetaTileEntity().getZCoord())) && -/* 78: 63 */ (checkCoils(xCenter, yCenter, zCenter)) && -/* 79: 64 */ (checkHulls(xCenter, yCenter, zCenter)) && -/* 80: 65 */ (checkUpperOrLowerHulls(xCenter, yCenter + 1, zCenter)) && -/* 81: 66 */ (checkUpperOrLowerHulls(xCenter, yCenter - 1, zCenter)) && -/* 82: 67 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && -/* 83: 68 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && -/* 84: 69 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 85: 70 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 86: 71 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && -/* 87: 72 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && -/* 88: 73 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 89: 74 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 90: 75 */ (addIfEnergyInjector(xCenter + 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 91: 76 */ (addIfEnergyInjector(xCenter - 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 92: 77 */ (addIfEnergyInjector(xCenter + 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 93: 78 */ (addIfEnergyInjector(xCenter - 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 94: 79 */ (addIfEnergyInjector(xCenter + 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 95: 80 */ (addIfEnergyInjector(xCenter - 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 96: 81 */ (addIfEnergyInjector(xCenter + 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 97: 82 */ (addIfEnergyInjector(xCenter - 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 98: 83 */ (addIfExtractor(xCenter + 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 99: 84 */ (addIfExtractor(xCenter + 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 100: 85 */ (addIfExtractor(xCenter - 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 101: 86 */ (addIfExtractor(xCenter - 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 102: 87 */ (addIfExtractor(xCenter + 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && -/* 103: 88 */ (addIfExtractor(xCenter + 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && -/* 104: 89 */ (addIfExtractor(xCenter - 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && -/* 105: 90 */ (addIfExtractor(xCenter - 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && -/* 106: 91 */ (addIfExtractor(xCenter + 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 107: 92 */ (addIfExtractor(xCenter + 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 108: 93 */ (addIfExtractor(xCenter - 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 109: 94 */ (addIfExtractor(xCenter - 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 110: 95 */ (addIfExtractor(xCenter + 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 111: 96 */ (addIfExtractor(xCenter + 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 112: 97 */ (addIfExtractor(xCenter - 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 113: 98 */ (addIfExtractor(xCenter - 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 114: 99 */ (addIfInjector(xCenter + 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 115:100 */ (addIfInjector(xCenter + 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 116:101 */ (addIfInjector(xCenter - 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 117:102 */ (addIfInjector(xCenter - 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 118:103 */ (addIfInjector(xCenter - 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 119:104 */ (addIfInjector(xCenter + 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 120:105 */ (addIfInjector(xCenter - 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && -/* 121:106 */ (addIfInjector(xCenter + 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && -/* 122:107 */ (addIfInjector(xCenter + 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 123:108 */ (addIfInjector(xCenter + 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 124:109 */ (addIfInjector(xCenter - 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 125:110 */ (addIfInjector(xCenter - 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 126:111 */ (addIfInjector(xCenter - 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 127:112 */ (addIfInjector(xCenter + 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 128:113 */ (addIfInjector(xCenter - 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && -/* 129:114 */ (addIfInjector(xCenter + 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && + int xCenter = getBaseMetaTileEntity().getXCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetX * 5;int yCenter = getBaseMetaTileEntity().getYCoord();int zCenter = getBaseMetaTileEntity().getZCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetZ * 5; + if (((isAdvancedMachineCasing(xCenter + 5, yCenter, zCenter)) || (xCenter + 5 == getBaseMetaTileEntity().getXCoord())) && + ((isAdvancedMachineCasing(xCenter - 5, yCenter, zCenter)) || (xCenter - 5 == getBaseMetaTileEntity().getXCoord())) && + ((isAdvancedMachineCasing(xCenter, yCenter, zCenter + 5)) || (zCenter + 5 == getBaseMetaTileEntity().getZCoord())) && + ((isAdvancedMachineCasing(xCenter, yCenter, zCenter - 5)) || (zCenter - 5 == getBaseMetaTileEntity().getZCoord())) && + (checkCoils(xCenter, yCenter, zCenter)) && + (checkHulls(xCenter, yCenter, zCenter)) && + (checkUpperOrLowerHulls(xCenter, yCenter + 1, zCenter)) && + (checkUpperOrLowerHulls(xCenter, yCenter - 1, zCenter)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && (this.mEnergyHatches.size()>=1)&& (this.mOutputHatches.size()>=1)&& (this.mInputHatches.size()>=2)) { @@ -147,10 +147,10 @@ import net.minecraftforge.fluids.FluidStack; if(this.mInputHatches.get(i).mTier<tier())return false;} } mWrench = true;mScrewdriver = true; mSoftHammer = true; mHardHammer = true; mSolderingTool = true; mCrowbar = true; -/* 130:115 */ return true; -/* 131: */ } -/* 132:117 */ return false; -/* 133: */ } + return true; + } + return false; + } private boolean checkTier(byte tier,ArrayList<GT_MetaTileEntity_Hatch> list){ if(list!=null){ @@ -162,64 +162,64 @@ import net.minecraftforge.fluids.FluidStack; } return true; } -/* 134: */ -/* 135: */ private boolean checkCoils(int aX, int aY, int aZ) -/* 136: */ { -/* 137:121 */ return (isFusionCoil(aX + 6, aY, aZ - 1)) && (isFusionCoil(aX + 6, aY, aZ)) && (isFusionCoil(aX + 6, aY, aZ + 1)) && (isFusionCoil(aX + 5, aY, aZ - 3)) && (isFusionCoil(aX + 5, aY, aZ - 2)) && (isFusionCoil(aX + 5, aY, aZ + 2)) && (isFusionCoil(aX + 5, aY, aZ + 3)) && (isFusionCoil(aX + 4, aY, aZ - 4)) && (isFusionCoil(aX + 4, aY, aZ + 4)) && (isFusionCoil(aX + 3, aY, aZ - 5)) && (isFusionCoil(aX + 3, aY, aZ + 5)) && (isFusionCoil(aX + 2, aY, aZ - 5)) && (isFusionCoil(aX + 2, aY, aZ + 5)) && (isFusionCoil(aX + 1, aY, aZ - 6)) && (isFusionCoil(aX + 1, aY, aZ + 6)) && (isFusionCoil(aX, aY, aZ - 6)) && (isFusionCoil(aX, aY, aZ + 6)) && (isFusionCoil(aX - 1, aY, aZ - 6)) && (isFusionCoil(aX - 1, aY, aZ + 6)) && (isFusionCoil(aX - 2, aY, aZ - 5)) && (isFusionCoil(aX - 2, aY, aZ + 5)) && (isFusionCoil(aX - 3, aY, aZ - 5)) && (isFusionCoil(aX - 3, aY, aZ + 5)) && (isFusionCoil(aX - 4, aY, aZ - 4)) && (isFusionCoil(aX - 4, aY, aZ + 4)) && (isFusionCoil(aX - 5, aY, aZ - 3)) && (isFusionCoil(aX - 5, aY, aZ - 2)) && (isFusionCoil(aX - 5, aY, aZ + 2)) && (isFusionCoil(aX - 5, aY, aZ + 3)) && (isFusionCoil(aX - 6, aY, aZ - 1)) && (isFusionCoil(aX - 6, aY, aZ)) && (isFusionCoil(aX - 6, aY, aZ + 1)); -/* 138: */ } -/* 139: */ -/* 140: */ private boolean checkUpperOrLowerHulls(int aX, int aY, int aZ) -/* 141: */ { -/* 142:168 */ return (isAdvancedMachineCasing(aX + 6, aY, aZ)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX, aY, aZ - 6)) && (isAdvancedMachineCasing(aX, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ)); -/* 143: */ } -/* 144: */ -/* 145: */ private boolean checkHulls(int aX, int aY, int aZ) -/* 146: */ { -/* 147:205 */ return (isAdvancedMachineCasing(aX + 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 7, aY, aZ)) && (isAdvancedMachineCasing(aX + 7, aY, aZ)) && (isAdvancedMachineCasing(aX, aY, aZ - 7)) && (isAdvancedMachineCasing(aX, aY, aZ + 7)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 4)); -/* 148: */ } -/* 149: */ -/* 150: */ private boolean addIfEnergyInjector(int aX, int aY, int aZ,IGregTechTileEntity aBaseMetaTileEntity) -/* 151: */ { + + private boolean checkCoils(int aX, int aY, int aZ) + { + return (isFusionCoil(aX + 6, aY, aZ - 1)) && (isFusionCoil(aX + 6, aY, aZ)) && (isFusionCoil(aX + 6, aY, aZ + 1)) && (isFusionCoil(aX + 5, aY, aZ - 3)) && (isFusionCoil(aX + 5, aY, aZ - 2)) && (isFusionCoil(aX + 5, aY, aZ + 2)) && (isFusionCoil(aX + 5, aY, aZ + 3)) && (isFusionCoil(aX + 4, aY, aZ - 4)) && (isFusionCoil(aX + 4, aY, aZ + 4)) && (isFusionCoil(aX + 3, aY, aZ - 5)) && (isFusionCoil(aX + 3, aY, aZ + 5)) && (isFusionCoil(aX + 2, aY, aZ - 5)) && (isFusionCoil(aX + 2, aY, aZ + 5)) && (isFusionCoil(aX + 1, aY, aZ - 6)) && (isFusionCoil(aX + 1, aY, aZ + 6)) && (isFusionCoil(aX, aY, aZ - 6)) && (isFusionCoil(aX, aY, aZ + 6)) && (isFusionCoil(aX - 1, aY, aZ - 6)) && (isFusionCoil(aX - 1, aY, aZ + 6)) && (isFusionCoil(aX - 2, aY, aZ - 5)) && (isFusionCoil(aX - 2, aY, aZ + 5)) && (isFusionCoil(aX - 3, aY, aZ - 5)) && (isFusionCoil(aX - 3, aY, aZ + 5)) && (isFusionCoil(aX - 4, aY, aZ - 4)) && (isFusionCoil(aX - 4, aY, aZ + 4)) && (isFusionCoil(aX - 5, aY, aZ - 3)) && (isFusionCoil(aX - 5, aY, aZ - 2)) && (isFusionCoil(aX - 5, aY, aZ + 2)) && (isFusionCoil(aX - 5, aY, aZ + 3)) && (isFusionCoil(aX - 6, aY, aZ - 1)) && (isFusionCoil(aX - 6, aY, aZ)) && (isFusionCoil(aX - 6, aY, aZ + 1)); + } + + private boolean checkUpperOrLowerHulls(int aX, int aY, int aZ) + { + return (isAdvancedMachineCasing(aX + 6, aY, aZ)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX, aY, aZ - 6)) && (isAdvancedMachineCasing(aX, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ)); + } + + private boolean checkHulls(int aX, int aY, int aZ) + { + return (isAdvancedMachineCasing(aX + 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 7, aY, aZ)) && (isAdvancedMachineCasing(aX + 7, aY, aZ)) && (isAdvancedMachineCasing(aX, aY, aZ - 7)) && (isAdvancedMachineCasing(aX, aY, aZ + 7)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 4)); + } + + private boolean addIfEnergyInjector(int aX, int aY, int aZ,IGregTechTileEntity aBaseMetaTileEntity) + { if(addEnergyInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntity(aX,aY,aZ), 53)){ return true; } -/* 152:242 */ return isAdvancedMachineCasing(aX, aY, aZ); -/* 153: */ } -/* 154: */ -/* 155: */ private boolean addIfInjector(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) -/* 156: */ { + return isAdvancedMachineCasing(aX, aY, aZ); + } + + private boolean addIfInjector(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) + { if(addInputToMachineList(aTileEntity.getIGregTechTileEntity(aX,aY,aZ), 53)){ return true; } -/* 157:246 */ return isAdvancedMachineCasing(aX, aY, aZ); -/* 158: */ } -/* 159: */ -/* 160: */ private boolean addIfExtractor(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) -/* 161: */ { + return isAdvancedMachineCasing(aX, aY, aZ); + } + + private boolean addIfExtractor(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) + { if(addOutputToMachineList(aTileEntity.getIGregTechTileEntity(aX,aY,aZ), 53)){ return true; } -/* 162:250 */ return isAdvancedMachineCasing(aX, aY, aZ); -/* 163: */ } -/* 164: */ -/* 165: */ private boolean isAdvancedMachineCasing(int aX, int aY, int aZ) -/* 166: */ { -/* 167:254 */ return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getCasing()) && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getCasingMeta()); -/* 168: */ } + return isAdvancedMachineCasing(aX, aY, aZ); + } + + private boolean isAdvancedMachineCasing(int aX, int aY, int aZ) + { + return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getCasing()) && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getCasingMeta()); + } public abstract Block getCasing(); public abstract int getCasingMeta(); -/* 169: */ -/* 170: */ private boolean isFusionCoil(int aX, int aY, int aZ) -/* 171: */ { -/* 172:258 */ return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getFusionCoil() && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getFusionCoilMeta())); -/* 173: */ } + + private boolean isFusionCoil(int aX, int aY, int aZ) + { + return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getFusionCoil() && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getFusionCoilMeta())); + } public abstract Block getFusionCoil(); public abstract int getFusionCoilMeta(); -/* 190: */ public abstract String[] getDescription(); -/* 194: */ -/* 195: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) -/* 196: */ { + public abstract String[] getDescription(); + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { ITexture[] sTexture; if(aSide==aFacing){ sTexture = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS, Dyes.getModulation(-1, Dyes._NULL.mRGBa)),new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SCREEN) }; @@ -229,8 +229,8 @@ import net.minecraftforge.fluids.FluidStack; sTexture = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW, Dyes.getModulation(-1, Dyes._NULL.mRGBa))}; } } -/* 197:283 */ return sTexture; -/* 198: */ } + return sTexture; + } @Override public boolean isCorrectMachinePart(ItemStack aStack) {return true;} diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java index 193118eec8..5c16af3e37 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java @@ -29,50 +29,50 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_HeatExchanger extends GT_MetaTileEntity_MultiBlockBase{ - /* 25: */ public GT_MetaTileEntity_HeatExchanger(int aID, String aName, String aNameRegional) - /* 26: */ { - /* 27: 25 */ super(aID, aName, aNameRegional); - /* 28: */ } - /* 29: */ - /* 30: */ public GT_MetaTileEntity_HeatExchanger(String aName) - /* 31: */ { - /* 32: 29 */ super(aName); - /* 33: */ } - /* 34: */ - /* 35: */ public String[] getDescription() - /* 36: */ { - /* 37: 34 */ return new String[] { "Controller Block for the Heat Exchanger", "Size: 3x3x4", "Controller (front middle at bottom)", "3x3x4 of Stable Titanium Casing (hollow, Min 24!)", "2 Titanium Pipe Casing Blocks inside the Hollow Casing", "1x Distillated Water Input (one of the Casings)","min 1 Steam Output (one of the Casings)", "1x Maintenance Hatch (one of the Casings)", "1x Hot Fluid Input (botton Center)", "1x Cold Fluid Output (top Center)" }; - /* 38: */ } + public GT_MetaTileEntity_HeatExchanger(int aID, String aName, String aNameRegional) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_HeatExchanger(String aName) + { + super(aName); + } + + public String[] getDescription() + { + return new String[] { "Controller Block for the Heat Exchanger", "Size: 3x3x4", "Controller (front middle at bottom)", "3x3x4 of Stable Titanium Casing (hollow, Min 24!)", "2 Titanium Pipe Casing Blocks inside the Hollow Casing", "1x Distillated Water Input (one of the Casings)","min 1 Steam Output (one of the Casings)", "1x Maintenance Hatch (one of the Casings)", "1x Hot Fluid Input (botton Center)", "1x Cold Fluid Output (top Center)" }; + } public GT_MetaTileEntity_Hatch_Input mInputHotFluidHatch; public GT_MetaTileEntity_Hatch_Output mOutputColdFluidHatch; public boolean superheated=false; - /* 59: */ - /* 60: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) - /* 61: */ { - /* 62: 53 */ if (aSide == aFacing) { - /* 63: 53 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; - /* 64: */ } - /* 65: 54 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50] }; - /* 66: */ } - /* 67: */ - /* 68: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) - /* 69: */ { - /* 70: 59 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png"); - /* 71: */ } - /* 72: */ - /* 73: */ public boolean isCorrectMachinePart(ItemStack aStack) - /* 74: */ { - /* 75: 64 */ return true; - /* 76: */ } - /* 77: */ - /* 78: */ public boolean isFacingValid(byte aFacing) - /* 79: */ { - /* 80: 67 */ return aFacing > 1; - /* 81: */ } - /* 82: */ - /* 83: */ public boolean checkRecipe(ItemStack aStack) - /* 84: */ { + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { + if (aSide == aFacing) { + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; + } + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50] }; + } + + public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) + { + return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png"); + } + + public boolean isCorrectMachinePart(ItemStack aStack) + { + return true; + } + + public boolean isFacingValid(byte aFacing) + { + return aFacing > 1; + } + + public boolean checkRecipe(ItemStack aStack) + { if(GT_ModHandler.isLava(mInputHotFluidHatch.getFluid())){ int fluidAmount = mInputHotFluidHatch.getFluidAmount(); if(fluidAmount >= 1000){superheated=true;}else{superheated=false;} @@ -101,73 +101,73 @@ public class GT_MetaTileEntity_HeatExchanger extends GT_MetaTileEntity_MultiBloc return true; } return false;} - /* 133: */ - /* 134: */ public boolean onRunningTick(ItemStack aStack) - /* 135: */ { - /* 136:115 */ if (this.mEUt > 0) - /* 137: */ {System.out.println("EU: "+mEUt+" Eff: "+mEfficiency); - /* 138:116 */ int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L); - /* 139:117 */ if (tGeneratedEU > 0) { - /* 140:118 */ if (depleteInput(GT_ModHandler.getDistilledWater(((superheated ? tGeneratedEU/2 :tGeneratedEU) + 160) / 160))) { + + public boolean onRunningTick(ItemStack aStack) + { + if (this.mEUt > 0) + {System.out.println("EU: "+mEUt+" Eff: "+mEfficiency); + int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L); + if (tGeneratedEU > 0) { + if (depleteInput(GT_ModHandler.getDistilledWater(((superheated ? tGeneratedEU/2 :tGeneratedEU) + 160) / 160))) { if(superheated){ addOutput(FluidRegistry.getFluidStack("ic2superheatedsteam", tGeneratedEU/2)); }else{ - /* 141:119 */ addOutput(GT_ModHandler.getSteam(tGeneratedEU));} - /* 142: */ } else { - /* 143:121 */ explodeMultiblock(); - /* 144: */ } - /* 145: */ } - /* 146:124 */ return true; - /* 147: */ } - /* 148:126 */ return true; - /* 149: */ } - /* 150: */ private static boolean controller; - /* 151: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) - /* 152: */ { - /* 153:131 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; - /* 154: */ - /* 155:133 */ int tCasingAmount = 0;int tFireboxAmount = 0;controller=false; - /* 156:135 */ for (int i = -1; i < 2; i++) { - /* 157:135 */ for (int j = -1; j < 2; j++) { - /* 158:136 */ if ((i != 0) || (j != 0)) - /* 159: */ { - /* 160:137 */ for (int k = 0; k <= 3; k++) { - /* 161:138 */ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addMaintenanceToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j))) - /* 162: */ { - /* 163:139 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) { - /* 164:139 */ return false; - /* 165: */ } - /* 166:140 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) { - /* 167:140 */ return false; - /* 168: */ } - /* 169:141 */ tCasingAmount++; - /* 170: */ } + addOutput(GT_ModHandler.getSteam(tGeneratedEU));} + } else { + explodeMultiblock(); + } + } + return true; + } + return true; + } + private static boolean controller; + public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) + { + int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; + + int tCasingAmount = 0;int tFireboxAmount = 0;controller=false; + for (int i = -1; i < 2; i++) { + for (int j = -1; j < 2; j++) { + if ((i != 0) || (j != 0)) + { + for (int k = 0; k <= 3; k++) { + if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addMaintenanceToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j))) + { + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) { + return false; + } + tCasingAmount++; + } } - /* 171: */ }else{ + }else{ if(!addHotFluidInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j), 50)){ return false; } if(!addColdFluidOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 3, zDir + j), 50)){ return false; } - /* 177:146 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != getPipeBlock()) { - /* 178:146 */ return false; - /* 179: */ } - /* 180:147 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != getPipeMeta()) { - /* 181:147 */ return false; - /* 182: */ } + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != getPipeBlock()) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != getPipeMeta()) { + return false; + } - /* 177:146 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != getPipeBlock()) { - /* 178:146 */ return false; - /* 179: */ } - /* 180:147 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != getPipeMeta()) { - /* 181:147 */ return false; - /* 182: */ } - /* 172: */ } - /* 195: */ } - /* 196: */ } - /* 215:166 */ return (tCasingAmount >= 24); - /* 216: */ } + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != getPipeBlock()) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != getPipeMeta()) { + return false; + } + } + } + } + return (tCasingAmount >= 24); + } public boolean ignoreController(Block tTileEntity){ if(!controller&&tTileEntity == GregTech_API.sBlockMachines){return true;} @@ -199,58 +199,58 @@ public class GT_MetaTileEntity_HeatExchanger extends GT_MetaTileEntity_MultiBloc return false; } - /* 26: */ public Block getCasingBlock() - /* 27: */ { - /* 28:22 */ return GregTech_API.sBlockCasings4; - /* 29: */ } - /* 30: */ - /* 31: */ public byte getCasingMeta() - /* 32: */ { - /* 33:23 */ return 2; - /* 34: */ } - /* 35: */ - /* 36: */ public byte getCasingTextureIndex() - /* 37: */ { - /* 38:24 */ return 50; - /* 39: */ } - /* 40: */ - /* 41: */ public Block getPipeBlock() - /* 42: */ { - /* 43:26 */ return GregTech_API.sBlockCasings2; - /* 44: */ } - /* 45: */ - /* 46: */ public byte getPipeMeta() - /* 47: */ { - /* 48:27 */ return 14; - /* 49: */ } - /* 217: */ - /* 218: */ public int getMaxEfficiency(ItemStack aStack) - /* 219: */ { - /* 220:171 */ return 10000; - /* 221: */ } - /* 222: */ - /* 223: */ public int getPollutionPerTick(ItemStack aStack) - /* 224: */ { - /* 225:176 */ return 10; - /* 226: */ } - /* 227: */ - /* 228: */ public int getDamageToComponent(ItemStack aStack) - /* 229: */ { - /* 230:181 */ return 0; - /* 231: */ } - /* 232: */ - /* 233: */ public int getAmountOfOutputs() - /* 234: */ { - /* 235:186 */ return 1; - /* 236: */ } - /* 237: */ - /* 238: */ public boolean explodesOnComponentBreak(ItemStack aStack) - /* 239: */ { - /* 240:191 */ return false; - /* 241: */ } - /* 242: */ - /* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) - /* 22: */ { - /* 23:19 */ return new GT_MetaTileEntity_HeatExchanger(this.mName); - /* 24: */ } + public Block getCasingBlock() + { + return GregTech_API.sBlockCasings4; + } + + public byte getCasingMeta() + { + return 2; + } + + public byte getCasingTextureIndex() + { + return 50; + } + + public Block getPipeBlock() + { + return GregTech_API.sBlockCasings2; + } + + public byte getPipeMeta() + { + return 14; + } + + public int getMaxEfficiency(ItemStack aStack) + { + return 10000; + } + + public int getPollutionPerTick(ItemStack aStack) + { + return 10; + } + + public int getDamageToComponent(ItemStack aStack) + { + return 0; + } + + public int getAmountOfOutputs() + { + return 1; + } + + public boolean explodesOnComponentBreak(ItemStack aStack) + { + return false; + } + + public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_HeatExchanger(this.mName); + } } diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java index 48b7f03770..468da7a845 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java @@ -1,177 +1,177 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Map;
-/* 14: */ import java.util.ArrayList;
-/* 15: */ import java.util.Arrays;
-/* 16: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
-/* 17: */ import net.minecraft.block.Block;
-/* 18: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 19: */ import net.minecraft.item.ItemStack;
-/* 20: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 21: */
-/* 22: */ public class GT_MetaTileEntity_ImplosionCompressor
-/* 23: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 24: */ {
-/* 25: */ public GT_MetaTileEntity_ImplosionCompressor(int aID, String aName, String aNameRegional)
-/* 26: */ {
-/* 27: 25 */ super(aID, aName, aNameRegional);
-/* 28: */ }
-/* 29: */
-/* 30: */ public GT_MetaTileEntity_ImplosionCompressor(String aName)
-/* 31: */ {
-/* 32: 29 */ super(aName);
-/* 33: */ }
-/* 34: */
-/* 35: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37: 34 */ return new GT_MetaTileEntity_ImplosionCompressor(this.mName);
-/* 38: */ }
-/* 39: */
-/* 40: */ public String[] getDescription()
-/* 41: */ {
-/* 42: 39 */ return new String[] { "Controller Block for the Implosion Compressor", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "1x Muffler Hatch (anywhere)", "Solid Steel Casings for the rest (16 at least!)" };
-/* 43: */ }
-/* 44: */
-/* 45: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 46: */ {
-/* 47: 44 */ if (aSide == aFacing) {
-/* 48: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR) };
-/* 49: */ }
-/* 50: 45 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16] };
-/* 51: */ }
-/* 52: */
-/* 53: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 54: */ {
-/* 55: 50 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ImplosionCompressor.png");
-/* 56: */ }
-/* 57: */
-/* 58: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 59: */ {
-/* 60: 55 */ return GT_Recipe.GT_Recipe_Map.sImplosionRecipes;
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 64: */ {
-/* 65: 60 */ return true;
-/* 66: */ }
-/* 67: */
-/* 68: */ public boolean isFacingValid(byte aFacing)
-/* 69: */ {
-/* 70: 63 */ return aFacing > 1;
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean checkRecipe(ItemStack aStack)
-/* 74: */ {
-/* 75: 67 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 76: 69 */ for (int i = 0; i < tInputList.size() - 1; i++) {
-/* 77: 69 */ for (int j = i + 1; j < tInputList.size(); j++) {
-/* 78: 70 */ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
-/* 79: 71 */ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
-/* 80: */ {
-/* 81: 71 */ tInputList.remove(j--);
-/* 82: */ }
-/* 83: */ else
-/* 84: */ {
-/* 85: 71 */ tInputList.remove(i--); break;
-/* 86: */ }
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90: 75 */ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
-/* 91: 77 */ if (tInputList.size() > 0)
-/* 92: */ {
-/* 93: 78 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sImplosionRecipes.findRecipe(getBaseMetaTileEntity(), false, 9223372036854775807L, null, tInputs);
-/* 94: 79 */ if ((tRecipe != null) && (tRecipe.isRecipeInputEqual(true, null, tInputs)))
-/* 95: */ {
-/* 96: 80 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 97: 81 */ this.mEfficiencyIncrease = 10000;
-/* 98: */
-/* 99: 83 */ this.mEUt = (-tRecipe.mEUt);
-/* 100: 84 */ this.mMaxProgresstime = Math.max(1, tRecipe.mDuration);
-/* 101: 85 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
-/* 102: 86 */ sendLoopStart((byte)20);
-/* 103: 87 */ updateSlots();
-/* 104: 88 */ return true;
-/* 105: */ }
-/* 106: */ }
-/* 107: 91 */ return false;
-/* 108: */ }
-/* 109: */
-/* 110: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 111: */ {
-/* 112: 96 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 113: 97 */ if (aIndex == 20) {
-/* 114: 97 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(5)), 10, 1.0F, aX, aY, aZ);
-/* 115: */ }
-/* 116: */ }
-/* 117: */
-/* 118: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 119: */ {
-/* 120:102 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 121:104 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
-/* 122:104 */ return false;
-/* 123: */ }
-/* 124:106 */ int tAmount = 0;
-/* 125:108 */ for (int i = -1; i < 2; i++) {
-/* 126:108 */ for (int j = -1; j < 2; j++) {
-/* 127:108 */ for (int h = -1; h < 2; h++) {
-/* 128:108 */ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
-/* 129: */ {
-/* 130:109 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
-/* 131:110 */ if ((!addMaintenanceToMachineList(tTileEntity, 16)) && (!addMufflerToMachineList(tTileEntity, 16)) && (!addInputToMachineList(tTileEntity, 16)) && (!addOutputToMachineList(tTileEntity, 16)) && (!addEnergyInputToMachineList(tTileEntity, 16)))
-/* 132: */ {
-/* 133:111 */ Block tBlock = aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j);
-/* 134:112 */ byte tMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j);
-/* 135:113 */ if (((tBlock != GregTech_API.sBlockCasings2) || (tMeta != 0)) && ((tBlock != GregTech_API.sBlockCasings3) || (tMeta != 4))) {
-/* 136:113 */ return false;
-/* 137: */ }
-/* 138:114 */ tAmount++;
-/* 139: */ }
-/* 140: */ }
-/* 141: */ }
-/* 142: */ }
-/* 143: */ }
-/* 144:118 */ return tAmount >= 16;
-/* 145: */ }
-/* 146: */
-/* 147: */ public int getMaxEfficiency(ItemStack aStack)
-/* 148: */ {
-/* 149:123 */ return 10000;
-/* 150: */ }
-/* 151: */
-/* 152: */ public int getPollutionPerTick(ItemStack aStack)
-/* 153: */ {
-/* 154:128 */ return 1000;
-/* 155: */ }
-/* 156: */
-/* 157: */ public int getDamageToComponent(ItemStack aStack)
-/* 158: */ {
-/* 159:133 */ return 0;
-/* 160: */ }
-/* 161: */
-/* 162: */ public int getAmountOfOutputs()
-/* 163: */ {
-/* 164:138 */ return 2;
-/* 165: */ }
-/* 166: */
-/* 167: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 168: */ {
-/* 169:143 */ return false;
-/* 170: */ }
-/* 171: */ }
+public class GT_MetaTileEntity_ImplosionCompressor
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ public GT_MetaTileEntity_ImplosionCompressor(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_ImplosionCompressor(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ImplosionCompressor(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Implosion Compressor", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "1x Muffler Hatch (anywhere)", "Solid Steel Casings for the rest (16 at least!)" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ImplosionCompressor.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sImplosionRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ for (int i = 0; i < tInputList.size() - 1; i++) {
+ for (int j = i + 1; j < tInputList.size(); j++) {
+ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
+ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
+ {
+ tInputList.remove(j--);
+ }
+ else
+ {
+ tInputList.remove(i--); break;
+ }
+ }
+ }
+ }
+ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
+ if (tInputList.size() > 0)
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sImplosionRecipes.findRecipe(getBaseMetaTileEntity(), false, 9223372036854775807L, null, tInputs);
+ if ((tRecipe != null) && (tRecipe.isRecipeInputEqual(true, null, tInputs)))
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+
+ this.mEUt = (-tRecipe.mEUt);
+ this.mMaxProgresstime = Math.max(1, tRecipe.mDuration);
+ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
+ sendLoopStart((byte)20);
+ updateSlots();
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 20) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(5)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
+ return false;
+ }
+ int tAmount = 0;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ for (int h = -1; h < 2; h++) {
+ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 16)) && (!addMufflerToMachineList(tTileEntity, 16)) && (!addInputToMachineList(tTileEntity, 16)) && (!addOutputToMachineList(tTileEntity, 16)) && (!addEnergyInputToMachineList(tTileEntity, 16)))
+ {
+ Block tBlock = aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j);
+ byte tMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j);
+ if (((tBlock != GregTech_API.sBlockCasings2) || (tMeta != 0)) && ((tBlock != GregTech_API.sBlockCasings3) || (tMeta != 4))) {
+ return false;
+ }
+ tAmount++;
+ }
+ }
+ }
+ }
+ }
+ return tAmount >= 16;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 1000;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 2;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java index fd02e50e2c..93d8e260de 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java @@ -1,156 +1,156 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.GT_Mod;
import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */ import gregtech.api.util.GT_ModHandler;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map_Fuel;
-/* 14: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map_Fuel;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 15: */ import java.util.ArrayList;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
-/* 16: */ import net.minecraft.block.Block;
-/* 17: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 18: */ import net.minecraft.item.ItemStack;
-/* 19: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 20: */ import net.minecraftforge.fluids.FluidStack;
-/* 21: */
-/* 22: */ public abstract class GT_MetaTileEntity_LargeBoiler
-/* 23: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 24: */ {
-/* 25: */ public GT_MetaTileEntity_LargeBoiler(int aID, String aName, String aNameRegional)
-/* 26: */ {
-/* 27: 25 */ super(aID, aName, aNameRegional);
-/* 28: */ }
-/* 29: */
-/* 30: */ public GT_MetaTileEntity_LargeBoiler(String aName)
-/* 31: */ {
-/* 32: 29 */ super(aName);
-/* 33: */ }
-/* 34: */
-/* 35: */ public String[] getDescription()
-/* 36: */ {
-/* 37: 34 */ return new String[] { "Controller Block for the Large Boiler", "Size: 3x3x5", "Controller (front middle in Fireboxes)", "3x3 of Fire Boxes (bottom Layer, Min 3!)", "3x3x4 of Casing (above Fireboxes, hollow, Min 24!)", "3 Pipe Casing Blocks inside the Hollow Casing", "1x Input (one of Fireboxes)", "1x Maintenance Hatch (one of Fireboxes)", "1x Muffler Hatch (one of Fireboxes)", "1x Fluid Output (one of Main Casing)" };
-/* 38: */ }
-/* 39: */
-/* 40: */ public abstract Block getCasingBlock();
-/* 41: */
-/* 42: */ public abstract byte getCasingMeta();
-/* 43: */
-/* 44: */ public abstract byte getCasingTextureIndex();
-/* 45: */
-/* 46: */ public abstract Block getPipeBlock();
-/* 47: */
-/* 48: */ public abstract byte getPipeMeta();
-/* 49: */
-/* 50: */ public abstract Block getFireboxBlock();
-/* 51: */
-/* 52: */ public abstract byte getFireboxMeta();
-/* 53: */
-/* 54: */ public abstract byte getFireboxTextureIndex();
-/* 55: */
-/* 56: */ public abstract int getEUt();
-/* 57: */
-/* 58: */ public abstract int getEfficiencyIncrease();
-/* 59: */
-/* 60: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 61: */ {
-/* 62: 53 */ if (aSide == aFacing) {
-/* 63: 53 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) };
-/* 64: */ }
-/* 65: 54 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()] };
-/* 66: */ }
-/* 67: */
-/* 68: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 69: */ {
-/* 70: 59 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png");
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 74: */ {
-/* 75: 64 */ return true;
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean isFacingValid(byte aFacing)
-/* 79: */ {
-/* 80: 67 */ return aFacing > 1;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean checkRecipe(ItemStack aStack)
-/* 84: */ {
-/* 85: 71 */ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDieselFuels.mRecipeList)
-/* 86: */ {
-/* 87: 72 */ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
-/* 88: 73 */ if ((tFluid != null) && (tRecipe.mSpecialValue > 1))
-/* 89: */ {
-/* 90: 74 */ tFluid.amount = 1000;
-/* 91: 75 */ if (depleteInput(tFluid))
-/* 92: */ {
-/* 93: 76 */ this.mMaxProgresstime = (tRecipe.mSpecialValue / 2);
-/* 94: 77 */ this.mEUt = getEUt();
-/* 95: 78 */ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease() * 4);
-/* 96: 79 */ return true;
-/* 97: */ }
-/* 98: */ }
-/* 99: */ }
-/* 100: 83 */ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDenseLiquidFuels.mRecipeList)
-/* 101: */ {
-/* 102: 84 */ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
-/* 103: 85 */ if (tFluid != null)
-/* 104: */ {
-/* 105: 86 */ tFluid.amount = 1000;
-/* 106: 87 */ if (depleteInput(tFluid))
-/* 107: */ {
-/* 108: 88 */ this.mMaxProgresstime = Math.max(1, tRecipe.mSpecialValue * 2);
-/* 109: 89 */ this.mEUt = getEUt();
-/* 110: 90 */ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
-/* 111: 91 */ return true;
-/* 112: */ }
-/* 113: */ }
-/* 114: */ }
-/* 115: 95 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 116: 96 */ if (!tInputList.isEmpty()) {
-/* 117: 97 */ for (ItemStack tInput : tInputList) {
-/* 118: 98 */ if ((GT_Utility.getFluidForFilledItem(tInput, true) == null) && ((this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0))
-/* 119: */ {
-/* 120: 99 */ this.mEUt = getEUt();
-/* 121:100 */ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
-/* 122:101 */ this.mOutputItems = new ItemStack[] { GT_Utility.getContainerItem(tInput, true) };
-/* 123:102 */ tInput.stackSize -= 1;
-/* 124:103 */ updateSlots();
-/* 125:104 */ return true;
-/* 126: */ }
-/* 127: */ }
-/* 128: */ }
-/* 129:108 */ this.mMaxProgresstime = 0;
-/* 130:109 */ this.mEUt = 0;
-/* 131:110 */ return false;
-/* 132: */ }
-/* 133: */
-/* 134: */ public boolean onRunningTick(ItemStack aStack)
-/* 135: */ {
-/* 136:115 */ if (this.mEUt > 0)
-/* 137: */ {
-/* 138:116 */ int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L);
-/* 139:117 */ if (tGeneratedEU > 0) {
-/* 140:118 */ if (depleteInput(Materials.Water.getFluid((tGeneratedEU + 160) / 160))) {
-/* 141:119 */ addOutput(GT_ModHandler.getSteam(tGeneratedEU));
-/* 142: */ } else {
-/* 143:121 */ explodeMultiblock();
-/* 144: */ }
-/* 145: */ }
-/* 146:124 */ return true;
-/* 147: */ }
-/* 148:126 */ return true;
-/* 149: */ }
+public abstract class GT_MetaTileEntity_LargeBoiler
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ public GT_MetaTileEntity_LargeBoiler(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler(String aName)
+ {
+ super(aName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Large Boiler", "Size: 3x3x5", "Controller (front middle in Fireboxes)", "3x3 of Fire Boxes (bottom Layer, Min 3!)", "3x3x4 of Casing (above Fireboxes, hollow, Min 24!)", "3 Pipe Casing Blocks inside the Hollow Casing", "1x Input (one of Fireboxes)", "1x Maintenance Hatch (one of Fireboxes)", "1x Muffler Hatch (one of Fireboxes)", "1x Fluid Output (one of Main Casing)" };
+ }
+
+ public abstract Block getCasingBlock();
+
+ public abstract byte getCasingMeta();
+
+ public abstract byte getCasingTextureIndex();
+
+ public abstract Block getPipeBlock();
+
+ public abstract byte getPipeMeta();
+
+ public abstract Block getFireboxBlock();
+
+ public abstract byte getFireboxMeta();
+
+ public abstract byte getFireboxTextureIndex();
+
+ public abstract int getEUt();
+
+ public abstract int getEfficiencyIncrease();
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png");
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDieselFuels.mRecipeList)
+ {
+ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
+ if ((tFluid != null) && (tRecipe.mSpecialValue > 1))
+ {
+ tFluid.amount = 1000;
+ if (depleteInput(tFluid))
+ {
+ this.mMaxProgresstime = (tRecipe.mSpecialValue / 2);
+ this.mEUt = getEUt();
+ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease() * 4);
+ return true;
+ }
+ }
+ }
+ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDenseLiquidFuels.mRecipeList)
+ {
+ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
+ if (tFluid != null)
+ {
+ tFluid.amount = 1000;
+ if (depleteInput(tFluid))
+ {
+ this.mMaxProgresstime = Math.max(1, tRecipe.mSpecialValue * 2);
+ this.mEUt = getEUt();
+ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
+ return true;
+ }
+ }
+ }
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ if (!tInputList.isEmpty()) {
+ for (ItemStack tInput : tInputList) {
+ if ((GT_Utility.getFluidForFilledItem(tInput, true) == null) && ((this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0))
+ {
+ this.mEUt = getEUt();
+ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
+ this.mOutputItems = new ItemStack[] { GT_Utility.getContainerItem(tInput, true) };
+ tInput.stackSize -= 1;
+ updateSlots();
+ return true;
+ }
+ }
+ }
+ this.mMaxProgresstime = 0;
+ this.mEUt = 0;
+ return false;
+ }
+
+ public boolean onRunningTick(ItemStack aStack)
+ {
+ if (this.mEUt > 0)
+ {
+ int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L);
+ if (tGeneratedEU > 0) {
+ if (depleteInput(Materials.Water.getFluid((tGeneratedEU + 160) / 160))) {
+ addOutput(GT_ModHandler.getSteam(tGeneratedEU));
+ } else {
+ explodeMultiblock();
+ }
+ }
+ return true;
+ }
+ return true;
+ }
private boolean firstRun = true;
@@ -163,99 +163,99 @@ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { }
-/* 150: */
-/* 151: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 152: */ {
-/* 153:131 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 154: */
-/* 155:133 */ int tCasingAmount = 0;int tFireboxAmount = 0;
-/* 156:135 */ for (int i = -1; i < 2; i++) {
-/* 157:135 */ for (int j = -1; j < 2; j++) {
-/* 158:136 */ if ((i != 0) || (j != 0))
-/* 159: */ {
-/* 160:137 */ for (int k = 1; k <= 4; k++) {
-/* 161:138 */ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), getCasingTextureIndex()))
-/* 162: */ {
-/* 163:139 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) {
-/* 164:139 */ return false;
-/* 165: */ }
-/* 166:140 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) {
-/* 167:140 */ return false;
-/* 168: */ }
-/* 169:141 */ tCasingAmount++;
-/* 170: */ }
-/* 171: */ }
-/* 172: */ }
-/* 173: */ else
-/* 174: */ {
-/* 175:145 */ for (int k = 1; k <= 3; k++)
-/* 176: */ {
-/* 177:146 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getPipeBlock()) {
-/* 178:146 */ return false;
-/* 179: */ }
-/* 180:147 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getPipeMeta()) {
-/* 181:147 */ return false;
-/* 182: */ }
-/* 183: */ }
-/* 184:149 */ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 4, zDir + j), getCasingTextureIndex()))
-/* 185: */ {
-/* 186:150 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 4, zDir + j) != getCasingBlock()) {
-/* 187:150 */ return false;
-/* 188: */ }
-/* 189:151 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 4, zDir + j) != getCasingMeta()) {
-/* 190:151 */ return false;
-/* 191: */ }
-/* 192:152 */ tCasingAmount++;
-/* 193: */ }
-/* 194: */ }
-/* 195: */ }
-/* 196: */ }
-/* 197:157 */ for (int i = -1; i < 2; i++) {
-/* 198:157 */ for (int j = -1; j < 2; j++) {
-/* 199:157 */ if ((xDir + i != 0) || (zDir + j != 0))
-/* 200: */ {
-/* 201:158 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
-/* 202:159 */ if ((!addMaintenanceToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addInputToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addMufflerToMachineList(tTileEntity, getFireboxTextureIndex())))
-/* 203: */ {
-/* 204:160 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != getFireboxBlock()) {
-/* 205:160 */ return false;
-/* 206: */ }
-/* 207:161 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != getFireboxMeta()) {
-/* 208:161 */ return false;
-/* 209: */ }
-/* 210:162 */ tFireboxAmount++;
-/* 211: */ }
-/* 212: */ }
-/* 213: */ }
-/* 214: */ }
-/* 215:166 */ return (tCasingAmount >= 24) && (tFireboxAmount >= 3);
-/* 216: */ }
-/* 217: */
-/* 218: */ public int getMaxEfficiency(ItemStack aStack)
-/* 219: */ {
-/* 220:171 */ return 10000;
-/* 221: */ }
-/* 222: */
-/* 223: */ public int getPollutionPerTick(ItemStack aStack)
-/* 224: */ {
-/* 225:176 */ return 10;
-/* 226: */ }
-/* 227: */
-/* 228: */ public int getDamageToComponent(ItemStack aStack)
-/* 229: */ {
-/* 230:181 */ return 0;
-/* 231: */ }
-/* 232: */
-/* 233: */ public int getAmountOfOutputs()
-/* 234: */ {
-/* 235:186 */ return 1;
-/* 236: */ }
-/* 237: */
-/* 238: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 239: */ {
-/* 240:191 */ return false;
-/* 241: */ }
-/* 242: */ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+
+ int tCasingAmount = 0;int tFireboxAmount = 0;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((i != 0) || (j != 0))
+ {
+ for (int k = 1; k <= 4; k++) {
+ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), getCasingTextureIndex()))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) {
+ return false;
+ }
+ tCasingAmount++;
+ }
+ }
+ }
+ else
+ {
+ for (int k = 1; k <= 3; k++)
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getPipeBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getPipeMeta()) {
+ return false;
+ }
+ }
+ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 4, zDir + j), getCasingTextureIndex()))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 4, zDir + j) != getCasingBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 4, zDir + j) != getCasingMeta()) {
+ return false;
+ }
+ tCasingAmount++;
+ }
+ }
+ }
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((xDir + i != 0) || (zDir + j != 0))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addInputToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addMufflerToMachineList(tTileEntity, getFireboxTextureIndex())))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != getFireboxBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != getFireboxMeta()) {
+ return false;
+ }
+ tFireboxAmount++;
+ }
+ }
+ }
+ }
+ return (tCasingAmount >= 24) && (tFireboxAmount >= 3);
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 10;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 1;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java index 434a34799d..c0c362d2c5 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_Bronze
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_Bronze(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_Bronze(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_Bronze(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings1;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 10;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 10;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 12;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings3;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 13;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 45;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 400;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 16;
-/* 74: */ }
-/* 75: */ }
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_Bronze
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_Bronze(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_Bronze(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings1;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 10;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 10;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 12;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings3;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 13;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 45;
+ }
+
+ public int getEUt()
+ {
+ return 400;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 16;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java index 7532795cb1..c6f16a7d4f 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_Steel
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_Steel(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_Steel(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_Steel(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings2;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 0;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 16;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 13;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings3;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 14;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 46;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 600;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 12;
-/* 74: */ }
-/* 75: */ }
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_Steel
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_Steel(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_Steel(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 0;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 16;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 13;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings3;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 14;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 46;
+ }
+
+ public int getEUt()
+ {
+ return 600;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 12;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java index a5c906827a..7d11836a19 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java @@ -1,75 +1,75 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_Titanium
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_Titanium(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_Titanium(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_Titanium(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings4;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 2;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 50;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 14;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings4;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 3;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 51;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 800;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 8;
-/* 74: */ }
-/* 75: */ }
\ No newline at end of file +package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_Titanium
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_Titanium(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_Titanium(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_Titanium(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings4;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 2;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 50;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 14;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings4;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 3;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 51;
+ }
+
+ public int getEUt()
+ {
+ return 800;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 8;
+ }
+}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java index 8356a29c3d..399ba2dcf4 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_TungstenSteel
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_TungstenSteel(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings4;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 0;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 48;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 15;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings3;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 15;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 47;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 1000;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 4;
-/* 74: */ }
-/* 75: */ }
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_TungstenSteel
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_TungstenSteel(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings4;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 0;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 48;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 15;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings3;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 15;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 47;
+ }
+
+ public int getEUt()
+ {
+ return 1000;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 4;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java index ae50fec788..f1017a18a3 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java @@ -1,192 +1,192 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 14: */ import java.util.ArrayList;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */ import net.minecraft.item.ItemStack;
-/* 17: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 18: */
-/* 19: */ public class GT_MetaTileEntity_MultiFurnace
-/* 20: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 21: */ {
-/* 22: 22 */ private int mLevel = 0;
-/* 23: */
-/* 24: */ public GT_MetaTileEntity_MultiFurnace(int aID, String aName, String aNameRegional)
-/* 25: */ {
-/* 26: 25 */ super(aID, aName, aNameRegional);
-/* 27: */ }
-/* 28: */
-/* 29: */ public GT_MetaTileEntity_MultiFurnace(String aName)
-/* 30: */ {
-/* 31: 29 */ super(aName);
-/* 32: */ }
-/* 33: */
-/* 34: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 35: */ {
-/* 36: 34 */ return new GT_MetaTileEntity_MultiFurnace(this.mName);
-/* 37: */ }
-/* 38: */
-/* 39: */ public String[] getDescription()
-/* 40: */ {
-/* 41: 39 */ return new String[] { "Smelts up to 6-18 Items at once", "Controller Block for the Multi Smelter", "Size: 3x3x3 (Hollow)", "Controller (front middle at bottom)", "8x Heating Coils (middle Layer, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
-/* 42: */ }
-/* 43: */
-/* 44: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 45: */ {
-/* 46: 44 */ if (aSide == aFacing) {
-/* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER) };
-/* 48: */ }
-/* 49: 45 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
-/* 50: */ }
-/* 51: */
-/* 52: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 53: */ {
-/* 54: 50 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "MultiFurnace.png");
-/* 55: */ }
-/* 56: */
-/* 57: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 58: */ {
-/* 59: 55 */ return GT_Recipe.GT_Recipe_Map.sFurnaceRecipes;
-/* 60: */ }
-/* 61: */
-/* 62: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 63: */ {
-/* 64: 60 */ return true;
-/* 65: */ }
-/* 66: */
-/* 67: */ public boolean isFacingValid(byte aFacing)
-/* 68: */ {
-/* 69: 63 */ return aFacing > 1;
-/* 70: */ }
-/* 71: */
-/* 72: */ public boolean checkRecipe(ItemStack aStack)
-/* 73: */ {
-/* 74: 67 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 75: 69 */ if (!tInputList.isEmpty())
-/* 76: */ {
-/* 77: 70 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(getMaxInputVoltage()));
-/* 78: */
-/* 79: 72 */ int j = 0;
-/* 80: 73 */ this.mOutputItems = new ItemStack[6 * this.mLevel];
-/* 81: 75 */ for (int i = 0; (i < 100) && (j < this.mOutputItems.length); i++) {
-/* 82: 75 */ if (null != (this.mOutputItems[j] = GT_ModHandler.getSmeltingOutput((ItemStack)tInputList.get(i % tInputList.size()), true, null))) {
-/* 83: 75 */ j++;
-/* 84: */ }
-/* 85: */ }
-/* 86: 77 */ if (j > 0)
-/* 87: */ {
-/* 88: 78 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 89: 79 */ this.mEfficiencyIncrease = 10000;
-/* 90: */
-/* 91: 81 */ this.mEUt = (-4 * (1 << tTier - 1) * (1 << tTier - 1) * this.mLevel);
-/* 92: 82 */ this.mMaxProgresstime = Math.max(1, 512 / (1 << tTier - 1));
-/* 93: */ }
-/* 94: 85 */ updateSlots();
-/* 95: 86 */ return true;
-/* 96: */ }
-/* 97: 88 */ return false;
-/* 98: */ }
-/* 99: */
-/* 100: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 101: */ {
-/* 102: 93 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 103: */
-/* 104: 95 */ this.mLevel = 0;
-/* 105: 97 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
-/* 106: 97 */ return false;
-/* 107: */ }
-/* 108: 99 */ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 2, zDir), 11);
-/* 109: */
-/* 110:101 */ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 1, zDir);
-/* 111:103 */ switch (tUsedMeta)
-/* 112: */ {
-/* 113: */ case 12:
-/* 114:104 */ this.mLevel = 1; break;
-/* 115: */ case 13:
-/* 116:105 */ this.mLevel = 2; break;
-/* 117: */ case 14:
-/* 118:106 */ this.mLevel = 3; break;
-/* 119: */ default:
-/* 120:107 */ return false;
-/* 121: */ }
-/* 122:110 */ for (int i = -1; i < 2; i++) {
-/* 123:110 */ for (int j = -1; j < 2; j++) {
-/* 124:110 */ if ((i != 0) || (j != 0))
-/* 125: */ {
-/* 126:111 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 127:111 */ return false;
-/* 128: */ }
-/* 129:112 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
-/* 130:112 */ return false;
-/* 131: */ }
-/* 132:113 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 133:113 */ return false;
-/* 134: */ }
-/* 135:114 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != 11) {
-/* 136:114 */ return false;
-/* 137: */ }
-/* 138: */ }
-/* 139: */ }
-/* 140: */ }
-/* 141:117 */ for (int i = -1; i < 2; i++) {
-/* 142:117 */ for (int j = -1; j < 2; j++) {
-/* 143:117 */ if ((xDir + i != 0) || (zDir + j != 0))
-/* 144: */ {
-/* 145:118 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
-/* 146:119 */ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
-/* 147: */ {
-/* 148:120 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 149:120 */ return false;
-/* 150: */ }
-/* 151:121 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
-/* 152:121 */ return false;
-/* 153: */ }
-/* 154: */ }
-/* 155: */ }
-/* 156: */ }
-/* 157: */ }
-/* 158:125 */ return true;
-/* 159: */ }
-/* 160: */
-/* 161: */ public int getMaxEfficiency(ItemStack aStack)
-/* 162: */ {
-/* 163:130 */ return 10000;
-/* 164: */ }
-/* 165: */
-/* 166: */ public int getPollutionPerTick(ItemStack aStack)
-/* 167: */ {
-/* 168:135 */ return 20;
-/* 169: */ }
-/* 170: */
-/* 171: */ public int getDamageToComponent(ItemStack aStack)
-/* 172: */ {
-/* 173:140 */ return 0;
-/* 174: */ }
-/* 175: */
-/* 176: */ public int getAmountOfOutputs()
-/* 177: */ {
-/* 178:145 */ return 18;
-/* 179: */ }
-/* 180: */
-/* 181: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 182: */ {
-/* 183:150 */ return false;
-/* 184: */ }
-/* 185: */ }
+public class GT_MetaTileEntity_MultiFurnace
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ private int mLevel = 0;
+
+ public GT_MetaTileEntity_MultiFurnace(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_MultiFurnace(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_MultiFurnace(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Smelts up to 6-18 Items at once", "Controller Block for the Multi Smelter", "Size: 3x3x3 (Hollow)", "Controller (front middle at bottom)", "8x Heating Coils (middle Layer, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "MultiFurnace.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sFurnaceRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ if (!tInputList.isEmpty())
+ {
+ byte tTier = (byte)Math.max(1, GT_Utility.getTier(getMaxInputVoltage()));
+
+ int j = 0;
+ this.mOutputItems = new ItemStack[6 * this.mLevel];
+ for (int i = 0; (i < 100) && (j < this.mOutputItems.length); i++) {
+ if (null != (this.mOutputItems[j] = GT_ModHandler.getSmeltingOutput((ItemStack)tInputList.get(i % tInputList.size()), true, null))) {
+ j++;
+ }
+ }
+ if (j > 0)
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+
+ this.mEUt = (-4 * (1 << tTier - 1) * (1 << tTier - 1) * this.mLevel);
+ this.mMaxProgresstime = Math.max(1, 512 / (1 << tTier - 1));
+ }
+ updateSlots();
+ return true;
+ }
+ return false;
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+
+ this.mLevel = 0;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
+ return false;
+ }
+ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 2, zDir), 11);
+
+ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 1, zDir);
+ switch (tUsedMeta)
+ {
+ case 12:
+ this.mLevel = 1; break;
+ case 13:
+ this.mLevel = 2; break;
+ case 14:
+ this.mLevel = 3; break;
+ default:
+ return false;
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((i != 0) || (j != 0))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((xDir + i != 0) || (zDir + j != 0))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ return true;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 20;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 18;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java index 4726181726..6bc1f36794 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java @@ -21,41 +21,41 @@ import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBlockBase{ - /* 22: */ public GT_MetaTileEntity_ProcessingArray(int aID, String aName, String aNameRegional) - /* 23: */ { - /* 24: 24 */ super(aID, aName, aNameRegional); - /* 25: */ } - /* 26: */ - /* 27: */ public GT_MetaTileEntity_ProcessingArray(String aName) - /* 28: */ { - /* 29: 28 */ super(aName); - /* 30: */ } - /* 31: */ - /* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) - /* 33: */ { - /* 34: 33 */ return new GT_MetaTileEntity_ProcessingArray(this.mName); - /* 35: */ } - /* 36: */ - /* 37: */ public String[] getDescription() - /* 38: */ { - /* 39: 38 */ return new String[] { "Controller Block for the Processing Array", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Robust Tungstensteel Casings for the rest (16 at least!)","Put up to 16 Basic Machines into the GUI Inventory","Currently only fluid Centrifuge Recipes work correctly","Make Deuterium/Tritium with it." }; - /* 40: */ } - /* 41: */ - /* 42: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) - /* 43: */ { - /* 44: 43 */ if (aSide == aFacing) { - /* 45: 43 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; - /* 46: */ } - /* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48] }; - /* 48: */ } - /* 49: */ - /* 50: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) - /* 51: */ { - /* 52: 49 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); - /* 53: */ } - /* 54: */ - /* 55: */ public GT_Recipe.GT_Recipe_Map getRecipeMap() - /* 56: */ { + public GT_MetaTileEntity_ProcessingArray(int aID, String aName, String aNameRegional) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_ProcessingArray(String aName) + { + super(aName); + } + + public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_ProcessingArray(this.mName); + } + + public String[] getDescription() + { + return new String[] { "Controller Block for the Processing Array", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Robust Tungstensteel Casings for the rest (16 at least!)","Put up to 16 Basic Machines into the GUI Inventory","Currently only fluid Centrifuge Recipes work correctly","Make Deuterium/Tritium with it." }; + } + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { + if (aSide == aFacing) { + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; + } + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48] }; + } + + public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) + { + return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); + } + + public GT_Recipe.GT_Recipe_Map getRecipeMap() + { if(mInventory[1]==null)return null; String tmp = mInventory[1].getUnlocalizedName().replaceAll("gt.blockmachines.basicmachine.", ""); if(tmp.startsWith("centrifuge")){ @@ -93,55 +93,55 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl }else if(tmp.startsWith("sifter")){ return GT_Recipe.GT_Recipe_Map.sSifterRecipes; } - /* 57: 54 */ return null; - /* 58: */ } - /* 59: */ - /* 60: */ public boolean isCorrectMachinePart(ItemStack aStack) - /* 61: */ { + return null; + } + + public boolean isCorrectMachinePart(ItemStack aStack) + { if(aStack!=null&&aStack.getUnlocalizedName().startsWith("gt.blockmachines.basicmachine.")){ - /* 62: 59 */ return true;} + return true;} return false; - /* 63: */ } - /* 64: */ - /* 65: */ public boolean isFacingValid(byte aFacing) - /* 66: */ { - /* 67: 62 */ return aFacing > 1; - /* 68: */ } - /* 69: */ + } + + public boolean isFacingValid(byte aFacing) + { + return aFacing > 1; + } + GT_Recipe mLastRecipe; - /* 70: */ public boolean checkRecipe(ItemStack aStack){ + public boolean checkRecipe(ItemStack aStack){ if(!isCorrectMachinePart(mInventory[1])){return false;} GT_Recipe.GT_Recipe_Map map = getRecipeMap(); if(map==null){return false;} - /* 72: 66 */ ArrayList<ItemStack> tInputList = getStoredInputs(); - /* 76: 70 */ int tTier = 0; + ArrayList<ItemStack> tInputList = getStoredInputs(); + int tTier = 0; if(mInventory[1].getUnlocalizedName().endsWith("1")){tTier=1;} if(mInventory[1].getUnlocalizedName().endsWith("2")){tTier=2;} if(mInventory[1].getUnlocalizedName().endsWith("3")){tTier=3;} if(mInventory[1].getUnlocalizedName().endsWith("4")){tTier=4;} if(mInventory[1].getUnlocalizedName().endsWith("5")){tTier=5;} - /* 77: 71 */ for (int i = 0; i < tInputList.size() - 1; i++) { - /* 78: 71 */ for (int j = i + 1; j < tInputList.size(); j++) { - /* 79: 72 */ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) { - /* 80: 73 */ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize) - /* 81: */ { - /* 82: 73 */ tInputList.remove(j--); - /* 83: */ } - /* 84: */ else - /* 85: */ { - /* 86: 73 */ tInputList.remove(i--); break; - /* 87: */ } - /* 88: */ } - /* 89: */ } - /* 90: */ } - /* 91: 76 */ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2); - /* 92: */ - /* 93: 78 */ ArrayList<FluidStack> tFluidList = getStoredFluids(); - /* 94: 79 */ for (int i = 0; i < tFluidList.size() - 1; i++) { - /* 95: 79 */ for (int j = i + 1; j < tFluidList.size(); j++) { - /* 96: 80 */ if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) { - /* 97: 81 */ if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount) - /* 98: */ { + for (int i = 0; i < tInputList.size() - 1; i++) { + for (int j = i + 1; j < tInputList.size(); j++) { + if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) { + if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize) + { + tInputList.remove(j--); + } + else + { + tInputList.remove(i--); break; + } + } + } + } + ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2); + + ArrayList<FluidStack> tFluidList = getStoredFluids(); + for (int i = 0; i < tFluidList.size() - 1; i++) { + for (int j = i + 1; j < tFluidList.size(); j++) { + if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) { + if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount) + { tFluidList.remove(j--); } else @@ -153,8 +153,8 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl } FluidStack[] tFluids = (FluidStack[])Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tInputList.size()]), 0, 1); if(tInputList.size() > 0 || tFluids.length>0){ - /* 78: 72 */ GT_Recipe tRecipe = map.findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs); - /* 79: 73 */ if (tRecipe != null) { + GT_Recipe tRecipe = map.findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs); + if (tRecipe != null) { mLastRecipe = tRecipe; this.mEUt = 0; this.mOutputItems = null; @@ -215,45 +215,45 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl this.mOutputFluids = new FluidStack[]{tFOut}; // System.out.println("ArrayOut"+mOutputItems.length+" "+mOutputFluids.length+" "+(mOutputItems.length>0?mOutputItems[0].getUnlocalizedName():"")+" "+(mOutputFluids.length>0?mOutputFluids[0].getUnlocalizedName():" ")); updateSlots(); - /* 105: 93 */ return true; - /* 107: */ } + return true; + } } - /* 109: 96 */ return false; - /* 110: */ } - /* 111: */ - /* 112: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) - /* 113: */ { - /* 114:101 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; - /* 115:103 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) { - /* 116:103 */ return false; - /* 117: */ } - /* 118:105 */ int tAmount = 0; - /* 119:107 */ for (int i = -1; i < 2; i++) { - /* 120:107 */ for (int j = -1; j < 2; j++) { - /* 121:107 */ for (int h = -1; h < 2; h++) { - /* 122:107 */ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0)))) - /* 123: */ { - /* 124:108 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); - /* 125:109 */ if ((!addMaintenanceToMachineList(tTileEntity, 48)) && (!addInputToMachineList(tTileEntity, 48)) && (!addOutputToMachineList(tTileEntity, 48)) && (!addEnergyInputToMachineList(tTileEntity, 48))) - /* 126: */ { - /* 127:110 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { - /* 128:110 */ return false; - /* 129: */ } - /* 130:111 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 0) { - /* 131:111 */ return false; - /* 132: */ } - /* 133:112 */ tAmount++; - /* 134: */ } - /* 135: */ } - /* 136: */ } - /* 137: */ } - /* 138: */ } - /* 139:116 */ return tAmount >= 16; - /* 140: */ } - /* 141: */ - /* 142: */ public int getMaxEfficiency(ItemStack aStack){return 10000;} - /* 147: */ public int getPollutionPerTick(ItemStack aStack){return 0;} - /* 152: */ public int getDamageToComponent(ItemStack aStack){return 0;} - /* 157: */ public int getAmountOfOutputs(){return 1;} - /* 162: */ public boolean explodesOnComponentBreak(ItemStack aStack){return false;} - /* 166: */ }
\ No newline at end of file + return false; + } + + public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) + { + int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; + if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) { + return false; + } + int tAmount = 0; + for (int i = -1; i < 2; i++) { + for (int j = -1; j < 2; j++) { + for (int h = -1; h < 2; h++) { + if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0)))) + { + IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); + if ((!addMaintenanceToMachineList(tTileEntity, 48)) && (!addInputToMachineList(tTileEntity, 48)) && (!addOutputToMachineList(tTileEntity, 48)) && (!addEnergyInputToMachineList(tTileEntity, 48))) + { + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 0) { + return false; + } + tAmount++; + } + } + } + } + } + return tAmount >= 16; + } + + public int getMaxEfficiency(ItemStack aStack){return 10000;} + public int getPollutionPerTick(ItemStack aStack){return 0;} + public int getDamageToComponent(ItemStack aStack){return 0;} + public int getAmountOfOutputs(){return 1;} + public boolean explodesOnComponentBreak(ItemStack aStack){return false;} + }
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java index 14facd8a71..e416905b7c 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java @@ -1,172 +1,172 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 14: */ import java.util.ArrayList;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */ import net.minecraft.item.ItemStack;
-/* 17: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 18: */
-/* 19: */ public class GT_MetaTileEntity_VacuumFreezer
-/* 20: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 21: */ {
-/* 22: */ public GT_MetaTileEntity_VacuumFreezer(int aID, String aName, String aNameRegional)
-/* 23: */ {
-/* 24: 24 */ super(aID, aName, aNameRegional);
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_VacuumFreezer(String aName)
-/* 28: */ {
-/* 29: 28 */ super(aName);
-/* 30: */ }
-/* 31: */
-/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 33: */ {
-/* 34: 33 */ return new GT_MetaTileEntity_VacuumFreezer(this.mName);
-/* 35: */ }
-/* 36: */
-/* 37: */ public String[] getDescription()
-/* 38: */ {
-/* 39: 38 */ return new String[] { "Controller Block for the Vacuum Freezer", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Frost Proof Casings for the rest (16 at least!)" };
-/* 40: */ }
-/* 41: */
-/* 42: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 43: */ {
-/* 44: 43 */ if (aSide == aFacing) {
-/* 45: 43 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) };
-/* 46: */ }
-/* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17] };
-/* 48: */ }
-/* 49: */
-/* 50: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 51: */ {
-/* 52: 49 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png");
-/* 53: */ }
-/* 54: */
-/* 55: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 56: */ {
-/* 57: 54 */ return GT_Recipe.GT_Recipe_Map.sVacuumRecipes;
-/* 58: */ }
-/* 59: */
-/* 60: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 61: */ {
-/* 62: 59 */ return true;
-/* 63: */ }
-/* 64: */
-/* 65: */ public boolean isFacingValid(byte aFacing)
-/* 66: */ {
-/* 67: 62 */ return aFacing > 1;
-/* 68: */ }
-/* 69: */
-/* 70: */ public boolean checkRecipe(ItemStack aStack)
-/* 71: */ {
-/* 72: 66 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 73: 68 */ for (ItemStack tInput : tInputList)
-/* 74: */ {
-/* 75: 69 */ long tVoltage = getMaxInputVoltage();
-/* 76: 70 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
-/* 77: */
-/* 78: 72 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sVacuumRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], null, new ItemStack[] { tInput });
-/* 79: 73 */ if (tRecipe != null) {
-/* 80: 73 */ if (tRecipe.isRecipeInputEqual(true, null, new ItemStack[] { tInput }))
-/* 81: */ {
-/* 82: 74 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 83: 75 */ this.mEfficiencyIncrease = 10000;
-/* 84: 77 */ if (tRecipe.mEUt <= 16)
-/* 85: */ {
-/* 86: 78 */ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
-/* 87: 79 */ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
-/* 88: */ }
-/* 89: */ else
-/* 90: */ {
-/* 91: 81 */ this.mEUt = tRecipe.mEUt;
-/* 92: 82 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 93: 83 */ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
-/* 94: */ {
-/* 95: 84 */ this.mEUt *= 4;
-/* 96: 85 */ this.mMaxProgresstime /= 2;
-/* 97: */ }
-/* 98: */ }
-/* 99: 89 */ if (this.mEUt > 0) {
-/* 100: 89 */ this.mEUt = (-this.mEUt);
-/* 101: */ }
-/* 102: 90 */ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
-/* 103: 91 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) };
-/* 104: 92 */ updateSlots();
-/* 105: 93 */ return true;
-/* 106: */ }
-/* 107: */ }
-/* 108: */ }
-/* 109: 96 */ return false;
-/* 110: */ }
-/* 111: */
-/* 112: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 113: */ {
-/* 114:101 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 115:103 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
-/* 116:103 */ return false;
-/* 117: */ }
-/* 118:105 */ int tAmount = 0;
-/* 119:107 */ for (int i = -1; i < 2; i++) {
-/* 120:107 */ for (int j = -1; j < 2; j++) {
-/* 121:107 */ for (int h = -1; h < 2; h++) {
-/* 122:107 */ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
-/* 123: */ {
-/* 124:108 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
-/* 125:109 */ if ((!addMaintenanceToMachineList(tTileEntity, 17)) && (!addInputToMachineList(tTileEntity, 17)) && (!addOutputToMachineList(tTileEntity, 17)) && (!addEnergyInputToMachineList(tTileEntity, 17)))
-/* 126: */ {
-/* 127:110 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings2) {
-/* 128:110 */ return false;
-/* 129: */ }
-/* 130:111 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 1) {
-/* 131:111 */ return false;
-/* 132: */ }
-/* 133:112 */ tAmount++;
-/* 134: */ }
-/* 135: */ }
-/* 136: */ }
-/* 137: */ }
-/* 138: */ }
-/* 139:116 */ return tAmount >= 16;
-/* 140: */ }
-/* 141: */
-/* 142: */ public int getMaxEfficiency(ItemStack aStack)
-/* 143: */ {
-/* 144:121 */ return 10000;
-/* 145: */ }
-/* 146: */
-/* 147: */ public int getPollutionPerTick(ItemStack aStack)
-/* 148: */ {
-/* 149:126 */ return 0;
-/* 150: */ }
-/* 151: */
-/* 152: */ public int getDamageToComponent(ItemStack aStack)
-/* 153: */ {
-/* 154:131 */ return 0;
-/* 155: */ }
-/* 156: */
-/* 157: */ public int getAmountOfOutputs()
-/* 158: */ {
-/* 159:136 */ return 1;
-/* 160: */ }
-/* 161: */
-/* 162: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 163: */ {
-/* 164:141 */ return false;
-/* 165: */ }
-/* 166: */ }
+public class GT_MetaTileEntity_VacuumFreezer
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ public GT_MetaTileEntity_VacuumFreezer(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_VacuumFreezer(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_VacuumFreezer(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Vacuum Freezer", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Frost Proof Casings for the rest (16 at least!)" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sVacuumRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ for (ItemStack tInput : tInputList)
+ {
+ long tVoltage = getMaxInputVoltage();
+ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
+
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sVacuumRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], null, new ItemStack[] { tInput });
+ if (tRecipe != null) {
+ if (tRecipe.isRecipeInputEqual(true, null, new ItemStack[] { tInput }))
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
+ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
+ }
+ else
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = tRecipe.mDuration;
+ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
+ {
+ this.mEUt *= 4;
+ this.mMaxProgresstime /= 2;
+ }
+ }
+ if (this.mEUt > 0) {
+ this.mEUt = (-this.mEUt);
+ }
+ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
+ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) };
+ updateSlots();
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
+ return false;
+ }
+ int tAmount = 0;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ for (int h = -1; h < 2; h++) {
+ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 17)) && (!addInputToMachineList(tTileEntity, 17)) && (!addOutputToMachineList(tTileEntity, 17)) && (!addEnergyInputToMachineList(tTileEntity, 17)))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings2) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 1) {
+ return false;
+ }
+ tAmount++;
+ }
+ }
+ }
+ }
+ }
+ return tAmount >= 16;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 1;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java index 49e4befd16..e8e06e94a8 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java @@ -1,119 +1,119 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 14: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_AlloySmelter_Bronze
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Bronze
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_AlloySmelter_Bronze(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22: 19 */ super(aID, aName, aNameRegional, "Combination Smelter", 2, 1, true);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_AlloySmelter_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27: 23 */ super(aName, aDescription, aTextures, 2, 1, true);
-/* 28: */ }
-/* 29: */
-/* 30: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 31: */ {
-/* 32: 28 */ return new GT_MetaTileEntity_AlloySmelter_Bronze(this.mName, this.mDescription, this.mTextures);
-/* 33: */ }
-/* 34: */
-/* 35: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 36: */ {
-/* 37: 33 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeAlloySmelter.png", GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.mUnlocalizedName);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42: 38 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[1], null, getAllInputs());
-/* 43: 39 */ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
-/* 44: */ {
-/* 45: 40 */ this.mOutputItems[0] = tRecipe.getOutput(0);
-/* 46: 41 */ if (tRecipe.mEUt <= 16)
-/* 47: */ {
-/* 48: 42 */ this.mEUt = tRecipe.mEUt;
-/* 49: 43 */ this.mMaxProgresstime = (tRecipe.mDuration * 2);
-/* 50: */ }
-/* 51: */ else
-/* 52: */ {
-/* 53: 45 */ this.mEUt = tRecipe.mEUt;
-/* 54: 46 */ this.mMaxProgresstime = (tRecipe.mDuration * 2);
-/* 55: */ }
-/* 56: 48 */ return 2;
-/* 57: */ }
-/* 58: 50 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 62: */ {
-/* 63: 55 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 64: 56 */ if (aIndex == 1) {
-/* 65: 56 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(208)), 10, 1.0F, aX, aY, aZ);
-/* 66: */ }
-/* 67: */ }
-/* 68: */
-/* 69: */ public void startProcess()
-/* 70: */ {
-/* 71: 61 */ sendLoopStart((byte)1);
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 75: */ {
-/* 76: 66 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 80: */ {
-/* 81: 71 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 85: */ {
-/* 86: 76 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 90: */ {
-/* 91: 81 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 95: */ {
-/* 96: 86 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 97: */ }
-/* 98: */
-/* 99: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 100: */ {
-/* 101: 91 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER) };
-/* 102: */ }
-/* 103: */
-/* 104: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* 105: */ {
-/* 106: 96 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 107: */ }
-/* 108: */
-/* 109: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* 110: */ {
-/* 111:101 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER) };
-/* 112: */ }
-/* 113: */ }
+public class GT_MetaTileEntity_AlloySmelter_Bronze
+ extends GT_MetaTileEntity_BasicMachine_Bronze
+{
+ public GT_MetaTileEntity_AlloySmelter_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Combination Smelter", 2, 1, true);
+ }
+
+ public GT_MetaTileEntity_AlloySmelter_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 2, 1, true);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_AlloySmelter_Bronze(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeAlloySmelter.png", GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.mUnlocalizedName);
+ }
+
+ public int checkRecipe()
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[1], null, getAllInputs());
+ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
+ {
+ this.mOutputItems[0] = tRecipe.getOutput(0);
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = (tRecipe.mDuration * 2);
+ }
+ else
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = (tRecipe.mDuration * 2);
+ }
+ return 2;
+ }
+ return 0;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(208)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java index 8a3dbfee52..e2d9ddbf62 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java @@ -1,119 +1,119 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 14: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_AlloySmelter_Steel
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_AlloySmelter_Steel(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22: 19 */ super(aID, aName, aNameRegional, "Combination Smelter", 2, 1, true);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_AlloySmelter_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27: 23 */ super(aName, aDescription, aTextures, 2, 1, true);
-/* 28: */ }
-/* 29: */
-/* 30: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 31: */ {
-/* 32: 28 */ return new GT_MetaTileEntity_AlloySmelter_Steel(this.mName, this.mDescription, this.mTextures);
-/* 33: */ }
-/* 34: */
-/* 35: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 36: */ {
-/* 37: 33 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelAlloySmelter.png", GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.mUnlocalizedName);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42: 38 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[2], null, getAllInputs());
-/* 43: 39 */ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
-/* 44: */ {
-/* 45: 40 */ this.mOutputItems[0] = tRecipe.getOutput(0);
-/* 46: 41 */ if (tRecipe.mEUt <= 16)
-/* 47: */ {
-/* 48: 42 */ this.mEUt = (tRecipe.mEUt * 3);
-/* 49: 43 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 50: */ }
-/* 51: */ else
-/* 52: */ {
-/* 53: 45 */ this.mEUt = (tRecipe.mEUt * 3);
-/* 54: 46 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 55: */ }
-/* 56: 48 */ return 2;
-/* 57: */ }
-/* 58: 50 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 62: */ {
-/* 63: 55 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 64: 56 */ if (aIndex == 1) {
-/* 65: 56 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(208)), 10, 1.0F, aX, aY, aZ);
-/* 66: */ }
-/* 67: */ }
-/* 68: */
-/* 69: */ public void startProcess()
-/* 70: */ {
-/* 71: 61 */ sendLoopStart((byte)1);
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 75: */ {
-/* 76: 66 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 80: */ {
-/* 81: 71 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 85: */ {
-/* 86: 76 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 90: */ {
-/* 91: 81 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 95: */ {
-/* 96: 86 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 97: */ }
-/* 98: */
-/* 99: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 100: */ {
-/* 101: 91 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER) };
-/* 102: */ }
-/* 103: */
-/* 104: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* 105: */ {
-/* 106: 96 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER_ACTIVE) };
-/* 107: */ }
-/* 108: */
-/* 109: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* 110: */ {
-/* 111:101 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER) };
-/* 112: */ }
-/* 113: */ }
+public class GT_MetaTileEntity_AlloySmelter_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_AlloySmelter_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Combination Smelter", 2, 1, true);
+ }
+
+ public GT_MetaTileEntity_AlloySmelter_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 2, 1, true);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_AlloySmelter_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelAlloySmelter.png", GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.mUnlocalizedName);
+ }
+
+ public int checkRecipe()
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sAlloySmelterRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[2], null, getAllInputs());
+ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
+ {
+ this.mOutputItems[0] = tRecipe.getOutput(0);
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = (tRecipe.mEUt * 3);
+ this.mMaxProgresstime = tRecipe.mDuration;
+ }
+ else
+ {
+ this.mEUt = (tRecipe.mEUt * 3);
+ this.mMaxProgresstime = tRecipe.mDuration;
+ }
+ return 2;
+ }
+ return 0;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(208)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_ALLOY_SMELTER) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_ALLOY_SMELTER) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java index 9aed7547ec..8b9d8400c8 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Compressor_Bronze
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Bronze
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Compressor_Bronze(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Compressing Items", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Compressor_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeCompressor.png", "ic2.compressor");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Compressor_Bronze(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getCompressorOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 2;
-/* 45:39 */ this.mMaxProgresstime = 800;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Compressor_Bronze
+ extends GT_MetaTileEntity_BasicMachine_Bronze
+{
+ public GT_MetaTileEntity_Compressor_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Compressing Items", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_Compressor_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeCompressor.png", "ic2.compressor");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Compressor_Bronze(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getCompressorOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 2;
+ this.mMaxProgresstime = 800;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(203)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(203)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java index b331b596fd..ec478e620f 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Compressor_Steel
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Compressor_Steel(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Compressing Items", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Compressor_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelCompressor.png", "ic2.compressor");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Compressor_Steel(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getCompressorOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 6;
-/* 45:39 */ this.mMaxProgresstime = 400;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Compressor_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_Compressor_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Compressing Items", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_Compressor_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelCompressor.png", "ic2.compressor");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Compressor_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getCompressorOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 6;
+ this.mMaxProgresstime = 400;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(203)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(203)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_COMPRESSOR) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_COMPRESSOR) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java index 9fe408e578..bfcf602ca3 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Extractor_Bronze
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Bronze
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Extractor_Bronze(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Extracting your first Rubber", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Extractor_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeExtractor.png", "ic2.extractor");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Extractor_Bronze(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getExtractorOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 2;
-/* 45:39 */ this.mMaxProgresstime = 800;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Extractor_Bronze
+ extends GT_MetaTileEntity_BasicMachine_Bronze
+{
+ public GT_MetaTileEntity_Extractor_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Extracting your first Rubber", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_Extractor_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeExtractor.png", "ic2.extractor");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Extractor_Bronze(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getExtractorOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 2;
+ this.mMaxProgresstime = 800;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(200)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(200)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java index c283890139..d2a0cc3c70 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Extractor_Steel
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Extractor_Steel(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Extracting your first Rubber", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Extractor_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelExtractor.png", "ic2.extractor");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Extractor_Steel(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getExtractorOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 6;
-/* 45:39 */ this.mMaxProgresstime = 400;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Extractor_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_Extractor_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Extracting your first Rubber", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_Extractor_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelExtractor.png", "ic2.extractor");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Extractor_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getExtractorOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 6;
+ this.mMaxProgresstime = 400;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(200)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(200)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_EXTRACTOR) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_EXTRACTOR) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java index 19764d0034..5596571384 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java @@ -1,119 +1,119 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 14: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_ForgeHammer_Bronze
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Bronze
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_ForgeHammer_Bronze(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22: 19 */ super(aID, aName, aNameRegional, "Forge Hammer", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_ForgeHammer_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27: 23 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 31: */ {
-/* 32: 28 */ return new GT_MetaTileEntity_ForgeHammer_Bronze(this.mName, this.mDescription, this.mTextures);
-/* 33: */ }
-/* 34: */
-/* 35: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 36: */ {
-/* 37: 33 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeHammer.png", GT_Recipe.GT_Recipe_Map.sHammerRecipes.mUnlocalizedName, (byte)6, (byte)3);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42: 38 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[1], null, getAllInputs());
-/* 43: 39 */ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
-/* 44: */ {
-/* 45: 40 */ this.mOutputItems[0] = tRecipe.getOutput(0);
-/* 46: 41 */ if (tRecipe.mEUt <= 16)
-/* 47: */ {
-/* 48: 42 */ this.mEUt = tRecipe.mEUt;
-/* 49: 43 */ this.mMaxProgresstime = (tRecipe.mDuration * 2);
-/* 50: */ }
-/* 51: */ else
-/* 52: */ {
-/* 53: 45 */ this.mEUt = tRecipe.mEUt;
-/* 54: 46 */ this.mMaxProgresstime = (tRecipe.mDuration * 2);
-/* 55: */ }
-/* 56: 48 */ return 2;
-/* 57: */ }
-/* 58: 50 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 62: */ {
-/* 63: 55 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 64: 56 */ if (aIndex == 1) {
-/* 65: 56 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 10, 1.0F, aX, aY, aZ);
-/* 66: */ }
-/* 67: */ }
-/* 68: */
-/* 69: */ public void startProcess()
-/* 70: */ {
-/* 71: 61 */ sendLoopStart((byte)1);
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 75: */ {
-/* 76: 66 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 80: */ {
-/* 81: 71 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 85: */ {
-/* 86: 76 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 90: */ {
-/* 91: 81 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 95: */ {
-/* 96: 86 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER_ACTIVE) };
-/* 97: */ }
-/* 98: */
-/* 99: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 100: */ {
-/* 101: 91 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER) };
-/* 102: */ }
-/* 103: */
-/* 104: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* 105: */ {
-/* 106: 96 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE) };
-/* 107: */ }
-/* 108: */
-/* 109: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* 110: */ {
-/* 111:101 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER) };
-/* 112: */ }
-/* 113: */ }
+public class GT_MetaTileEntity_ForgeHammer_Bronze
+ extends GT_MetaTileEntity_BasicMachine_Bronze
+{
+ public GT_MetaTileEntity_ForgeHammer_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Forge Hammer", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_ForgeHammer_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ForgeHammer_Bronze(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeHammer.png", GT_Recipe.GT_Recipe_Map.sHammerRecipes.mUnlocalizedName, (byte)6, (byte)3);
+ }
+
+ public int checkRecipe()
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[1], null, getAllInputs());
+ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
+ {
+ this.mOutputItems[0] = tRecipe.getOutput(0);
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = (tRecipe.mDuration * 2);
+ }
+ else
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = (tRecipe.mDuration * 2);
+ }
+ return 2;
+ }
+ return 0;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java index 162a660d67..fda0620572 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java @@ -1,119 +1,119 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 14: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_ForgeHammer_Steel
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_ForgeHammer_Steel(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22: 19 */ super(aID, aName, aNameRegional, "Forge Hammer", 1, 1, false);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_ForgeHammer_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27: 23 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 28: */ }
-/* 29: */
-/* 30: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 31: */ {
-/* 32: 28 */ return new GT_MetaTileEntity_ForgeHammer_Steel(this.mName, this.mDescription, this.mTextures);
-/* 33: */ }
-/* 34: */
-/* 35: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 36: */ {
-/* 37: 33 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelHammer.png", GT_Recipe.GT_Recipe_Map.sHammerRecipes.mUnlocalizedName, (byte)6, (byte)3);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42: 38 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[2], null, getAllInputs());
-/* 43: 39 */ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
-/* 44: */ {
-/* 45: 40 */ this.mOutputItems[0] = tRecipe.getOutput(0);
-/* 46: 41 */ if (tRecipe.mEUt <= 16)
-/* 47: */ {
-/* 48: 42 */ this.mEUt = (tRecipe.mEUt * 3);
-/* 49: 43 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 50: */ }
-/* 51: */ else
-/* 52: */ {
-/* 53: 45 */ this.mEUt = (tRecipe.mEUt * 3);
-/* 54: 46 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 55: */ }
-/* 56: 48 */ return 2;
-/* 57: */ }
-/* 58: 50 */ return 0;
-/* 59: */ }
-/* 60: */
-/* 61: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 62: */ {
-/* 63: 55 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 64: 56 */ if (aIndex == 1) {
-/* 65: 56 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 10, 1.0F, aX, aY, aZ);
-/* 66: */ }
-/* 67: */ }
-/* 68: */
-/* 69: */ public void startProcess()
-/* 70: */ {
-/* 71: 61 */ sendLoopStart((byte)1);
-/* 72: */ }
-/* 73: */
-/* 74: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 75: */ {
-/* 76: 66 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER_ACTIVE) };
-/* 77: */ }
-/* 78: */
-/* 79: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 80: */ {
-/* 81: 71 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER) };
-/* 82: */ }
-/* 83: */
-/* 84: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 85: */ {
-/* 86: 76 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER_ACTIVE) };
-/* 87: */ }
-/* 88: */
-/* 89: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 90: */ {
-/* 91: 81 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER) };
-/* 92: */ }
-/* 93: */
-/* 94: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 95: */ {
-/* 96: 86 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER_ACTIVE) };
-/* 97: */ }
-/* 98: */
-/* 99: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 100: */ {
-/* 101: 91 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER) };
-/* 102: */ }
-/* 103: */
-/* 104: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* 105: */ {
-/* 106: 96 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE) };
-/* 107: */ }
-/* 108: */
-/* 109: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* 110: */ {
-/* 111:101 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER) };
-/* 112: */ }
-/* 113: */ }
+public class GT_MetaTileEntity_ForgeHammer_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_ForgeHammer_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Forge Hammer", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_ForgeHammer_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ForgeHammer_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelHammer.png", GT_Recipe.GT_Recipe_Map.sHammerRecipes.mUnlocalizedName, (byte)6, (byte)3);
+ }
+
+ public int checkRecipe()
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sHammerRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[2], null, getAllInputs());
+ if ((tRecipe != null) && (canOutput(tRecipe.mOutputs)) && (tRecipe.isRecipeInputEqual(true, null, getAllInputs())))
+ {
+ this.mOutputItems[0] = tRecipe.getOutput(0);
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = (tRecipe.mEUt * 3);
+ this.mMaxProgresstime = tRecipe.mDuration;
+ }
+ else
+ {
+ this.mEUt = (tRecipe.mEUt * 3);
+ this.mMaxProgresstime = tRecipe.mDuration;
+ }
+ return 2;
+ }
+ return 0;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(1)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_HAMMER) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_HAMMER) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java index be5749ed5f..29606fceee 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Furnace_Bronze
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Bronze
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Furnace_Bronze(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Smelting things with compressed Steam", 1, 1, true);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Furnace_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, true);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeFurnace.png", "smelting");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Furnace_Bronze(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getSmeltingOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 4;
-/* 45:39 */ this.mMaxProgresstime = 256;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Furnace_Bronze
+ extends GT_MetaTileEntity_BasicMachine_Bronze
+{
+ public GT_MetaTileEntity_Furnace_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Smelting things with compressed Steam", 1, 1, true);
+ }
+
+ public GT_MetaTileEntity_Furnace_Bronze(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, true);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeFurnace.png", "smelting");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Furnace_Bronze(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getSmeltingOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 4;
+ this.mMaxProgresstime = 256;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(207)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(207)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java index d8bddf4a71..3bce5fd489 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java @@ -1,115 +1,115 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
-/* 13: */ import java.util.Map;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
-/* 14: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 15: */ import net.minecraft.item.ItemStack;
-/* 16: */
-/* 17: */ public class GT_MetaTileEntity_Furnace_Steel
-/* 18: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 19: */ {
-/* 20: */ public GT_MetaTileEntity_Furnace_Steel(int aID, String aName, String aNameRegional)
-/* 21: */ {
-/* 22:18 */ super(aID, aName, aNameRegional, "Smelting things with compressed Steam", 1, 1, true);
-/* 23: */ }
-/* 24: */
-/* 25: */ public GT_MetaTileEntity_Furnace_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 26: */ {
-/* 27:22 */ super(aName, aDescription, aTextures, 1, 1, true);
-/* 28: */ }
-/* 29: */
-/* 30: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 31: */ {
-/* 32:27 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelFurnace.png", "smelting");
-/* 33: */ }
-/* 34: */
-/* 35: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37:32 */ return new GT_MetaTileEntity_Furnace_Steel(this.mName, this.mDescription, this.mTextures);
-/* 38: */ }
-/* 39: */
-/* 40: */ public int checkRecipe()
-/* 41: */ {
-/* 42:37 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getSmeltingOutput(getInputAt(0), true, getOutputAt(0))))
-/* 43: */ {
-/* 44:38 */ this.mEUt = 12;
-/* 45:39 */ this.mMaxProgresstime = 128;
-/* 46:40 */ return 2;
-/* 47: */ }
-/* 48:42 */ return 0;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 52: */ {
+public class GT_MetaTileEntity_Furnace_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_Furnace_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Smelting things with compressed Steam", 1, 1, true);
+ }
+
+ public GT_MetaTileEntity_Furnace_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, true);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelFurnace.png", "smelting");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Furnace_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getSmeltingOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 12;
+ this.mMaxProgresstime = 128;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 54:47 */ return GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 55: */ }
-/* 56: */
-/* 57: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 58: */ {
-/* 59:52 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 60:53 */ if (aIndex == 1) {
-/* 61:53 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(207)), 10, 1.0F, aX, aY, aZ);
-/* 62: */ }
-/* 63: */ }
-/* 64: */
-/* 65: */ public void startProcess()
-/* 66: */ {
-/* 67:58 */ sendLoopStart((byte)1);
-/* 68: */ }
-/* 69: */
-/* 70: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 71: */ {
-/* 72:63 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE_ACTIVE) };
-/* 73: */ }
-/* 74: */
-/* 75: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 76: */ {
-/* 77:68 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE) };
-/* 78: */ }
-/* 79: */
-/* 80: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 81: */ {
-/* 82:73 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE_ACTIVE) };
-/* 83: */ }
-/* 84: */
-/* 85: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 86: */ {
-/* 87:78 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE) };
-/* 88: */ }
-/* 89: */
-/* 90: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 91: */ {
-/* 92:83 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE_ACTIVE) };
-/* 93: */ }
-/* 94: */
-/* 95: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 96: */ {
-/* 97:88 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE) };
-/* 98: */ }
-/* 99: */
-/* :0: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* :1: */ {
-/* :2:93 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE) };
-/* :3: */ }
-/* :4: */
-/* :5: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* :6: */ {
-/* :7:98 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE) };
-/* :8: */ }
-/* :9: */ }
+ return GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(207)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_FURNACE) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_FURNACE) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java index 54c1257b23..3fde9702d5 100644 --- a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java @@ -1,127 +1,127 @@ -/* 1: */ package gregtech.common.tileentities.machines.steam;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.steam;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_BasicMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
-/* 12: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_BasicMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Steel;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Utility;
+
+import java.util.Map;
+import java.util.Random;
-/* 13: */ import java.util.Map;
-/* 14: */ import java.util.Random;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraft.world.World;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */ import net.minecraft.item.ItemStack;
-/* 17: */ import net.minecraft.world.World;
-/* 18: */
-/* 19: */ public class GT_MetaTileEntity_Macerator_Steel
-/* 20: */ extends GT_MetaTileEntity_BasicMachine_Steel
-/* 21: */ {
-/* 22: */ public GT_MetaTileEntity_Macerator_Steel(int aID, String aName, String aNameRegional)
-/* 23: */ {
-/* 24: 21 */ super(aID, aName, aNameRegional, "Macerating your Ores", 1, 1, false);
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_Macerator_Steel(String aName, String aDescription, ITexture[][][] aTextures)
-/* 28: */ {
-/* 29: 25 */ super(aName, aDescription, aTextures, 1, 1, false);
-/* 30: */ }
-/* 31: */
-/* 32: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 33: */ {
-/* 34: 30 */ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelMacerator.png", "ic2.macerator");
-/* 35: */ }
-/* 36: */
-/* 37: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 38: */ {
-/* 39: 35 */ return new GT_MetaTileEntity_Macerator_Steel(this.mName, this.mDescription, this.mTextures);
-/* 40: */ }
-/* 41: */
-/* 42: */ public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
-/* 43: */ {
-/* 44: 40 */ super.onPreTick(aBaseMetaTileEntity, aTick);
-/* 45: 41 */ if ((aBaseMetaTileEntity.isClientSide()) && (aBaseMetaTileEntity.isActive()) && (aBaseMetaTileEntity.getFrontFacing() != 1) && (aBaseMetaTileEntity.getCoverIDAtSide((byte)1) == 0) && (!aBaseMetaTileEntity.getOpacityAtSide((byte)1)))
-/* 46: */ {
-/* 47: 42 */ Random tRandom = aBaseMetaTileEntity.getWorld().rand;
-/* 48: 43 */ aBaseMetaTileEntity.getWorld().spawnParticle("smoke", aBaseMetaTileEntity.getXCoord() + 0.8F - tRandom.nextFloat() * 0.6F, aBaseMetaTileEntity.getYCoord() + 0.9F + tRandom.nextFloat() * 0.2F, aBaseMetaTileEntity.getZCoord() + 0.8F - tRandom.nextFloat() * 0.6F, 0.0D, 0.0D, 0.0D);
-/* 49: */ }
-/* 50: */ }
-/* 51: */
-/* 52: */ public int checkRecipe()
-/* 53: */ {
-/* 54: 49 */ if (null != (this.mOutputItems[0] = GT_ModHandler.getMaceratorOutput(getInputAt(0), true, getOutputAt(0))))
-/* 55: */ {
-/* 56: 50 */ this.mEUt = 6;
-/* 57: 51 */ this.mMaxProgresstime = 400;
-/* 58: 52 */ return 2;
-/* 59: */ }
-/* 60: 54 */ return 0;
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 64: */ {
+public class GT_MetaTileEntity_Macerator_Steel
+ extends GT_MetaTileEntity_BasicMachine_Steel
+{
+ public GT_MetaTileEntity_Macerator_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, "Macerating your Ores", 1, 1, false);
+ }
+
+ public GT_MetaTileEntity_Macerator_Steel(String aName, String aDescription, ITexture[][][] aTextures)
+ {
+ super(aName, aDescription, aTextures, 1, 1, false);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "SteelMacerator.png", "ic2.macerator");
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_Macerator_Steel(this.mName, this.mDescription, this.mTextures);
+ }
+
+ public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick)
+ {
+ super.onPreTick(aBaseMetaTileEntity, aTick);
+ if ((aBaseMetaTileEntity.isClientSide()) && (aBaseMetaTileEntity.isActive()) && (aBaseMetaTileEntity.getFrontFacing() != 1) && (aBaseMetaTileEntity.getCoverIDAtSide((byte)1) == 0) && (!aBaseMetaTileEntity.getOpacityAtSide((byte)1)))
+ {
+ Random tRandom = aBaseMetaTileEntity.getWorld().rand;
+ aBaseMetaTileEntity.getWorld().spawnParticle("smoke", aBaseMetaTileEntity.getXCoord() + 0.8F - tRandom.nextFloat() * 0.6F, aBaseMetaTileEntity.getYCoord() + 0.9F + tRandom.nextFloat() * 0.2F, aBaseMetaTileEntity.getZCoord() + 0.8F - tRandom.nextFloat() * 0.6F, 0.0D, 0.0D, 0.0D);
+ }
+ }
+
+ public int checkRecipe()
+ {
+ if (null != (this.mOutputItems[0] = GT_ModHandler.getMaceratorOutput(getInputAt(0), true, getOutputAt(0))))
+ {
+ this.mEUt = 6;
+ this.mMaxProgresstime = 400;
+ return 2;
+ }
+ return 0;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;}
-/* 66: 59 */ return GT_ModHandler.getMaceratorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
-/* 67: */ }
-/* 68: */
-/* 69: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 70: */ {
-/* 71: 64 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 72: 65 */ if (aIndex == 1) {
-/* 73: 65 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(201)), 10, 1.0F, aX, aY, aZ);
-/* 74: */ }
-/* 75: */ }
-/* 76: */
-/* 77: */ public void startProcess()
-/* 78: */ {
-/* 79: 70 */ sendLoopStart((byte)1);
-/* 80: */ }
-/* 81: */
-/* 82: */ public ITexture[] getSideFacingActive(byte aColor)
-/* 83: */ {
-/* 84: 75 */ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE) };
-/* 85: */ }
-/* 86: */
-/* 87: */ public ITexture[] getSideFacingInactive(byte aColor)
-/* 88: */ {
-/* 89: 80 */ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_MACERATOR) };
-/* 90: */ }
-/* 91: */
-/* 92: */ public ITexture[] getFrontFacingActive(byte aColor)
-/* 93: */ {
-/* 94: 85 */ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE) };
-/* 95: */ }
-/* 96: */
-/* 97: */ public ITexture[] getFrontFacingInactive(byte aColor)
-/* 98: */ {
-/* 99: 90 */ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_MACERATOR) };
-/* 100: */ }
-/* 101: */
-/* 102: */ public ITexture[] getTopFacingActive(byte aColor)
-/* 103: */ {
-/* 104: 95 */ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_MACERATOR_ACTIVE) };
-/* 105: */ }
-/* 106: */
-/* 107: */ public ITexture[] getTopFacingInactive(byte aColor)
-/* 108: */ {
-/* 109:100 */ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_MACERATOR) };
-/* 110: */ }
-/* 111: */
-/* 112: */ public ITexture[] getBottomFacingActive(byte aColor)
-/* 113: */ {
-/* 114:105 */ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE) };
-/* 115: */ }
-/* 116: */
-/* 117: */ public ITexture[] getBottomFacingInactive(byte aColor)
-/* 118: */ {
-/* 119:110 */ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_MACERATOR) };
-/* 120: */ }
-/* 121: */ }
+ return GT_ModHandler.getMaceratorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 1) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(201)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public void startProcess()
+ {
+ sendLoopStart((byte)1);
+ }
+
+ public ITexture[] getSideFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE) };
+ }
+
+ public ITexture[] getSideFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_MACERATOR) };
+ }
+
+ public ITexture[] getFrontFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE) };
+ }
+
+ public ITexture[] getFrontFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_MACERATOR) };
+ }
+
+ public ITexture[] getTopFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_MACERATOR_ACTIVE) };
+ }
+
+ public ITexture[] getTopFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_MACERATOR) };
+ }
+
+ public ITexture[] getBottomFacingActive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE) };
+ }
+
+ public ITexture[] getBottomFacingInactive(byte aColor)
+ {
+ return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_MACERATOR) };
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
|