diff options
author | Blood Asp <Blood@Asp> | 2015-04-23 18:14:22 +0200 |
---|---|---|
committer | Blood Asp <Blood@Asp> | 2015-04-23 18:14:22 +0200 |
commit | 7224ac4299098c70efae9dbd04c50a97e3f5f583 (patch) | |
tree | c739bb7d176a9735bc8e598063918023de32330c /main/java/gregtech/common/tileentities/machines | |
download | GT5-Unofficial-7224ac4299098c70efae9dbd04c50a97e3f5f583.tar.gz GT5-Unofficial-7224ac4299098c70efae9dbd04c50a97e3f5f583.tar.bz2 GT5-Unofficial-7224ac4299098c70efae9dbd04c50a97e3f5f583.zip |
Initial Commit
Diffstat (limited to 'main/java/gregtech/common/tileentities/machines')
40 files changed, 5251 insertions, 0 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 new file mode 100644 index 0000000000..567fa05557 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java @@ -0,0 +1,47 @@ +/* 1: */ package gregtech.common.tileentities.machines;
+/* 2: */
+/* 3: */ 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.GT_MetaTileEntity_BasicHull_Bronze
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..cbad52bfc1 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java @@ -0,0 +1,48 @@ +/* 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)) };
+rTextures[1][(i + 1)] =tmp1;
+/* 36:31 */ 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.GT_MetaTileEntity_BasicHull_BronzeBricks
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..b7eb59ff4c --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java @@ -0,0 +1,49 @@ +/* 1: */ package gregtech.common.tileentities.machines;
+/* 2: */
+/* 3: */ 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)) };
+rTextures[1][(i + 1)] = tmp1;
+/* 36:31 */ 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.GT_MetaTileEntity_BasicHull_Steel
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..592d167da7 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java @@ -0,0 +1,49 @@ +/* 1: */ package gregtech.common.tileentities.machines;
+/* 2: */
+/* 3: */ 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)) };
+rTextures[1][(i + 1)] = tmp1;
+/* 36:31 */ 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.GT_MetaTileEntity_BasicHull_SteelBricks
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..8d05b6e5a2 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Boxinator.java @@ -0,0 +1,109 @@ +/* 1: */ package gregtech.common.tileentities.machines.basic;
+/* 2: */
+/* 3: */ 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.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: */
+/* 92: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+/* 93: */ {
+/* 94:76 */ if (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack))
+/* 95: */ {
+/* 96:76 */ if (((getInputSlot() == aIndex) || (!ItemList.Crate_Empty.isStackEqual(aStack))) && (!ItemList.Schematic_1by1.isStackEqual(getInputAt(1))) && (!ItemList.Schematic_2by2.isStackEqual(getInputAt(1))) && (!ItemList.Schematic_3by3.isStackEqual(getInputAt(1)))) {}
+/* 97:76 */ return GT_Recipe.GT_Recipe_Map.sBoxinatorRecipes.findRecipe(getBaseMetaTileEntity(), true, gregtech.api.enums.GT_Values.V[this.mTier], null, new ItemStack[] { GT_Utility.copyAmount(64L, new Object[] { aStack }), getInputAt(1) }) != null;
+/* 98: */ }
+/* 99:77 */ return false;
+/* :0: */ }
+/* :1: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_Boxinator
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..4a123f4639 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java @@ -0,0 +1,71 @@ +/* 1: */ package gregtech.common.tileentities.machines.basic;
+/* 2: */
+/* 3: */ 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_Disassembler
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..2a26825db4 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Massfabricator.java @@ -0,0 +1,83 @@ +/* 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;
+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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_Massfabricator
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..7bfacc6b06 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_PotionBrewer.java @@ -0,0 +1,165 @@ +/* 1: */ package gregtech.common.tileentities.machines.basic;
+/* 2: */
+/* 3: */ import gregtech.api.enums.Materials;
+/* 4: */ 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.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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_PotionBrewer
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..8cd02d4c3d --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Printer.java @@ -0,0 +1,71 @@ +/* 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;
+import gregtech.api.util.GT_Recipe;
+/* 9: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+/* 10: */ import gregtech.api.util.GT_Utility;
+
+/* 11: */ import java.util.ArrayList;
+
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_Printer
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..c2020ca7fa --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Replicator.java @@ -0,0 +1,125 @@ +/* 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;
+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;
+
+/* 17: */ import java.util.ArrayList;
+/* 18: */ import java.util.Collection;
+/* 19: */ import java.util.Iterator;
+
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_Replicator
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..6bcc5b5074 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_RockBreaker.java @@ -0,0 +1,88 @@ +/* 1: */ package gregtech.common.tileentities.machines.basic;
+/* 2: */
+/* 3: */ import gregtech.api.enums.Materials;
+/* 4: */ 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.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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_RockBreaker
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..9c27b3f34a --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Scanner.java @@ -0,0 +1,211 @@ +/* 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;
+/* 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.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.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;
+
+/* 25: */ import java.util.Map;
+
+/* 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());
+/* 131: */
+/* 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: */ }
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.basic.GT_MetaTileEntity_Scanner
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..5f66a7c54b --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java @@ -0,0 +1,406 @@ +/* 1: */ package gregtech.common.tileentities.machines.multi;
+/* 2: */
+/* 3: */ import gregtech.api.GregTech_API;
+/* 4: */ import gregtech.api.enums.Materials;
+/* 5: */ 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: */ {
+/* 227:152 */ addOutputProducts();
+/* 228:153 */ this.mOutputItem1 = null;
+/* 229:154 */ this.mOutputItem2 = null;
+/* 230:155 */ this.mProgresstime = 0;
+/* 231:156 */ this.mMaxProgresstime = 0;
+/* 232: */ }
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_BronzeBlastFurnace
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..4ab5c7e5a1 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java @@ -0,0 +1,176 @@ +/* 1: */ package gregtech.common.tileentities.machines.multi; +/* 2: */ +/* 3: */ 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; + +/* 14: */ 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; +/* 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 (anywhere)", "6x Output Hatch (anywhere)", "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 */ 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.sDistillationRecipes.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: */ 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; + 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: */ } + 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 >= 26; +/* 140: */ } + + 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 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 new file mode 100644 index 0000000000..b8ef002bd9 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java @@ -0,0 +1,249 @@ +/* 1: */ package gregtech.common.tileentities.machines.multi;
+/* 2: */
+/* 3: */ 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;
+
+/* 14: */ import java.util.ArrayList;
+/* 15: */ import java.util.Arrays;
+
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_ElectricBlastFurnace
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..1dbf25e584 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java @@ -0,0 +1,413 @@ +/* 1: */ package gregtech.common.tileentities.machines.multi; +/* 2: */ +/* 3: */ import java.util.ArrayList; +import java.util.Arrays; + +import gregtech.api.GregTech_API; +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.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_RenderedTexture; +import gregtech.api.util.GT_Recipe; +import gregtech.api.util.GT_Utility; +import gregtech.api.metatileentity.implementations.*; +import net.minecraft.block.Block; +/* 8: */ 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.minecraftforge.fluids.FluidStack; +/* 12: */ +/* 13: */ public abstract class GT_MetaTileEntity_FusionComputer +/* 14: */ extends GT_MetaTileEntity_MultiBlockBase +/* 15: */ { + + 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: */ +/* 51: */ public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer) +/* 52: */ { +/* 53: 31 */ getBaseMetaTileEntity().openGUI(aPlayer, 143); +/* 54: 32 */ return true; +/* 55: */ } +/* 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) { + super.saveNBTData(aNBT); + } +/* 68: */ +/* 69: */ public void loadNBTData(NBTTagCompound aNBT) { + super.loadNBTData(aNBT); + } +/* 70: */ +/* 71: */ @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)) && + (this.mEnergyHatches.size()>=1)&& + (this.mOutputHatches.size()>=1)&& + (this.mInputHatches.size()>=2)) { + if(this.mEnergyHatches!=null){ + for(int i = 0;i < this.mEnergyHatches.size();i++){ + if(this.mEnergyHatches.get(i).mTier<tier())return false;} + }if(this.mOutputHatches!=null){ + for(int i = 0;i < this.mOutputHatches.size();i++){ + if(this.mOutputHatches.get(i).mTier<tier())return false;} + }if(this.mInputHatches!=null){ + for(int i = 0;i < this.mInputHatches.size();i++){ + 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: */ } + + private boolean checkTier(byte tier,ArrayList<GT_MetaTileEntity_Hatch> list){ + if(list!=null){ + for(int i = 0;i < list.size();i++){ + if(list.get(i).mTier<tier){ + return false; + } + } + } + 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: */ { + 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: */ { + 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: */ { + 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: */ } + 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: */ } + 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: */ { + 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) }; + }else{ + if(!aActive){ + sTexture = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS, Dyes.getModulation(-1, Dyes._NULL.mRGBa))};}else{ + sTexture = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW, Dyes.getModulation(-1, Dyes._NULL.mRGBa))}; + } + } +/* 197:283 */ return sTexture; +/* 198: */ } + +@Override +public boolean isCorrectMachinePart(ItemStack aStack) {return true;} + +@Override +public boolean checkRecipe(ItemStack aStack) { + if(this.mLastRecipe!=null){; + for(GT_MetaTileEntity_Hatch_Input tInput : this.mInputHatches){ + if(tInput.mFluid!=null&& tInput.mFluid!=null&&tInput.mFluid.getFluidID()==this.mLastRecipe.mFluidInputs[0].getFluidID()&&tInput.mFluid.amount>=this.mLastRecipe.mFluidInputs[0].amount){ + for(GT_MetaTileEntity_Hatch_Input tInput2 : this.mInputHatches){ + if(tInput2.mFluid!=null&& tInput2.mFluid!=null&&tInput2.mFluid.getFluidID()==this.mLastRecipe.mFluidInputs[1].getFluidID()&&tInput2.mFluid.amount>=this.mLastRecipe.mFluidInputs[1].amount&&getMaxInputVoltage()>=this.mLastRecipe.mEUt){ + tInput.drain(this.mLastRecipe.mFluidInputs[0].amount, true); + tInput2.drain(this.mLastRecipe.mFluidInputs[1].amount, true); + this.mEUt = -(this.mLastRecipe.mEUt*tierOverclock()); + this.mMaxProgresstime = this.mLastRecipe.mDuration/tierOverclock(); + this.mEfficiencyIncrease = 10000; + this.mOutputFluids = this.mLastRecipe.mFluidOutputs; + turnCasingActive(true); + return true; + } + } + } + } + } + this.mLastRecipe=null; + turnCasingActive(false); + for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sFusionRecipes.mRecipeList){ + FluidStack tFluid = tRecipe.mFluidInputs[0]; + if(tFluid!=null){ + for(GT_MetaTileEntity_Hatch_Input tInput : this.mInputHatches){ + if(tFluid.fluid !=null&& tInput.getFluid()!=null && tFluid.fluid.getID()==tInput.getFluid().getFluidID()&&tFluid.amount<=tInput.getFluid().amount){ + FluidStack tFluid2 = tRecipe.mFluidInputs[1]; + if(tFluid2!=null){ + for(GT_MetaTileEntity_Hatch_Input tInput2 : this.mInputHatches){ + if(tFluid2.fluid !=null&& tInput2.getFluid()!=null&&tFluid2.fluid.getID()==tInput2.getFluid().getFluidID()&&tFluid2.amount<=tInput2.getFluid().amount&&getMaxInputVoltage()>=tRecipe.mEUt&&this.mEUStore>=tRecipe.mSpecialValue){ + tInput.drain(tFluid.amount, true); + tInput2.drain(tFluid2.amount, true); + this.mLastRecipe=tRecipe; + this.mEUt = -(tRecipe.mEUt*tierOverclock()); + this.mMaxProgresstime = tRecipe.mDuration/tierOverclock(); + this.mEfficiencyIncrease = 10000; + this.mOutputFluids = tRecipe.mFluidOutputs; + turnCasingActive(true); + return true; + } + } + } + } + } + } + } + return false; +} + +public abstract int tierOverclock(); + +public boolean turnCasingActive(boolean status){ + if(this.mEnergyHatches!=null){ + for(GT_MetaTileEntity_Hatch_Energy hatch: this.mEnergyHatches){ + hatch.mMachineBlock = status?(byte) 52:(byte) 53; + } + }if(this.mOutputHatches!=null){ + for(GT_MetaTileEntity_Hatch_Output hatch: this.mOutputHatches){ + hatch.mMachineBlock = status?(byte) 52:(byte) 53; + } + }if(this.mInputHatches!=null){ + for(GT_MetaTileEntity_Hatch_Input hatch: this.mInputHatches){ + hatch.mMachineBlock = status?(byte) 52:(byte) 53; + } + } + return true; +} +@Override +public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { + if (aBaseMetaTileEntity.isServerSide()) { + if (mEfficiency < 0) mEfficiency = 0; + if (--mUpdate==0 || --mStartUpCheck==0) { + mInputHatches.clear(); + mInputBusses.clear(); + mOutputHatches.clear(); + mOutputBusses.clear(); + mDynamoHatches.clear(); + mEnergyHatches.clear(); + mMufflerHatches.clear(); + mMaintenanceHatches.clear(); + mMachine = checkMachine(aBaseMetaTileEntity, mInventory[1]); + } + if (mStartUpCheck < 0) { + if (mMachine) { + for (GT_MetaTileEntity_Hatch_Maintenance tHatch : mMaintenanceHatches) { + if (isValidMetaTileEntity(tHatch)) { + if (tHatch.mWrench) mWrench = true; + if (tHatch.mScrewdriver) mScrewdriver = true; + if (tHatch.mSoftHammer) mSoftHammer = true; + if (tHatch.mHardHammer) mHardHammer = true; + if (tHatch.mSolderingTool) mSolderingTool = true; + if (tHatch.mCrowbar) mCrowbar = true; + + tHatch.mWrench = false; + tHatch.mScrewdriver = false; + tHatch.mSoftHammer = false; + tHatch.mHardHammer = false; + tHatch.mSolderingTool = false; + tHatch.mCrowbar = false; + } + } + if(this.mEnergyHatches!=null){ + for (GT_MetaTileEntity_Hatch_Energy tHatch : mEnergyHatches) if (isValidMetaTileEntity(tHatch)) { + if (aBaseMetaTileEntity.getStoredEU()+(2048*tierOverclock())<maxEUStore()&&tHatch.getBaseMetaTileEntity().decreaseStoredEnergyUnits(2048*tierOverclock(), false)){ + aBaseMetaTileEntity.increaseStoredEnergyUnits(2048*tierOverclock(),true); + } + } + } + if (getRepairStatus() > 0) { + if (mMaxProgresstime > 0 && doRandomMaintenanceDamage()) { + if (aBaseMetaTileEntity.decreaseStoredEnergyUnits(mEUt, false)) { + if (!polluteEnvironment(getPollutionPerTick(mInventory[1]))) { + stopMachine(); + } + + if (mMaxProgresstime > 0 && ++mProgresstime>=mMaxProgresstime) { + if (mOutputItems != null) for (ItemStack tStack : mOutputItems) if (tStack != null) addOutput(tStack); + if (mOutputFluids != null) for (FluidStack tStack : mOutputFluids) if (tStack != null) addOutput(tStack); + mEfficiency = Math.max(0, Math.min(mEfficiency + mEfficiencyIncrease, getMaxEfficiency(mInventory[1]) - ((getIdealStatus() - getRepairStatus()) * 1000))); + mOutputItems = null; + mProgresstime = 0; + mMaxProgresstime = 0; + mEfficiencyIncrease = 0; + this.mEUStore=(int) aBaseMetaTileEntity.getStoredEU(); + if (aBaseMetaTileEntity.isAllowedToWork()) checkRecipe(mInventory[1]); + } + } + } else { + if (aTick % 100 == 0 || aBaseMetaTileEntity.hasWorkJustBeenEnabled() || aBaseMetaTileEntity.hasInventoryBeenModified()) { + turnCasingActive(mMaxProgresstime>0); + if (aBaseMetaTileEntity.isAllowedToWork()) { + this.mEUStore=(int) aBaseMetaTileEntity.getStoredEU(); + if(checkRecipe(mInventory[1])&&aBaseMetaTileEntity.getStoredEU()>=this.mLastRecipe.mSpecialValue){ + aBaseMetaTileEntity.decreaseStoredEnergyUnits(this.mLastRecipe.mSpecialValue, true); + } + } + if (mMaxProgresstime <= 0) mEfficiency = Math.max(0, mEfficiency - 1000); + } + } + } else { + stopMachine(); + } + } else { + turnCasingActive(false); + stopMachine(); + } + } + aBaseMetaTileEntity.setErrorDisplayID((aBaseMetaTileEntity.getErrorDisplayID()&~127)|(mWrench?0:1)|(mScrewdriver?0:2)|(mSoftHammer?0:4)|(mHardHammer?0:8)|(mSolderingTool?0:16)|(mCrowbar?0:32)|(mMachine?0:64)); + aBaseMetaTileEntity.setActive(mMaxProgresstime>0); + } +} + +@Override +public boolean onRunningTick(ItemStack aStack) { + if (mEUt < 0) { + if (!drainEnergyInput(((long)-mEUt * 10000) / Math.max(1000, mEfficiency))) { + stopMachine(); + return false; + } + } + return true; +} + +public boolean drainEnergyInput(long aEU) { +// if (aEU <= this.mEUStore) { +// this.mEUStore-=aEU; +// return true;} + return false; +} + +@Override +public int getMaxEfficiency(ItemStack aStack) { + return 10000;} +@Override +public int getPollutionPerTick(ItemStack aStack) {return 0;} +@Override +public int getDamageToComponent(ItemStack aStack) {return 0;} +@Override +public int getAmountOfOutputs() {return 0;} +@Override +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_FusionComputer1.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer1.java new file mode 100644 index 0000000000..28c74e7a3d --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer1.java @@ -0,0 +1,46 @@ +package gregtech.common.tileentities.machines.multi; + +import gregtech.api.GregTech_API; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; +import net.minecraft.block.Block; + +public class GT_MetaTileEntity_FusionComputer1 extends GT_MetaTileEntity_FusionComputer{ + + public GT_MetaTileEntity_FusionComputer1(int aID, String aName, String aNameRegional) { + super(aID, aName, aNameRegional, 6); + } + + public GT_MetaTileEntity_FusionComputer1(String aName) {super(aName);} + + @Override + public int tier() {return 6;} + + @Override + public long maxEUStore() {return 160000000L*(Math.min(16, this.mEnergyHatches.size()))/16L;} + + @Override + public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { + return new GT_MetaTileEntity_FusionComputer1(mName); + } + @Override + public int getCasingMeta() {return 6;} + + @Override + public Block getFusionCoil() {return GregTech_API.sBlockCasings1;} + + @Override + public int getFusionCoilMeta() {return 15;} + + public String[] getDescription() + {return new String[] { "It's over 9000!!!","LuV Casings around Superconducting Coils","2-16 Input Hatches","1-16 Output Hatches","1-16 Energy Hatches","All Hatches must be LuV or better" };} + + @Override + public int tierOverclock() {return 1;} + + @Override + public Block getCasing() { + return GregTech_API.sBlockCasings1; + } + +} diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer2.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer2.java new file mode 100644 index 0000000000..80702a37cf --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer2.java @@ -0,0 +1,46 @@ +package gregtech.common.tileentities.machines.multi; + +import gregtech.api.GregTech_API; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; +import net.minecraft.block.Block; + +public class GT_MetaTileEntity_FusionComputer2 extends GT_MetaTileEntity_FusionComputer{ + + public GT_MetaTileEntity_FusionComputer2(int aID, String aName, String aNameRegional) { + super(aID, aName, aNameRegional, 6); + } + + public GT_MetaTileEntity_FusionComputer2(String aName) {super(aName);} + + @Override + public int tier() {return 7;} + + @Override + public long maxEUStore() {return 320000000L*(Math.min(16, this.mEnergyHatches.size()))/16L;} + + @Override + public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { + return new GT_MetaTileEntity_FusionComputer2(mName); + } + @Override + public int getCasingMeta() {return 6;} + + @Override + public Block getFusionCoil() {return GregTech_API.sBlockCasings4;} + + @Override + public int getFusionCoilMeta() {return 7;} + + public String[] getDescription() + {return new String[] { "It's over 9000!!!","Fusion Casings around Fusion Coils","2-16 Input Hatches","1-16 Output Hatches","1-16 Energy Hatches","All Hatches must be ZPMV or better" };} + + @Override + public int tierOverclock() {return 2;} + + @Override + public Block getCasing() { + return GregTech_API.sBlockCasings4; + } + +} diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer3.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer3.java new file mode 100644 index 0000000000..25c0576814 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer3.java @@ -0,0 +1,47 @@ +package gregtech.common.tileentities.machines.multi; + +import gregtech.api.GregTech_API; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; +import net.minecraft.block.Block; + +public class GT_MetaTileEntity_FusionComputer3 extends GT_MetaTileEntity_FusionComputer{ + + public GT_MetaTileEntity_FusionComputer3(int aID, String aName, String aNameRegional) { + super(aID, aName, aNameRegional, 6); + } + + public GT_MetaTileEntity_FusionComputer3(String aName) {super(aName);} + + @Override + public int tier() {return 8;} + + @Override + public long maxEUStore() {return 640000000L*(Math.min(16, this.mEnergyHatches.size()))/16L;} + + @Override + public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) { + return new GT_MetaTileEntity_FusionComputer3(mName); + } + @Override + public int getCasingMeta() {return 8;} + + @Override + public Block getFusionCoil() {return GregTech_API.sBlockCasings4;} + + @Override + public int getFusionCoilMeta() {return 7;} + + public String[] getDescription() + {return new String[] { "A SUN DOWN ON EARTH","Fusion Casings MK II around Fusion Coils","2-16 Input Hatches","1-16 Output Hatches","1-16 Energy Hatches","All Hatches must be UV or better" };} + + @Override + public int tierOverclock() {return 4;} + + @Override + public Block getCasing() { + return GregTech_API.sBlockCasings4; + } + +} + 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 new file mode 100644 index 0000000000..48b7f03770 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java @@ -0,0 +1,180 @@ +/* 1: */ package gregtech.common.tileentities.machines.multi;
+/* 2: */
+/* 3: */ 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;
+
+/* 14: */ import java.util.ArrayList;
+/* 15: */ import java.util.Arrays;
+/* 16: */ import java.util.Map;
+
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_ImplosionCompressor
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..53e870931e --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java @@ -0,0 +1,251 @@ +/* 1: */ package gregtech.common.tileentities.machines.multi;
+/* 2: */
+/* 3: */ 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;
+
+/* 15: */ import java.util.ArrayList;
+
+/* 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: */ }
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_LargeBoiler
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..434a34799d --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java @@ -0,0 +1,81 @@ +/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_LargeBoiler_Bronze
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..7532795cb1 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java @@ -0,0 +1,81 @@ +/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_LargeBoiler_Steel
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..f3dad61817 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java @@ -0,0 +1,81 @@ +/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_LargeBoiler_Titanium
+ * JD-Core Version: 0.7.0.1
+ */
\ 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 new file mode 100644 index 0000000000..8356a29c3d --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java @@ -0,0 +1,81 @@ +/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_LargeBoiler_TungstenSteel
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..ae50fec788 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java @@ -0,0 +1,195 @@ +/* 1: */ package gregtech.common.tileentities.machines.multi;
+/* 2: */
+/* 3: */ 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.util.GT_Recipe;
+/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+/* 13: */ import gregtech.api.util.GT_Utility;
+
+/* 14: */ import java.util.ArrayList;
+
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_MultiFurnace
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..9d5d1691c5 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java @@ -0,0 +1,171 @@ +package gregtech.common.tileentities.machines.multi; + +import java.util.ArrayList; + +import net.minecraft.entity.player.InventoryPlayer; +import net.minecraft.item.ItemStack; +import net.minecraftforge.common.util.ForgeDirection; +import net.minecraftforge.fluids.FluidStack; +import gregtech.api.GregTech_API; +import gregtech.api.enums.Textures; +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_BasicMachine_GT_Recipe; +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_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" }; + /* 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: */ { + String tmp = mInventory[1].getUnlocalizedName().replaceAll("gt.blockmachines.basicmachine.", ""); + if(tmp.startsWith("centrifuge")){ + return GT_Recipe.GT_Recipe_Map.sCentrifugeRecipes; + }else if(tmp.equals("")){ + + } + + /* 57: 54 */ return null; + /* 58: */ } + /* 59: */ + /* 60: */ public boolean isCorrectMachinePart(ItemStack aStack) + /* 61: */ { + if(aStack!=null&&aStack.getUnlocalizedName().startsWith("gt.blockmachines.basicmachine.")){ + /* 62: 59 */ return true;} + return false; + /* 63: */ } + /* 64: */ + /* 65: */ public boolean isFacingValid(byte aFacing) + /* 66: */ { + /* 67: 62 */ return aFacing > 1; + /* 68: */ } + /* 69: */ + GT_Recipe mLastRecipe; + /* 70: */ 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(); + /* 75: 69 */ long tVoltage = getMaxInputVoltage(); + /* 76: 70 */ 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;} + FluidStack fluidIn = null; + if(mInputHatches !=null&&mInputHatches.size()>0){ + fluidIn = mInputHatches.get(0).mFluid; + } + ItemStack tInput =null; + if(tInputList.size()>0){ + tInput = tInputList.get(0); } + /* 78: 72 */ GT_Recipe tRecipe = map.findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, gregtech.api.enums.GT_Values.V[tTier], new FluidStack[]{fluidIn}, new ItemStack[] { tInput }); + /* 79: 73 */ if (tRecipe != null) { + mLastRecipe = tRecipe; + int machines = Math.max(16,mInventory[1].stackSize); + /* 81: */ if(tRecipe.mFluidOutputs.length>0&&tRecipe.mFluidInputs.length>0&&((mInputHatches.get(0).mFluid.amount)>(tRecipe.mFluidInputs[0].amount*machines))){ + mInputHatches.get(0).mFluid.amount -= tRecipe.mFluidInputs[0].amount*machines; + /* 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))*machines; + /* 87: 79 */ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1)); + /* 88: */ } + /* 89: */ else + /* 90: */ { + /* 91: 81 */ this.mEUt = tRecipe.mEUt*machines; + /* 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.mOutputFluids = new FluidStack[] { tRecipe.getFluidOutput(0) }; + this.mOutputFluids[0].amount *=machines; + /* 104: 92 */ updateSlots();} + /* 105: 93 */ return true; + /* 106: */ + /* 107: */ } + /* 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 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 new file mode 100644 index 0000000000..14facd8a71 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java @@ -0,0 +1,175 @@ +/* 1: */ package gregtech.common.tileentities.machines.multi;
+/* 2: */
+/* 3: */ 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;
+
+/* 14: */ import java.util.ArrayList;
+
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.multi.GT_MetaTileEntity_VacuumFreezer
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..49e4befd16 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java @@ -0,0 +1,122 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 14: */ import java.util.Map;
+
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_AlloySmelter_Bronze
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..8a3dbfee52 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java @@ -0,0 +1,122 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 14: */ import java.util.Map;
+
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_AlloySmelter_Steel
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..0039631e18 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java @@ -0,0 +1,118 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 13: */ import java.util.Map;
+
+/* 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: */ {
+/* 53:47 */ if (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {}
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_Compressor_Bronze
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..20b27156f2 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java @@ -0,0 +1,118 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 13: */ import java.util.Map;
+
+/* 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: */ {
+/* 53:47 */ if (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {}
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_Compressor_Steel
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..cb6d51cb62 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java @@ -0,0 +1,118 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 13: */ import java.util.Map;
+
+/* 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: */ {
+/* 53:47 */ if (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {}
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_Extractor_Bronze
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..8c8151360e --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java @@ -0,0 +1,118 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 13: */ import java.util.Map;
+
+/* 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: */ {
+/* 53:47 */ if (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {}
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_Extractor_Steel
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..19764d0034 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java @@ -0,0 +1,122 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 14: */ import java.util.Map;
+
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_ForgeHammer_Bronze
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..162a660d67 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java @@ -0,0 +1,122 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 14: */ import java.util.Map;
+
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_ForgeHammer_Steel
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..1a02c9f97b --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java @@ -0,0 +1,118 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 13: */ import java.util.Map;
+
+/* 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: */ {
+/* 53:47 */ if (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {}
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_Furnace_Bronze
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..22718d39ca --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java @@ -0,0 +1,118 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 13: */ import java.util.Map;
+
+/* 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: */ {
+/* 53:47 */ if (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {}
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_Furnace_Steel
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java new file mode 100644 index 0000000000..2a1b0314cf --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java @@ -0,0 +1,130 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 13: */ import java.util.Map;
+/* 14: */ import java.util.Random;
+
+/* 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_Bronze
+/* 20: */ extends GT_MetaTileEntity_BasicMachine_Bronze
+/* 21: */ {
+/* 22: */ public GT_MetaTileEntity_Macerator_Bronze(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_Bronze(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(), "BronzeMacerator.png", "ic2.macerator");
+/* 35: */ }
+/* 36: */
+/* 37: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+/* 38: */ {
+/* 39: 35 */ return new GT_MetaTileEntity_Macerator_Bronze(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 = 2;
+/* 57: 51 */ this.mMaxProgresstime = 800;
+/* 58: 52 */ return 2;
+/* 59: */ }
+/* 60: 54 */ return 0;
+/* 61: */ }
+/* 62: */
+/* 63: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+/* 64: */ {
+/* 65: 59 */ if (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {}
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_Macerator_Bronze
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file 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 new file mode 100644 index 0000000000..5316c1e089 --- /dev/null +++ b/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java @@ -0,0 +1,130 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam;
+/* 2: */
+/* 3: */ 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;
+
+/* 13: */ import java.util.Map;
+/* 14: */ import java.util.Random;
+
+/* 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: */ {
+/* 65: 59 */ if (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {}
+/* 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: */ }
+
+
+/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
+ * Qualified Name: gregtech.common.tileentities.machines.steam.GT_MetaTileEntity_Macerator_Steel
+ * JD-Core Version: 0.7.0.1
+ */
\ No newline at end of file |