From 0427ab89f1753a44b30cbc35ce021cbbdc845109 Mon Sep 17 00:00:00 2001 From: Foghrye4 Date: Thu, 10 Aug 2017 18:52:45 +0300 Subject: fix missing source folder --- .../GT_MetaTileEntity_BasicHull_Bronze.java | 48 +++++++ .../GT_MetaTileEntity_BasicHull_BronzeBricks.java | 51 ++++++++ .../GT_MetaTileEntity_BasicHull_Steel.java | 50 ++++++++ .../GT_MetaTileEntity_BasicHull_SteelBricks.java | 50 ++++++++ .../GT_MetaTileEntity_AlloySmelter_Bronze.java | 130 +++++++++++++++++++ .../GT_MetaTileEntity_AlloySmelter_Steel.java | 130 +++++++++++++++++++ .../steam/GT_MetaTileEntity_Compressor_Bronze.java | 128 +++++++++++++++++++ .../steam/GT_MetaTileEntity_Compressor_Steel.java | 128 +++++++++++++++++++ .../steam/GT_MetaTileEntity_Extractor_Bronze.java | 128 +++++++++++++++++++ .../steam/GT_MetaTileEntity_Extractor_Steel.java | 128 +++++++++++++++++++ .../GT_MetaTileEntity_ForgeHammer_Bronze.java | 130 +++++++++++++++++++ .../steam/GT_MetaTileEntity_ForgeHammer_Steel.java | 130 +++++++++++++++++++ .../steam/GT_MetaTileEntity_Furnace_Bronze.java | 128 +++++++++++++++++++ .../steam/GT_MetaTileEntity_Furnace_Steel.java | 128 +++++++++++++++++++ .../steam/GT_MetaTileEntity_Macerator_Bronze.java | 135 ++++++++++++++++++++ .../steam/GT_MetaTileEntity_Macerator_Steel.java | 141 +++++++++++++++++++++ 16 files changed, 1763 insertions(+) create mode 100644 src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java create mode 100644 src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java (limited to 'src/main/java/gregtech/common/tileentities/machines') diff --git a/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java new file mode 100644 index 0000000..b8f74d6 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Bronze.java @@ -0,0 +1,48 @@ +/* 1: */ package gregtech.common.tileentities.machines; +/* 2: */ +/* 3: */ import gregtech.api.enums.Dyes; +import gregtech.api.enums.Textures; +/* 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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java new file mode 100644 index 0000000..a952594 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_BronzeBricks.java @@ -0,0 +1,51 @@ +/* 1: */ package gregtech.common.tileentities.machines; +/* 2: */ +/* 3: */ +import gregtech.api.enums.Dyes; +import gregtech.api.enums.Textures; +/* 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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java new file mode 100644 index 0000000..f923ace --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_Steel.java @@ -0,0 +1,50 @@ +/* 1: */ package gregtech.common.tileentities.machines; +/* 2: */ +/* 3: */ import gregtech.api.enums.Dyes; +import gregtech.api.enums.Textures; +/* 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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java new file mode 100644 index 0000000..a4cb828 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/GT_MetaTileEntity_BasicHull_SteelBricks.java @@ -0,0 +1,50 @@ +/* 1: */ package gregtech.common.tileentities.machines; +/* 2: */ +/* 3: */ import gregtech.api.enums.Dyes; +import gregtech.api.enums.Textures; +/* 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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Bronze.java new file mode 100644 index 0000000..8576411 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_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; +/* 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; +/* 13: */ import gregtech.api.util.GT_Utility; +/* 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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 31: */ { +/* 32: 28 */ return new GT_MetaTileEntity_AlloySmelter_Bronze(this.mName, this.mDescription, this.mTextures); +/* 33: */ } +/* 34: */ +/* 35: */ @Override +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: */ @Override +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: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(208)), 10, 1.0F, aX, aY, aZ); +/* 66: */ } +/* 67: */ } +/* 68: */ +/* 69: */ @Override +public void startProcess() +/* 70: */ { +/* 71: 61 */ sendLoopStart((byte)1); +/* 72: */ } +/* 73: */ +/* 74: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_Steel.java new file mode 100644 index 0000000..9d44c8b --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_AlloySmelter_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; +/* 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; +/* 13: */ import gregtech.api.util.GT_Utility; +/* 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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 31: */ { +/* 32: 28 */ return new GT_MetaTileEntity_AlloySmelter_Steel(this.mName, this.mDescription, this.mTextures); +/* 33: */ } +/* 34: */ +/* 35: */ @Override +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: */ @Override +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: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(208)), 10, 1.0F, aX, aY, aZ); +/* 66: */ } +/* 67: */ } +/* 68: */ +/* 69: */ @Override +public void startProcess() +/* 70: */ { +/* 71: 61 */ sendLoopStart((byte)1); +/* 72: */ } +/* 73: */ +/* 74: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java new file mode 100644 index 0000000..a728fd9 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Bronze.java @@ -0,0 +1,128 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.enums.Textures; +/* 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; +/* 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: */ @Override +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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 36: */ { +/* 37:32 */ return new GT_MetaTileEntity_Compressor_Bronze(this.mName, this.mDescription, this.mTextures); +/* 38: */ } +/* 39: */ +/* 40: */ @Override +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: */ @Override +public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) +/* 52: */ { + if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;} +/* 54:47 */ return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null; +/* 55: */ } +/* 56: */ +/* 57: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(203)), 10, 1.0F, aX, aY, aZ); +/* 62: */ } +/* 63: */ } +/* 64: */ +/* 65: */ @Override +public void startProcess() +/* 66: */ { +/* 67:58 */ sendLoopStart((byte)1); +/* 68: */ } +/* 69: */ +/* 70: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java new file mode 100644 index 0000000..00cf439 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Compressor_Steel.java @@ -0,0 +1,128 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.enums.Textures; +/* 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; +/* 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: */ @Override +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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 36: */ { +/* 37:32 */ return new GT_MetaTileEntity_Compressor_Steel(this.mName, this.mDescription, this.mTextures); +/* 38: */ } +/* 39: */ +/* 40: */ @Override +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: */ @Override +public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) +/* 52: */ { + if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;} +/* 54:47 */ return GT_ModHandler.getCompressorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null; +/* 55: */ } +/* 56: */ +/* 57: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(203)), 10, 1.0F, aX, aY, aZ); +/* 62: */ } +/* 63: */ } +/* 64: */ +/* 65: */ @Override +public void startProcess() +/* 66: */ { +/* 67:58 */ sendLoopStart((byte)1); +/* 68: */ } +/* 69: */ +/* 70: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java new file mode 100644 index 0000000..e74a25f --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Bronze.java @@ -0,0 +1,128 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.enums.Textures; +/* 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; +/* 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: */ @Override +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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 36: */ { +/* 37:32 */ return new GT_MetaTileEntity_Extractor_Bronze(this.mName, this.mDescription, this.mTextures); +/* 38: */ } +/* 39: */ +/* 40: */ @Override +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: */ @Override +public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) +/* 52: */ { + if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;} +/* 54:47 */ return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null; +/* 55: */ } +/* 56: */ +/* 57: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(200)), 10, 1.0F, aX, aY, aZ); +/* 62: */ } +/* 63: */ } +/* 64: */ +/* 65: */ @Override +public void startProcess() +/* 66: */ { +/* 67:58 */ sendLoopStart((byte)1); +/* 68: */ } +/* 69: */ +/* 70: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java new file mode 100644 index 0000000..43272cf --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Extractor_Steel.java @@ -0,0 +1,128 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.enums.Textures; +/* 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; +/* 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: */ @Override +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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 36: */ { +/* 37:32 */ return new GT_MetaTileEntity_Extractor_Steel(this.mName, this.mDescription, this.mTextures); +/* 38: */ } +/* 39: */ +/* 40: */ @Override +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: */ @Override +public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) +/* 52: */ { + if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;} +/* 54:47 */ return GT_ModHandler.getExtractorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null; +/* 55: */ } +/* 56: */ +/* 57: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(200)), 10, 1.0F, aX, aY, aZ); +/* 62: */ } +/* 63: */ } +/* 64: */ +/* 65: */ @Override +public void startProcess() +/* 66: */ { +/* 67:58 */ sendLoopStart((byte)1); +/* 68: */ } +/* 69: */ +/* 70: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Bronze.java new file mode 100644 index 0000000..58eba4c --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_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; +/* 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; +/* 13: */ import gregtech.api.util.GT_Utility; +/* 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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 31: */ { +/* 32: 28 */ return new GT_MetaTileEntity_ForgeHammer_Bronze(this.mName, this.mDescription, this.mTextures); +/* 33: */ } +/* 34: */ +/* 35: */ @Override +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: */ @Override +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: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(1)), 10, 1.0F, aX, aY, aZ); +/* 66: */ } +/* 67: */ } +/* 68: */ +/* 69: */ @Override +public void startProcess() +/* 70: */ { +/* 71: 61 */ sendLoopStart((byte)1); +/* 72: */ } +/* 73: */ +/* 74: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_Steel.java new file mode 100644 index 0000000..8bd9ed7 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_ForgeHammer_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; +/* 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; +/* 13: */ import gregtech.api.util.GT_Utility; +/* 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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 31: */ { +/* 32: 28 */ return new GT_MetaTileEntity_ForgeHammer_Steel(this.mName, this.mDescription, this.mTextures); +/* 33: */ } +/* 34: */ +/* 35: */ @Override +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: */ @Override +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: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(1)), 10, 1.0F, aX, aY, aZ); +/* 66: */ } +/* 67: */ } +/* 68: */ +/* 69: */ @Override +public void startProcess() +/* 70: */ { +/* 71: 61 */ sendLoopStart((byte)1); +/* 72: */ } +/* 73: */ +/* 74: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java new file mode 100644 index 0000000..d961830 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Bronze.java @@ -0,0 +1,128 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.enums.Textures; +/* 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; +/* 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: */ @Override +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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 36: */ { +/* 37:32 */ return new GT_MetaTileEntity_Furnace_Bronze(this.mName, this.mDescription, this.mTextures); +/* 38: */ } +/* 39: */ +/* 40: */ @Override +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: */ @Override +public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) +/* 52: */ { + if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;} +/* 54:47 */ return GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null; +/* 55: */ } +/* 56: */ +/* 57: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(207)), 10, 1.0F, aX, aY, aZ); +/* 62: */ } +/* 63: */ } +/* 64: */ +/* 65: */ @Override +public void startProcess() +/* 66: */ { +/* 67:58 */ sendLoopStart((byte)1); +/* 68: */ } +/* 69: */ +/* 70: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java new file mode 100644 index 0000000..c286c19 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Furnace_Steel.java @@ -0,0 +1,128 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam; +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.enums.Textures; +/* 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; +/* 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: */ @Override +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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 36: */ { +/* 37:32 */ return new GT_MetaTileEntity_Furnace_Steel(this.mName, this.mDescription, this.mTextures); +/* 38: */ } +/* 39: */ +/* 40: */ @Override +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: */ @Override +public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) +/* 52: */ { + if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;} +/* 54:47 */ return GT_ModHandler.getSmeltingOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null; +/* 55: */ } +/* 56: */ +/* 57: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(207)), 10, 1.0F, aX, aY, aZ); +/* 62: */ } +/* 63: */ } +/* 64: */ +/* 65: */ @Override +public void startProcess() +/* 66: */ { +/* 67:58 */ sendLoopStart((byte)1); +/* 68: */ } +/* 69: */ +/* 70: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java new file mode 100644 index 0000000..d2e7772 --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Bronze.java @@ -0,0 +1,135 @@ +package gregtech.common.tileentities.machines.steam; + +import java.util.Random; + +import gregtech.api.GregTech_API; +import gregtech.api.enums.Textures; +import gregtech.api.gui.GT_GUIContainer_BasicMachine; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicMachine_Bronze; +import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.util.GT_ModHandler; +import gregtech.api.util.GT_Utility; +import net.minecraft.entity.player.InventoryPlayer; +import net.minecraft.item.ItemStack; + +public class GT_MetaTileEntity_Macerator_Bronze + extends GT_MetaTileEntity_BasicMachine_Bronze +{ + public GT_MetaTileEntity_Macerator_Bronze(int aID, String aName, String aNameRegional) + { + super(aID, aName, aNameRegional, "Macerating your Ores", 1, 1, false); + } + + public GT_MetaTileEntity_Macerator_Bronze(String aName, String aDescription, ITexture[][][] aTextures) + { + super(aName, aDescription, aTextures, 1, 1, false); + } + + @Override +public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) + { + return new GT_GUIContainer_BasicMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "BronzeMacerator.png", "ic2.macerator"); + } + + @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_Macerator_Bronze(this.mName, this.mDescription, this.mTextures); + } + + @Override +public void onPreTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) + { + super.onPreTick(aBaseMetaTileEntity, aTick); + if ((aBaseMetaTileEntity.isClientSide()) && (aBaseMetaTileEntity.isActive()) && (aBaseMetaTileEntity.getFrontFacing() != 1) && (aBaseMetaTileEntity.getCoverIDAtSide((byte)1) == 0) && (!aBaseMetaTileEntity.getOpacityAtSide((byte)1))) + { + Random tRandom = aBaseMetaTileEntity.getWorld().rand; + aBaseMetaTileEntity.getWorld().spawnParticle("smoke", aBaseMetaTileEntity.getXCoord() + 0.8F - tRandom.nextFloat() * 0.6F, aBaseMetaTileEntity.getYCoord() + 0.9F + tRandom.nextFloat() * 0.2F, aBaseMetaTileEntity.getZCoord() + 0.8F - tRandom.nextFloat() * 0.6F, 0.0D, 0.0D, 0.0D); + } + } + + @Override +public int checkRecipe() + { + if (null != (this.mOutputItems[0] = GT_ModHandler.getMaceratorOutput(getInputAt(0), true, getOutputAt(0)))) + { + this.mEUt = 2; + this.mMaxProgresstime = 800; + return 2; + } + return 0; + } + + @Override +public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) + { + if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;} + return GT_ModHandler.getMaceratorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null; + } + + @Override +public void startSoundLoop(byte aIndex, double aX, double aY, double aZ) + { + super.startSoundLoop(aIndex, aX, aY, aZ); + if (aIndex == 1) { + GT_Utility.doSoundAtClient(GregTech_API.sSoundList.get(Integer.valueOf(201)), 10, 1.0F, aX, aY, aZ); + } + } + + @Override +public void startProcess() + { + sendLoopStart((byte)1); + } + + @Override +public ITexture[] getSideFacingActive(byte aColor) + { + return new ITexture[] { super.getSideFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_MACERATOR_ACTIVE) }; + } + + @Override +public ITexture[] getSideFacingInactive(byte aColor) + { + return new ITexture[] { super.getSideFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SIDE_STEAM_MACERATOR) }; + } + + @Override +public ITexture[] getFrontFacingActive(byte aColor) + { + return new ITexture[] { super.getFrontFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_MACERATOR_ACTIVE) }; + } + + @Override +public ITexture[] getFrontFacingInactive(byte aColor) + { + return new ITexture[] { super.getFrontFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_FRONT_STEAM_MACERATOR) }; + } + + @Override +public ITexture[] getTopFacingActive(byte aColor) + { + return new ITexture[] { super.getTopFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_MACERATOR_ACTIVE) }; + } + + @Override +public ITexture[] getTopFacingInactive(byte aColor) + { + return new ITexture[] { super.getTopFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_TOP_STEAM_MACERATOR) }; + } + + @Override +public ITexture[] getBottomFacingActive(byte aColor) + { + return new ITexture[] { super.getBottomFacingActive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_MACERATOR_ACTIVE) }; + } + + @Override +public ITexture[] getBottomFacingInactive(byte aColor) + { + return new ITexture[] { super.getBottomFacingInactive(aColor)[0], new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_BOTTOM_STEAM_MACERATOR) }; + } +} diff --git a/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java new file mode 100644 index 0000000..427a40c --- /dev/null +++ b/src/main/java/gregtech/common/tileentities/machines/steam/GT_MetaTileEntity_Macerator_Steel.java @@ -0,0 +1,141 @@ +/* 1: */ package gregtech.common.tileentities.machines.steam; +/* 14: */ import java.util.Random; + +/* 2: */ +/* 3: */ import gregtech.api.GregTech_API; +import gregtech.api.enums.Textures; +/* 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; +/* 15: */ import net.minecraft.entity.player.InventoryPlayer; +/* 16: */ import net.minecraft.item.ItemStack; +/* 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: */ @Override +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: */ @Override +public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) +/* 38: */ { +/* 39: 35 */ return new GT_MetaTileEntity_Macerator_Steel(this.mName, this.mDescription, this.mTextures); +/* 40: */ } +/* 41: */ +/* 42: */ @Override +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: */ @Override +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: */ @Override +public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) +/* 64: */ { + if (!super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) {return false;} +/* 66: 59 */ return GT_ModHandler.getMaceratorOutput(GT_Utility.copyAmount(64L, new Object[] { aStack }), false, null) != null; +/* 67: */ } +/* 68: */ +/* 69: */ @Override +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(GregTech_API.sSoundList.get(Integer.valueOf(201)), 10, 1.0F, aX, aY, aZ); +/* 74: */ } +/* 75: */ } +/* 76: */ +/* 77: */ @Override +public void startProcess() +/* 78: */ { +/* 79: 70 */ sendLoopStart((byte)1); +/* 80: */ } +/* 81: */ +/* 82: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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: */ @Override +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 -- cgit v1.2.3