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/steam | |
| 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/steam')
12 files changed, 1456 insertions, 0 deletions
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 != |
