diff options
author | aerospark <lukefay12@gmail.com> | 2015-06-23 15:29:05 -0700 |
---|---|---|
committer | aerospark <lukefay12@gmail.com> | 2015-06-23 15:29:05 -0700 |
commit | a1504799f44ba2debdfef06317f24e7f9c1129d6 (patch) | |
tree | 53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/common/tileentities/machines/multi | |
parent | b803f59de5a66fcb4ef53e117b912fbbc2841392 (diff) | |
download | GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.gz GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.bz2 GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.zip |
strip linenumbers
Diffstat (limited to 'main/java/gregtech/common/tileentities/machines/multi')
14 files changed, 2280 insertions, 2280 deletions
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java index d1b5ea8ec9..9f244a546b 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_BronzeBlastFurnace.java @@ -1,405 +1,405 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.GT_Mod;
import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.enums.Materials;
-/* 5: */ import gregtech.api.enums.OrePrefixes;
+import gregtech.api.enums.Materials;
+import gregtech.api.enums.OrePrefixes;
import gregtech.api.enums.Textures;
-/* 6: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 7: */ import gregtech.api.interfaces.ITexture;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.MetaTileEntity;
-/* 10: */ import gregtech.api.objects.GT_ItemStack;
-/* 11: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 12: */ import gregtech.api.util.GT_CoverBehavior;
-/* 13: */ import gregtech.api.util.GT_OreDictUnificator;
-/* 14: */ import gregtech.api.util.GT_Utility;
-/* 15: */ import gregtech.common.gui.GT_Container_BronzeBlastFurnace;
-/* 16: */ import gregtech.common.gui.GT_GUIContainer_BronzeBlastFurnace;
-/* 17: */ import net.minecraft.entity.player.EntityPlayer;
-/* 18: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 19: */ import net.minecraft.init.Blocks;
-/* 20: */ import net.minecraft.init.Items;
-/* 21: */ import net.minecraft.item.ItemStack;
-/* 22: */ import net.minecraft.nbt.NBTTagCompound;
-/* 23: */ import net.minecraft.world.World;
-/* 24: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 25: */
-/* 26: */ public class GT_MetaTileEntity_BronzeBlastFurnace
-/* 27: */ extends MetaTileEntity
-/* 28: */ {
-/* 29: 26 */ public int mMaxProgresstime = 0;
-/* 30: 26 */ public int mUpdate = 5;
-/* 31: 26 */ public int mProgresstime = 0;
-/* 32: 28 */ public boolean mMachine = false;
-/* 33: 31 */ private static final ITexture[] FACING_SIDE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS) };
-/* 34: 32 */ private static final ITexture[] FACING_FRONT = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE) };
-/* 35: 33 */ private static final ITexture[] FACING_ACTIVE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE_ACTIVE) };
-/* 36: */ public ItemStack mOutputItem1;
-/* 37: */ public ItemStack mOutputItem2;
-/* 38: */
-/* 39: */ public GT_MetaTileEntity_BronzeBlastFurnace(int aID, String aName, String aNameRegional)
-/* 40: */ {
-/* 41: 36 */ super(aID, aName, aNameRegional, 4);
-/* 42: */ }
-/* 43: */
-/* 44: */ public GT_MetaTileEntity_BronzeBlastFurnace(String aName)
-/* 45: */ {
-/* 46: 40 */ super(aName, 4);
-/* 47: */ }
-/* 48: */
-/* 49: */ public String[] getDescription()
-/* 50: */ {
-/* 51: 45 */ return new String[] { "To get your first Steel", "Multiblock: 3x3x4 hollow with opening on top", "32 Bronze Plated Bricks required" };
-/* 52: */ }
-/* 53: */
-/* 54: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 55: */ {
-/* 56: 50 */ if (aSide == aFacing) {
-/* 57: 50 */ return aActive ? FACING_ACTIVE : FACING_FRONT;
-/* 58: */ }
-/* 59: 51 */ return FACING_SIDE;
-/* 60: */ }
-/* 61: */
-/* 62: */ public boolean isSteampowered()
-/* 63: */ {
-/* 64: 54 */ return false;
-/* 65: */ }
-/* 66: */
-/* 67: */ public boolean isElectric()
-/* 68: */ {
-/* 69: 55 */ return false;
-/* 70: */ }
-/* 71: */
-/* 72: */ public boolean isPneumatic()
-/* 73: */ {
-/* 74: 56 */ return false;
-/* 75: */ }
-/* 76: */
-/* 77: */ public boolean isEnetInput()
-/* 78: */ {
-/* 79: 57 */ return false;
-/* 80: */ }
-/* 81: */
-/* 82: */ public boolean isEnetOutput()
-/* 83: */ {
-/* 84: 58 */ return false;
-/* 85: */ }
-/* 86: */
-/* 87: */ public boolean isInputFacing(byte aSide)
-/* 88: */ {
-/* 89: 59 */ return false;
-/* 90: */ }
-/* 91: */
-/* 92: */ public boolean isOutputFacing(byte aSide)
-/* 93: */ {
-/* 94: 60 */ return false;
-/* 95: */ }
-/* 96: */
-/* 97: */ public boolean isTeleporterCompatible()
-/* 98: */ {
-/* 99: 61 */ return false;
-/* 100: */ }
-/* 101: */
-/* 102: */ public boolean isFacingValid(byte aFacing)
-/* 103: */ {
-/* 104: 62 */ return aFacing > 1;
-/* 105: */ }
-/* 106: */
-/* 107: */ public boolean isAccessAllowed(EntityPlayer aPlayer)
-/* 108: */ {
-/* 109: 63 */ return true;
-/* 110: */ }
-/* 111: */
-/* 112: */ public int getProgresstime()
-/* 113: */ {
-/* 114: 64 */ return this.mProgresstime;
-/* 115: */ }
-/* 116: */
-/* 117: */ public int maxProgresstime()
-/* 118: */ {
-/* 119: 65 */ return this.mMaxProgresstime;
-/* 120: */ }
-/* 121: */
-/* 122: */ public int increaseProgress(int aProgress)
-/* 123: */ {
-/* 124: 66 */ this.mProgresstime += aProgress;return this.mMaxProgresstime - this.mProgresstime;
-/* 125: */ }
-/* 126: */
-/* 127: */ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aCoverID)
-/* 128: */ {
-/* 129: 70 */ return (GregTech_API.getCoverBehavior(aCoverID.toStack()).isSimpleCover()) && (super.allowCoverOnSide(aSide, aCoverID));
-/* 130: */ }
-/* 131: */
-/* 132: */ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 133: */ {
-/* 134: 75 */ return new GT_MetaTileEntity_BronzeBlastFurnace(this.mName);
-/* 135: */ }
-/* 136: */
-/* 137: */ public void saveNBTData(NBTTagCompound aNBT)
-/* 138: */ {
-/* 139: 80 */ aNBT.setInteger("mProgresstime", this.mProgresstime);
-/* 140: 81 */ aNBT.setInteger("mMaxProgresstime", this.mMaxProgresstime);
-/* 141: 82 */ if (this.mOutputItem1 != null)
-/* 142: */ {
-/* 143: 83 */ NBTTagCompound tNBT = new NBTTagCompound();
-/* 144: 84 */ this.mOutputItem1.writeToNBT(tNBT);
-/* 145: 85 */ aNBT.setTag("mOutputItem1", tNBT);
-/* 146: */ }
-/* 147: 87 */ if (this.mOutputItem2 != null)
-/* 148: */ {
-/* 149: 88 */ NBTTagCompound tNBT = new NBTTagCompound();
-/* 150: 89 */ this.mOutputItem2.writeToNBT(tNBT);
-/* 151: 90 */ aNBT.setTag("mOutputItem2", tNBT);
-/* 152: */ }
-/* 153: */ }
-/* 154: */
-/* 155: */ public void loadNBTData(NBTTagCompound aNBT)
-/* 156: */ {
-/* 157: 96 */ this.mUpdate = 5;
-/* 158: 97 */ this.mProgresstime = aNBT.getInteger("mProgresstime");
-/* 159: 98 */ this.mMaxProgresstime = aNBT.getInteger("mMaxProgresstime");
-/* 160: 99 */ this.mOutputItem1 = GT_Utility.loadItem(aNBT, "mOutputItem1");
-/* 161:100 */ this.mOutputItem2 = GT_Utility.loadItem(aNBT, "mOutputItem2");
-/* 162: */ }
-/* 163: */
-/* 164: */ public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer)
-/* 165: */ {
-/* 166:105 */ if (aBaseMetaTileEntity.isClientSide()) {
-/* 167:105 */ return true;
-/* 168: */ }
-/* 169:106 */ aBaseMetaTileEntity.openGUI(aPlayer);
-/* 170:107 */ return true;
-/* 171: */ }
-/* 172: */
-/* 173: */ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 174: */ {
-/* 175:112 */ return new GT_Container_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
-/* 176: */ }
-/* 177: */
-/* 178: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 179: */ {
-/* 180:117 */ return new GT_GUIContainer_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
-/* 181: */ }
-/* 182: */
-/* 183: */ private boolean checkMachine()
-/* 184: */ {
-/* 185:121 */ int xDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetZ;
-/* 186:122 */ for (int i = -1; i < 2; i++) {
-/* 187:122 */ for (int j = -1; j < 3; j++) {
-/* 188:122 */ for (int k = -1; k < 2; k++) {
-/* 189:122 */ if ((xDir + i != 0) || (j != 0) || (zDir + k != 0)) {
-/* 190:123 */ if ((i != 0) || (j == -1) || (k != 0))
-/* 191: */ {
-/* 192:124 */ if ((getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k) != GregTech_API.sBlockCasings1) || (getBaseMetaTileEntity().getMetaIDOffset(xDir + i, j, zDir + k) != 10)) {
-/* 193:124 */ return false;
-/* 194: */ }
-/* 195: */ }
-/* 196:126 */ else if ((!GT_Utility.arrayContains(getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k), new Object[] { Blocks.lava, Blocks.flowing_lava, null })) && (!getBaseMetaTileEntity().getAirOffset(xDir + i, j, zDir + k))) {
-/* 197:126 */ return false;
-/* 198: */ }
-/* 199: */ }
-/* 200: */ }
-/* 201: */ }
-/* 202: */ }
-/* 203:129 */ return true;
-/* 204: */ }
-/* 205: */
-/* 206: */ public void onMachineBlockUpdate()
-/* 207: */ {
-/* 208:134 */ this.mUpdate = 5;
-/* 209: */ }
-/* 210: */
-/* 211: */ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
-/* 212: */ {
-/* 213:139 */ if ((aBaseMetaTileEntity.isClientSide()) &&
-/* 214:140 */ (aBaseMetaTileEntity.isActive())) {
-/* 215:141 */ aBaseMetaTileEntity.getWorld().spawnParticle("largesmoke", aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), aBaseMetaTileEntity.getOffsetY(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), 0.0D, 0.3D, 0.0D);
-/* 216: */ }
-/* 217:144 */ if (aBaseMetaTileEntity.isServerSide())
-/* 218: */ {
-/* 219:145 */ if (this.mUpdate-- == 0) {
-/* 220:146 */ this.mMachine = checkMachine();
-/* 221: */ }
-/* 222:149 */ if (this.mMachine) {
-/* 223:150 */ if (this.mMaxProgresstime > 0)
-/* 224: */ {
-/* 225:151 */ if (++this.mProgresstime >= this.mMaxProgresstime)
-/* 226: */ {
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.MetaTileEntity;
+import gregtech.api.objects.GT_ItemStack;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_OreDictUnificator;
+import gregtech.api.util.GT_Utility;
+import gregtech.common.gui.GT_Container_BronzeBlastFurnace;
+import gregtech.common.gui.GT_GUIContainer_BronzeBlastFurnace;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.init.Blocks;
+import net.minecraft.init.Items;
+import net.minecraft.item.ItemStack;
+import net.minecraft.nbt.NBTTagCompound;
+import net.minecraft.world.World;
+import net.minecraftforge.common.util.ForgeDirection;
+
+public class GT_MetaTileEntity_BronzeBlastFurnace
+ extends MetaTileEntity
+{
+ public int mMaxProgresstime = 0;
+ public int mUpdate = 5;
+ public int mProgresstime = 0;
+ public boolean mMachine = false;
+ private static final ITexture[] FACING_SIDE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEPLATEDBRICKS) };
+ private static final ITexture[] FACING_FRONT = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE) };
+ private static final ITexture[] FACING_ACTIVE = { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_BRONZEBLASTFURNACE_ACTIVE) };
+ public ItemStack mOutputItem1;
+ public ItemStack mOutputItem2;
+
+ public GT_MetaTileEntity_BronzeBlastFurnace(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional, 4);
+ }
+
+ public GT_MetaTileEntity_BronzeBlastFurnace(String aName)
+ {
+ super(aName, 4);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "To get your first Steel", "Multiblock: 3x3x4 hollow with opening on top", "32 Bronze Plated Bricks required" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return aActive ? FACING_ACTIVE : FACING_FRONT;
+ }
+ return FACING_SIDE;
+ }
+
+ public boolean isSteampowered()
+ {
+ return false;
+ }
+
+ public boolean isElectric()
+ {
+ return false;
+ }
+
+ public boolean isPneumatic()
+ {
+ return false;
+ }
+
+ public boolean isEnetInput()
+ {
+ return false;
+ }
+
+ public boolean isEnetOutput()
+ {
+ return false;
+ }
+
+ public boolean isInputFacing(byte aSide)
+ {
+ return false;
+ }
+
+ public boolean isOutputFacing(byte aSide)
+ {
+ return false;
+ }
+
+ public boolean isTeleporterCompatible()
+ {
+ return false;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean isAccessAllowed(EntityPlayer aPlayer)
+ {
+ return true;
+ }
+
+ public int getProgresstime()
+ {
+ return this.mProgresstime;
+ }
+
+ public int maxProgresstime()
+ {
+ return this.mMaxProgresstime;
+ }
+
+ public int increaseProgress(int aProgress)
+ {
+ this.mProgresstime += aProgress;return this.mMaxProgresstime - this.mProgresstime;
+ }
+
+ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aCoverID)
+ {
+ return (GregTech_API.getCoverBehavior(aCoverID.toStack()).isSimpleCover()) && (super.allowCoverOnSide(aSide, aCoverID));
+ }
+
+ public MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_BronzeBlastFurnace(this.mName);
+ }
+
+ public void saveNBTData(NBTTagCompound aNBT)
+ {
+ aNBT.setInteger("mProgresstime", this.mProgresstime);
+ aNBT.setInteger("mMaxProgresstime", this.mMaxProgresstime);
+ if (this.mOutputItem1 != null)
+ {
+ NBTTagCompound tNBT = new NBTTagCompound();
+ this.mOutputItem1.writeToNBT(tNBT);
+ aNBT.setTag("mOutputItem1", tNBT);
+ }
+ if (this.mOutputItem2 != null)
+ {
+ NBTTagCompound tNBT = new NBTTagCompound();
+ this.mOutputItem2.writeToNBT(tNBT);
+ aNBT.setTag("mOutputItem2", tNBT);
+ }
+ }
+
+ public void loadNBTData(NBTTagCompound aNBT)
+ {
+ this.mUpdate = 5;
+ this.mProgresstime = aNBT.getInteger("mProgresstime");
+ this.mMaxProgresstime = aNBT.getInteger("mMaxProgresstime");
+ this.mOutputItem1 = GT_Utility.loadItem(aNBT, "mOutputItem1");
+ this.mOutputItem2 = GT_Utility.loadItem(aNBT, "mOutputItem2");
+ }
+
+ public boolean onRightclick(IGregTechTileEntity aBaseMetaTileEntity, EntityPlayer aPlayer)
+ {
+ if (aBaseMetaTileEntity.isClientSide()) {
+ return true;
+ }
+ aBaseMetaTileEntity.openGUI(aPlayer);
+ return true;
+ }
+
+ public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_Container_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_BronzeBlastFurnace(aPlayerInventory, aBaseMetaTileEntity);
+ }
+
+ private boolean checkMachine()
+ {
+ int xDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(getBaseMetaTileEntity().getBackFacing()).offsetZ;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 3; j++) {
+ for (int k = -1; k < 2; k++) {
+ if ((xDir + i != 0) || (j != 0) || (zDir + k != 0)) {
+ if ((i != 0) || (j == -1) || (k != 0))
+ {
+ if ((getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k) != GregTech_API.sBlockCasings1) || (getBaseMetaTileEntity().getMetaIDOffset(xDir + i, j, zDir + k) != 10)) {
+ return false;
+ }
+ }
+ else if ((!GT_Utility.arrayContains(getBaseMetaTileEntity().getBlockOffset(xDir + i, j, zDir + k), new Object[] { Blocks.lava, Blocks.flowing_lava, null })) && (!getBaseMetaTileEntity().getAirOffset(xDir + i, j, zDir + k))) {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ return true;
+ }
+
+ public void onMachineBlockUpdate()
+ {
+ this.mUpdate = 5;
+ }
+
+ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTimer)
+ {
+ if ((aBaseMetaTileEntity.isClientSide()) &&
+ (aBaseMetaTileEntity.isActive())) {
+ aBaseMetaTileEntity.getWorld().spawnParticle("largesmoke", aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), aBaseMetaTileEntity.getOffsetY(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1) + Math.random(), 0.0D, 0.3D, 0.0D);
+ }
+ if (aBaseMetaTileEntity.isServerSide())
+ {
+ if (this.mUpdate-- == 0) {
+ this.mMachine = checkMachine();
+ }
+ if (this.mMachine) {
+ if (this.mMaxProgresstime > 0)
+ {
+ if (++this.mProgresstime >= this.mMaxProgresstime)
+ {
addOutputProducts();
-/* 228:153 */ this.mOutputItem1 = null;
-/* 229:154 */ this.mOutputItem2 = null;
-/* 230:155 */ this.mProgresstime = 0;
-/* 231:156 */ this.mMaxProgresstime = 0;
-/* 232: */ try{GT_Mod.instance.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "steel");}catch(Exception e){}
-/* 227:152 */ }
-/* 233: */ }
-/* 234:159 */ else if (aBaseMetaTileEntity.isAllowedToWork()) {
-/* 235:159 */ checkRecipe();
-/* 236: */ }
-/* 237: */ }
-/* 238:163 */ aBaseMetaTileEntity.setActive((this.mMaxProgresstime > 0) && (this.mMachine));
-/* 239:165 */ if (aBaseMetaTileEntity.isActive())
-/* 240: */ {
-/* 241:166 */ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
-/* 242: */ {
-/* 243:167 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
-/* 244:168 */ this.mUpdate = 1;
-/* 245: */ }
-/* 246:170 */ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
-/* 247: */ {
-/* 248:171 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
-/* 249:172 */ this.mUpdate = 1;
-/* 250: */ }
-/* 251: */ }
-/* 252: */ else
-/* 253: */ {
-/* 254:175 */ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
-/* 255: */ {
-/* 256:176 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
-/* 257:177 */ this.mUpdate = 1;
-/* 258: */ }
-/* 259:179 */ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
-/* 260: */ {
-/* 261:180 */ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
-/* 262:181 */ this.mUpdate = 1;
-/* 263: */ }
-/* 264: */ }
-/* 265: */ }
-/* 266: */ }
-/* 267: */
-/* 268: */ private void addOutputProducts()
-/* 269: */ {
-/* 270:188 */ if (this.mOutputItem1 != null) {
-/* 271:189 */ if (this.mInventory[2] == null) {
-/* 272:190 */ this.mInventory[2] = GT_Utility.copy(new Object[] { this.mOutputItem1 });
-/* 273:191 */ } else if (GT_Utility.areStacksEqual(this.mInventory[2], this.mOutputItem1)) {
-/* 274:192 */ this.mInventory[2].stackSize = Math.min(this.mOutputItem1.getMaxStackSize(), this.mOutputItem1.stackSize + this.mInventory[2].stackSize);
-/* 275: */ }
-/* 276: */ }
-/* 277:194 */ if (this.mOutputItem2 != null) {
-/* 278:195 */ if (this.mInventory[3] == null) {
-/* 279:196 */ this.mInventory[3] = GT_Utility.copy(new Object[] { this.mOutputItem2 });
-/* 280:197 */ } else if (GT_Utility.areStacksEqual(this.mInventory[3], this.mOutputItem2)) {
-/* 281:198 */ this.mInventory[3].stackSize = Math.min(this.mOutputItem2.getMaxStackSize(), this.mOutputItem2.stackSize + this.mInventory[3].stackSize);
-/* 282: */ }
-/* 283: */ }
-/* 284: */ }
-/* 285: */
-/* 286: */ private boolean spaceForOutput(ItemStack aStack1, ItemStack aStack2)
-/* 287: */ {
-/* 288:202 */ if (((this.mInventory[2] == null) || (aStack1 == null) || ((this.mInventory[2].stackSize + aStack1.stackSize <= this.mInventory[2].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[2], aStack1)))) && (
-/* 289:203 */ (this.mInventory[3] == null) || (aStack2 == null) || ((this.mInventory[3].stackSize + aStack2.stackSize <= this.mInventory[3].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[3], aStack2))))) {
-/* 290:204 */ return true;
-/* 291: */ }
-/* 292:205 */ return false;
-/* 293: */ }
-/* 294: */
-/* 295: */ private boolean checkRecipe()
-/* 296: */ {
-/* 297:209 */ if (!this.mMachine) {
-/* 298:209 */ return false;
-/* 299: */ }
-/* 300:211 */ if ((this.mInventory[0] != null) && (this.mInventory[1] != null) && (this.mInventory[0].stackSize >= 1)) {
-/* 301:212 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustIron")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "ingotIron")))
-/* 302: */ {
-/* 303:213 */ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L))))
-/* 304: */ {
-/* 305:214 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 306:215 */ getBaseMetaTileEntity().decrStackSize(1, 4);
-/* 307:216 */ this.mMaxProgresstime = 7200;
-/* 308:217 */ return true;
-/* 309: */ }
-/* 310:219 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 4L))))
-/* 311: */ {
-/* 312:220 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 313:221 */ getBaseMetaTileEntity().decrStackSize(1, 2);
-/* 314:222 */ this.mMaxProgresstime = 4800;
-/* 315:223 */ return true;
-/* 316: */ }
-/* 317:225 */ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
-/* 318: */ {
-/* 319:226 */ getBaseMetaTileEntity().decrStackSize(0, 9);
-/* 320:227 */ getBaseMetaTileEntity().decrStackSize(1, 4);
-/* 321:228 */ this.mMaxProgresstime = 64800;
-/* 322:229 */ return true;
-/* 323: */ }
-/* 324: */ }
-/* 325:231 */ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustSteel"))
-/* 326: */ {
-/* 327:232 */ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2L))))
-/* 328: */ {
-/* 329:233 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 330:234 */ getBaseMetaTileEntity().decrStackSize(1, 2);
-/* 331:235 */ this.mMaxProgresstime = 3600;
-/* 332:236 */ return true;
-/* 333: */ }
-/* 334:238 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 1) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 2L))))
-/* 335: */ {
-/* 336:239 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 337:240 */ getBaseMetaTileEntity().decrStackSize(1, 1);
-/* 338:241 */ this.mMaxProgresstime = 2400;
-/* 339:242 */ return true;
-/* 340: */ }
-/* 341:244 */ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 2L))))
-/* 342: */ {
-/* 343:245 */ getBaseMetaTileEntity().decrStackSize(0, 9);
-/* 344:246 */ getBaseMetaTileEntity().decrStackSize(1, 2);
-/* 345:247 */ this.mMaxProgresstime = 32400;
-/* 346:248 */ return true;
-/* 347: */ }
-/* 348: */ }
-/* 349:250 */ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "blockIron"))
-/* 350: */ {
-/* 351:251 */ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 36) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
-/* 352: */ {
-/* 353:252 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 354:253 */ getBaseMetaTileEntity().decrStackSize(1, 36);
-/* 355:254 */ this.mMaxProgresstime = 64800;
-/* 356:255 */ return true;
-/* 357: */ }
-/* 358:257 */ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 18) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4L))))
-/* 359: */ {
-/* 360:258 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 361:259 */ getBaseMetaTileEntity().decrStackSize(1, 18);
-/* 362:260 */ this.mMaxProgresstime = 43200;
-/* 363:261 */ return true;
-/* 364: */ }
-/* 365:263 */ if (((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
-/* 366: */ {
-/* 367:264 */ getBaseMetaTileEntity().decrStackSize(0, 1);
-/* 368:265 */ getBaseMetaTileEntity().decrStackSize(1, 4);
-/* 369:266 */ this.mMaxProgresstime = 64800;
-/* 370:267 */ return true;
-/* 371: */ }
-/* 372: */ }
-/* 373: */ }
-/* 374:272 */ this.mOutputItem1 = null;
-/* 375:273 */ this.mOutputItem2 = null;
-/* 376:274 */ return false;
-/* 377: */ }
-/* 378: */
-/* 379: */ public boolean isGivingInformation()
-/* 380: */ {
-/* 381:279 */ return false;
-/* 382: */ }
-/* 383: */
-/* 384: */ public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 385: */ {
-/* 386:284 */ return aIndex > 1;
-/* 387: */ }
-/* 388: */
-/* 389: */ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
-/* 390: */ {
-/* 391:289 */ if (aIndex < 2) {}
-/* 392:289 */ return !GT_Utility.areStacksEqual(aStack, this.mInventory[0]);
-/* 393: */ }
-/* 394: */
-/* 395: */ public byte getTileEntityBaseType()
-/* 396: */ {
-/* 397:294 */ return 0;
-/* 398: */ }
-/* 399: */ }
+ this.mOutputItem1 = null;
+ this.mOutputItem2 = null;
+ this.mProgresstime = 0;
+ this.mMaxProgresstime = 0;
+ try{GT_Mod.instance.achievements.issueAchievement(aBaseMetaTileEntity.getWorld().getPlayerEntityByName(aBaseMetaTileEntity.getOwnerName()), "steel");}catch(Exception e){}
+ }
+ }
+ else if (aBaseMetaTileEntity.isAllowedToWork()) {
+ checkRecipe();
+ }
+ }
+ aBaseMetaTileEntity.setActive((this.mMaxProgresstime > 0) && (this.mMachine));
+ if (aBaseMetaTileEntity.isActive())
+ {
+ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
+ this.mUpdate = 1;
+ }
+ if (aBaseMetaTileEntity.getAir(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)))
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.lava, 1, 2);
+ this.mUpdate = 1;
+ }
+ }
+ else
+ {
+ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord(), aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
+ this.mUpdate = 1;
+ }
+ if (aBaseMetaTileEntity.getBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1)) == Blocks.lava)
+ {
+ aBaseMetaTileEntity.getWorld().setBlock(aBaseMetaTileEntity.getOffsetX(aBaseMetaTileEntity.getBackFacing(), 1), aBaseMetaTileEntity.getYCoord() + 1, aBaseMetaTileEntity.getOffsetZ(aBaseMetaTileEntity.getBackFacing(), 1), Blocks.air, 0, 2);
+ this.mUpdate = 1;
+ }
+ }
+ }
+ }
+
+ private void addOutputProducts()
+ {
+ if (this.mOutputItem1 != null) {
+ if (this.mInventory[2] == null) {
+ this.mInventory[2] = GT_Utility.copy(new Object[] { this.mOutputItem1 });
+ } else if (GT_Utility.areStacksEqual(this.mInventory[2], this.mOutputItem1)) {
+ this.mInventory[2].stackSize = Math.min(this.mOutputItem1.getMaxStackSize(), this.mOutputItem1.stackSize + this.mInventory[2].stackSize);
+ }
+ }
+ if (this.mOutputItem2 != null) {
+ if (this.mInventory[3] == null) {
+ this.mInventory[3] = GT_Utility.copy(new Object[] { this.mOutputItem2 });
+ } else if (GT_Utility.areStacksEqual(this.mInventory[3], this.mOutputItem2)) {
+ this.mInventory[3].stackSize = Math.min(this.mOutputItem2.getMaxStackSize(), this.mOutputItem2.stackSize + this.mInventory[3].stackSize);
+ }
+ }
+ }
+
+ private boolean spaceForOutput(ItemStack aStack1, ItemStack aStack2)
+ {
+ if (((this.mInventory[2] == null) || (aStack1 == null) || ((this.mInventory[2].stackSize + aStack1.stackSize <= this.mInventory[2].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[2], aStack1)))) && (
+ (this.mInventory[3] == null) || (aStack2 == null) || ((this.mInventory[3].stackSize + aStack2.stackSize <= this.mInventory[3].getMaxStackSize()) && (GT_Utility.areStacksEqual(this.mInventory[3], aStack2))))) {
+ return true;
+ }
+ return false;
+ }
+
+ private boolean checkRecipe()
+ {
+ if (!this.mMachine) {
+ return false;
+ }
+ if ((this.mInventory[0] != null) && (this.mInventory[1] != null) && (this.mInventory[0].stackSize >= 1)) {
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustIron")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "ingotIron")))
+ {
+ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 4);
+ this.mMaxProgresstime = 7200;
+ return true;
+ }
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 2);
+ this.mMaxProgresstime = 4800;
+ return true;
+ }
+ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 9);
+ getBaseMetaTileEntity().decrStackSize(1, 4);
+ this.mMaxProgresstime = 64800;
+ return true;
+ }
+ }
+ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "dustSteel"))
+ {
+ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.DarkAsh, 2L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 2);
+ this.mMaxProgresstime = 3600;
+ return true;
+ }
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 1) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 1L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dustTiny, Materials.Ash, 2L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 1);
+ this.mMaxProgresstime = 2400;
+ return true;
+ }
+ if ((this.mInventory[0].stackSize >= 9) && ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 2) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 2L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 9);
+ getBaseMetaTileEntity().decrStackSize(1, 2);
+ this.mMaxProgresstime = 32400;
+ return true;
+ }
+ }
+ else if (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[0], "blockIron"))
+ {
+ if ((this.mInventory[1].getItem() == Items.coal) && (this.mInventory[1].stackSize >= 36) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 36);
+ this.mMaxProgresstime = 64800;
+ return true;
+ }
+ if ((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "fuelCoke")) && (this.mInventory[1].stackSize >= 18) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.Ash, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 18);
+ this.mMaxProgresstime = 43200;
+ return true;
+ }
+ if (((GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCoal")) || (GT_OreDictUnificator.isItemStackInstanceOf(this.mInventory[1], "blockCharcoal"))) && (this.mInventory[1].stackSize >= 4) && (spaceForOutput(this.mOutputItem1 = GT_OreDictUnificator.get(OrePrefixes.ingot, Materials.Steel, 9L), this.mOutputItem2 = GT_OreDictUnificator.get(OrePrefixes.dust, Materials.DarkAsh, 4L))))
+ {
+ getBaseMetaTileEntity().decrStackSize(0, 1);
+ getBaseMetaTileEntity().decrStackSize(1, 4);
+ this.mMaxProgresstime = 64800;
+ return true;
+ }
+ }
+ }
+ this.mOutputItem1 = null;
+ this.mOutputItem2 = null;
+ return false;
+ }
+
+ public boolean isGivingInformation()
+ {
+ return false;
+ }
+
+ public boolean allowPullStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ return aIndex > 1;
+ }
+
+ public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack)
+ {
+ if (aIndex < 2) {}
+ return !GT_Utility.areStacksEqual(aStack, this.mInventory[0]);
+ }
+
+ public byte getTileEntityBaseType()
+ {
+ return 0;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java index c04a61d8bb..c48a2793bf 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_DistillationTower.java @@ -1,147 +1,147 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi; -/* 2: */ -/* 3: */ import gregtech.api.GregTech_API; +package gregtech.common.tileentities.machines.multi; + +import gregtech.api.GregTech_API; import gregtech.api.enums.Textures; -/* 4: */ import gregtech.api.enums.Textures.BlockIcons; -/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine; -/* 6: */ import gregtech.api.interfaces.ITexture; -/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity; -/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.enums.Textures.BlockIcons; +import gregtech.api.gui.GT_GUIContainer_MultiMachine; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.metatileentity.IMetaTileEntity; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Output; -/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase; -/* 10: */ import gregtech.api.objects.GT_RenderedTexture; -/* 11: */ import gregtech.api.util.GT_Recipe; -/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map; -/* 13: */ import gregtech.api.util.GT_Utility; +import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase; +import gregtech.api.objects.GT_RenderedTexture; +import gregtech.api.util.GT_Recipe; +import gregtech.api.util.GT_Recipe.GT_Recipe_Map; +import gregtech.api.util.GT_Utility; -/* 14: */ import java.util.ArrayList; +import java.util.ArrayList; import net.minecraft.block.Block; -/* 15: */ import net.minecraft.entity.player.InventoryPlayer; -/* 16: */ import net.minecraft.item.ItemStack; -/* 17: */ import net.minecraftforge.common.util.ForgeDirection; +import net.minecraft.entity.player.InventoryPlayer; +import net.minecraft.item.ItemStack; +import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.fluids.FluidStack; -/* 18: */ -/* 19: */ public class GT_MetaTileEntity_DistillationTower -/* 20: */ extends GT_MetaTileEntity_MultiBlockBase -/* 21: */ { -/* 22: */ public GT_MetaTileEntity_DistillationTower(int aID, String aName, String aNameRegional) -/* 23: */ { -/* 24: 24 */ super(aID, aName, aNameRegional); -/* 25: */ } -/* 26: */ -/* 27: */ public GT_MetaTileEntity_DistillationTower(String aName) -/* 28: */ { -/* 29: 28 */ super(aName); -/* 30: */ } -/* 31: */ -/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) -/* 33: */ { -/* 34: 33 */ return new GT_MetaTileEntity_DistillationTower(this.mName); -/* 35: */ } -/* 36: */ -/* 37: */ public String[] getDescription() -/* 38: */ { -/* 39: 38 */ return new String[] { "Controller Block for the Distillation Tower", "Size: 3x6x3 (Hollow)", "Controller (front bottom)", "1x Input Hatch (bottom)", "5x Output Hatch (one each height level besides botton)","1x Output Bus (Botton)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Clean Stainless Steel Casings for the rest (26 at least!)" }; -/* 40: */ } -/* 41: */ -/* 42: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) -/* 43: */ { -/* 44: 43 */ if (aSide == aFacing) { -/* 45: 43 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) }; -/* 46: */ } -/* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49] }; -/* 48: */ } -/* 49: */ -/* 50: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) -/* 51: */ { -/* 52: 49 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); -/* 53: */ } -/* 54: */ -/* 55: */ public GT_Recipe.GT_Recipe_Map getRecipeMap() -/* 56: */ { -/* 57: 54 */ return GT_Recipe.GT_Recipe_Map.sDistillationRecipes; -/* 58: */ } -/* 59: */ -/* 60: */ public boolean isCorrectMachinePart(ItemStack aStack) -/* 61: */ { -/* 62: 59 */ return true; -/* 63: */ } -/* 64: */ -/* 65: */ public boolean isFacingValid(byte aFacing) -/* 66: */ { -/* 67: 62 */ return aFacing > 1; -/* 68: */ } -/* 69: */ -/* 70: */ public boolean checkRecipe(ItemStack aStack) -/* 71: */ { -/* 72: 66 */ -/* 75: 69 */ long tVoltage = getMaxInputVoltage(); -/* 76: 70 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage)); -/* 77: */ if(this.mInputHatches.size()>0&&this.mInputHatches.get(0)!=null&&this.mInputHatches.get(0).mFluid!=null&&this.mInputHatches.get(0).mFluid.amount>0){ -/* 78: 72 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistillationRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {}); -/* 79: 73 */ if (tRecipe != null) { -/* 80: 73 */ if (tRecipe.isRecipeInputEqual(true, new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {})) -/* 81: */ { -/* 82: 74 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); -/* 83: 75 */ this.mEfficiencyIncrease = 10000; -/* 84: 77 */ if (tRecipe.mEUt <= 16) -/* 85: */ { -/* 86: 78 */ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1)); -/* 87: 79 */ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1)); -/* 88: */ } -/* 89: */ else -/* 90: */ { -/* 91: 81 */ this.mEUt = tRecipe.mEUt; -/* 92: 82 */ this.mMaxProgresstime = tRecipe.mDuration; -/* 93: 83 */ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) -/* 94: */ { -/* 95: 84 */ this.mEUt *= 4; -/* 96: 85 */ this.mMaxProgresstime /= 2; -/* 97: */ } -/* 98: */ } -/* 99: 89 */ if (this.mEUt > 0) { -/* 100: 89 */ this.mEUt = (-this.mEUt); -/* 101: */ } -/* 102: 90 */ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime); -/* 103: 91 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) }; + +public class GT_MetaTileEntity_DistillationTower + extends GT_MetaTileEntity_MultiBlockBase +{ + public GT_MetaTileEntity_DistillationTower(int aID, String aName, String aNameRegional) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_DistillationTower(String aName) + { + super(aName); + } + + public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_DistillationTower(this.mName); + } + + public String[] getDescription() + { + return new String[] { "Controller Block for the Distillation Tower", "Size: 3x6x3 (Hollow)", "Controller (front bottom)", "1x Input Hatch (bottom)", "5x Output Hatch (one each height level besides botton)","1x Output Bus (Botton)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Clean Stainless Steel Casings for the rest (26 at least!)" }; + } + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { + if (aSide == aFacing) { + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) }; + } + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[49] }; + } + + public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) + { + return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); + } + + public GT_Recipe.GT_Recipe_Map getRecipeMap() + { + return GT_Recipe.GT_Recipe_Map.sDistillationRecipes; + } + + public boolean isCorrectMachinePart(ItemStack aStack) + { + return true; + } + + public boolean isFacingValid(byte aFacing) + { + return aFacing > 1; + } + + public boolean checkRecipe(ItemStack aStack) + { + + long tVoltage = getMaxInputVoltage(); + byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage)); + if(this.mInputHatches.size()>0&&this.mInputHatches.get(0)!=null&&this.mInputHatches.get(0).mFluid!=null&&this.mInputHatches.get(0).mFluid.amount>0){ + GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sDistillationRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {}); + if (tRecipe != null) { + if (tRecipe.isRecipeInputEqual(true, new FluidStack[]{this.mInputHatches.get(0).mFluid}, new ItemStack[] {})) + { + this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000); + this.mEfficiencyIncrease = 10000; + if (tRecipe.mEUt <= 16) + { + this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1)); + this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1)); + } + else + { + this.mEUt = tRecipe.mEUt; + this.mMaxProgresstime = tRecipe.mDuration; + while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) + { + this.mEUt *= 4; + this.mMaxProgresstime /= 2; + } + } + if (this.mEUt > 0) { + this.mEUt = (-this.mEUt); + } + this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime); + this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) }; this.mOutputFluids = tRecipe.mFluidOutputs; -/* 104: 92 */ updateSlots(); -/* 105: 93 */ return true; -/* 106: */ } -/* 107: */ }} -/* 108: */ -/* 109: 96 */ return false; -/* 110: */ } -/* 111: */ private static boolean controller; -/* 112: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) -/* 113: */ { -/* 114:101 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; -/* 115:103 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) { -/* 116:103 */ return false; -/* 117: */ } -/* 118:105 */ int tAmount = 0; + updateSlots(); + return true; + } + }} + + return false; + } + private static boolean controller; + public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) + { + int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; + if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) { + return false; + } + int tAmount = 0; controller=false; -/* 119:107 */ for (int i = -1; i < 2; i++) { -/* 120:107 */ for (int j = -1; j < 2; j++) { -/* 121:107 */ for (int h = 0; h < 6; h++) { -/* 122:107 */ if (!(i==0&&j==0&&(h>0&&h<5)))//((h > 0)&&(h<5)) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))) -/* 123: */ { -/* 124:108 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); -/* 125:109 */ if ((!addMaintenanceToMachineList(tTileEntity, 49)) && (!addInputToMachineList(tTileEntity, 49)) && (!addOutputToMachineList(tTileEntity, 49)) && (!addEnergyInputToMachineList(tTileEntity, 49))&&(!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j)))) -/* 126: */ { -/* 127:110 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { -/* 128:110 */ return false; -/* 129: */ } + for (int i = -1; i < 2; i++) { + for (int j = -1; j < 2; j++) { + for (int h = 0; h < 6; h++) { + if (!(i==0&&j==0&&(h>0&&h<5)))//((h > 0)&&(h<5)) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))) + { + IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); + if ((!addMaintenanceToMachineList(tTileEntity, 49)) && (!addInputToMachineList(tTileEntity, 49)) && (!addOutputToMachineList(tTileEntity, 49)) && (!addEnergyInputToMachineList(tTileEntity, 49))&&(!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j)))) + { + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { + return false; + } if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 1) { -/* 131:111 */ return false; -/* 132: */ } -/* 133:112 */ tAmount++; -/* 134: */ } -/* 135: */ } -/* 136: */ } -/* 137: */ } -/* 138: */ } + return false; + } + tAmount++; + } + } + } + } + } if(this.mInputHatches.size()!=1||this.mOutputBusses.size()!=1||this.mInputBusses.size()!=0||this.mOutputHatches.size()!=5){return false;} int height = this.getBaseMetaTileEntity().getYCoord(); if(this.mInputHatches.get(0).getBaseMetaTileEntity().getYCoord()!=height||this.mOutputBusses.get(0).getBaseMetaTileEntity().getYCoord()!=height){return false;} @@ -152,36 +152,36 @@ import net.minecraftforge.fluids.FluidStack; tmpHatches[hatchNumber]=this.mOutputHatches.get(i); }else{return false;} } -/* 139:116 */ return tAmount >= 26; -/* 140: */ } + return tAmount >= 26; + } public boolean ignoreController(Block tTileEntity){ if(!controller&&tTileEntity == GregTech_API.sBlockMachines){return true;} return false; } -/* 141: */ -/* 142: */ public int getMaxEfficiency(ItemStack aStack) -/* 143: */ { -/* 144:121 */ return 10000; -/* 145: */ } -/* 146: */ -/* 147: */ public int getPollutionPerTick(ItemStack aStack) -/* 148: */ { -/* 149:126 */ return 0; -/* 150: */ } -/* 151: */ -/* 152: */ public int getDamageToComponent(ItemStack aStack) -/* 153: */ { -/* 154:131 */ return 0; -/* 155: */ } -/* 156: */ -/* 157: */ public int getAmountOfOutputs() -/* 158: */ { -/* 159:136 */ return 1; -/* 160: */ } -/* 161: */ -/* 162: */ public boolean explodesOnComponentBreak(ItemStack aStack) -/* 163: */ { -/* 164:141 */ return false; -/* 165: */ } -/* 166: */ }
\ No newline at end of file + + public int getMaxEfficiency(ItemStack aStack) + { + return 10000; + } + + public int getPollutionPerTick(ItemStack aStack) + { + return 0; + } + + public int getDamageToComponent(ItemStack aStack) + { + return 0; + } + + public int getAmountOfOutputs() + { + return 1; + } + + public boolean explodesOnComponentBreak(ItemStack aStack) + { + return false; + } +}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java index b8ef002bd9..5c6df03c1e 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ElectricBlastFurnace.java @@ -1,246 +1,246 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
+import java.util.Arrays;
-/* 14: */ import java.util.ArrayList;
-/* 15: */ import java.util.Arrays;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
-/* 16: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 17: */ import net.minecraft.item.ItemStack;
-/* 18: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 19: */ import net.minecraftforge.fluids.FluidStack;
-/* 20: */
-/* 21: */ public class GT_MetaTileEntity_ElectricBlastFurnace
-/* 22: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 23: */ {
-/* 24: 25 */ private int mHeatingCapacity = 0;
-/* 25: */
-/* 26: */ public GT_MetaTileEntity_ElectricBlastFurnace(int aID, String aName, String aNameRegional)
-/* 27: */ {
-/* 28: 28 */ super(aID, aName, aNameRegional);
-/* 29: */ }
-/* 30: */
-/* 31: */ public GT_MetaTileEntity_ElectricBlastFurnace(String aName)
-/* 32: */ {
-/* 33: 32 */ super(aName);
-/* 34: */ }
-/* 35: */
-/* 36: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 37: */ {
-/* 38: 37 */ return new GT_MetaTileEntity_ElectricBlastFurnace(this.mName);
-/* 39: */ }
-/* 40: */
-/* 41: */ public String[] getDescription()
-/* 42: */ {
-/* 43: 42 */ return new String[] { "Controller Block for the Blast Furnace", "Size: 3x3x4 (Hollow)", "Controller (front middle at bottom)", "16x Heating Coils (two middle Layers, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
-/* 44: */ }
-/* 45: */
-/* 46: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 47: */ {
-/* 48: 47 */ if (aSide == aFacing) {
-/* 49: 47 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE) };
-/* 50: */ }
-/* 51: 48 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
-/* 52: */ }
-/* 53: */
-/* 54: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 55: */ {
-/* 56: 53 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ElectricBlastFurnace.png");
-/* 57: */ }
-/* 58: */
-/* 59: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 60: */ {
-/* 61: 58 */ return GT_Recipe.GT_Recipe_Map.sBlastRecipes;
-/* 62: */ }
-/* 63: */
-/* 64: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 65: */ {
-/* 66: 63 */ return true;
-/* 67: */ }
-/* 68: */
-/* 69: */ public boolean isFacingValid(byte aFacing)
-/* 70: */ {
-/* 71: 66 */ return aFacing > 1;
-/* 72: */ }
-/* 73: */
-/* 74: */ public boolean checkRecipe(ItemStack aStack)
-/* 75: */ {
-/* 76: 70 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 77: 71 */ for (int i = 0; i < tInputList.size() - 1; i++) {
-/* 78: 71 */ for (int j = i + 1; j < tInputList.size(); j++) {
-/* 79: 72 */ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
-/* 80: 73 */ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
-/* 81: */ {
-/* 82: 73 */ tInputList.remove(j--);
-/* 83: */ }
-/* 84: */ else
-/* 85: */ {
-/* 86: 73 */ tInputList.remove(i--); break;
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90: */ }
-/* 91: 76 */ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
-/* 92: */
-/* 93: 78 */ ArrayList<FluidStack> tFluidList = getStoredFluids();
-/* 94: 79 */ for (int i = 0; i < tFluidList.size() - 1; i++) {
-/* 95: 79 */ for (int j = i + 1; j < tFluidList.size(); j++) {
-/* 96: 80 */ if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) {
-/* 97: 81 */ if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount)
-/* 98: */ {
-/* 99: 81 */ tFluidList.remove(j--);
-/* 100: */ }
-/* 101: */ else
-/* 102: */ {
-/* 103: 81 */ tFluidList.remove(i--); break;
-/* 104: */ }
-/* 105: */ }
-/* 106: */ }
-/* 107: */ }
-/* 108: 84 */ FluidStack[] tFluids = (FluidStack[])Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tInputList.size()]), 0, 1);
-/* 109: 86 */ if (tInputList.size() > 0)
-/* 110: */ {
-/* 111: 87 */ long tVoltage = getMaxInputVoltage();
-/* 112: 88 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
-/* 113: 89 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBlastRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs);
-/* 114: 91 */ if ((tRecipe != null) && (this.mHeatingCapacity >= tRecipe.mSpecialValue) && (tRecipe.isRecipeInputEqual(true, tFluids, tInputs)))
-/* 115: */ {
-/* 116: 92 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 117: 93 */ this.mEfficiencyIncrease = 10000;
-/* 118: 95 */ if (tRecipe.mEUt <= 16)
-/* 119: */ {
-/* 120: 96 */ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
-/* 121: 97 */ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
-/* 122: */ }
-/* 123: */ else
-/* 124: */ {
-/* 125: 99 */ this.mEUt = tRecipe.mEUt;
-/* 126:100 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 127:101 */ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
-/* 128: */ {
-/* 129:102 */ this.mEUt *= 4;
-/* 130:103 */ this.mMaxProgresstime /= 2;
-/* 131: */ }
-/* 132: */ }
-/* 133:107 */ if (this.mEUt > 0) {
-/* 134:107 */ this.mEUt = (-this.mEUt);
-/* 135: */ }
-/* 136:108 */ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
-/* 137:109 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
-/* 138:110 */ updateSlots();
-/* 139:111 */ return true;
-/* 140: */ }
-/* 141: */ }
-/* 142:114 */ return false;
-/* 143: */ }
-/* 144: */
-/* 145: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 146: */ {
-/* 147:119 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 148: */
-/* 149:121 */ this.mHeatingCapacity = 0;
-/* 150:123 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
-/* 151:123 */ return false;
-/* 152: */ }
-/* 153:124 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 2, zDir)) {
-/* 154:124 */ return false;
-/* 155: */ }
-/* 156:126 */ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 3, zDir), 11);
-/* 157: */
-/* 158:128 */ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 2, zDir);
-/* 159:130 */ switch (tUsedMeta)
-/* 160: */ {
-/* 161: */ case 12:
-/* 162:131 */ this.mHeatingCapacity = 1800; break;
-/* 163: */ case 13:
-/* 164:132 */ this.mHeatingCapacity = 2700; break;
-/* 165: */ case 14:
-/* 166:133 */ this.mHeatingCapacity = 3600; break;
-/* 167: */ default:
-/* 168:134 */ return false;
-/* 169: */ }
-/* 170:137 */ for (int i = -1; i < 2; i++) {
-/* 171:137 */ for (int j = -1; j < 2; j++) {
-/* 172:137 */ if ((i != 0) || (j != 0))
-/* 173: */ {
-/* 174:138 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 175:138 */ return false;
-/* 176: */ }
-/* 177:139 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != tUsedMeta) {
-/* 178:139 */ return false;
-/* 179: */ }
-/* 180:140 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 181:140 */ return false;
-/* 182: */ }
-/* 183:141 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
-/* 184:141 */ return false;
-/* 185: */ }
-/* 186:142 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 3, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 187:142 */ return false;
-/* 188: */ }
-/* 189:143 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 3, zDir + j) != 11) {
-/* 190:143 */ return false;
-/* 191: */ }
-/* 192: */ }
-/* 193: */ }
-/* 194: */ }
-/* 195:146 */ for (int i = -1; i < 2; i++) {
-/* 196:146 */ for (int j = -1; j < 2; j++) {
-/* 197:146 */ if ((xDir + i != 0) || (zDir + j != 0))
-/* 198: */ {
-/* 199:147 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
-/* 200:148 */ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
-/* 201: */ {
-/* 202:149 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 203:149 */ return false;
-/* 204: */ }
-/* 205:150 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
-/* 206:150 */ return false;
-/* 207: */ }
-/* 208: */ }
-/* 209: */ }
-/* 210: */ }
-/* 211: */ }
-/* 212:154 */ this.mHeatingCapacity += 100 * (GT_Utility.getTier(getMaxInputVoltage()) - 2);
-/* 213:155 */ return true;
-/* 214: */ }
-/* 215: */
-/* 216: */ public int getMaxEfficiency(ItemStack aStack)
-/* 217: */ {
-/* 218:160 */ return 10000;
-/* 219: */ }
-/* 220: */
-/* 221: */ public int getPollutionPerTick(ItemStack aStack)
-/* 222: */ {
-/* 223:165 */ return 10;
-/* 224: */ }
-/* 225: */
-/* 226: */ public int getDamageToComponent(ItemStack aStack)
-/* 227: */ {
-/* 228:170 */ return 0;
-/* 229: */ }
-/* 230: */
-/* 231: */ public int getAmountOfOutputs()
-/* 232: */ {
-/* 233:175 */ return 2;
-/* 234: */ }
-/* 235: */
-/* 236: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 237: */ {
-/* 238:180 */ return false;
-/* 239: */ }
-/* 240: */ }
+public class GT_MetaTileEntity_ElectricBlastFurnace
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ private int mHeatingCapacity = 0;
+
+ public GT_MetaTileEntity_ElectricBlastFurnace(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_ElectricBlastFurnace(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ElectricBlastFurnace(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Blast Furnace", "Size: 3x3x4 (Hollow)", "Controller (front middle at bottom)", "16x Heating Coils (two middle Layers, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_ELECTRIC_BLAST_FURNACE) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ElectricBlastFurnace.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sBlastRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ for (int i = 0; i < tInputList.size() - 1; i++) {
+ for (int j = i + 1; j < tInputList.size(); j++) {
+ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
+ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
+ {
+ tInputList.remove(j--);
+ }
+ else
+ {
+ tInputList.remove(i--); break;
+ }
+ }
+ }
+ }
+ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
+
+ ArrayList<FluidStack> tFluidList = getStoredFluids();
+ for (int i = 0; i < tFluidList.size() - 1; i++) {
+ for (int j = i + 1; j < tFluidList.size(); j++) {
+ if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) {
+ if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount)
+ {
+ tFluidList.remove(j--);
+ }
+ else
+ {
+ tFluidList.remove(i--); break;
+ }
+ }
+ }
+ }
+ FluidStack[] tFluids = (FluidStack[])Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tInputList.size()]), 0, 1);
+ if (tInputList.size() > 0)
+ {
+ long tVoltage = getMaxInputVoltage();
+ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sBlastRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs);
+ if ((tRecipe != null) && (this.mHeatingCapacity >= tRecipe.mSpecialValue) && (tRecipe.isRecipeInputEqual(true, tFluids, tInputs)))
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
+ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
+ }
+ else
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = tRecipe.mDuration;
+ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
+ {
+ this.mEUt *= 4;
+ this.mMaxProgresstime /= 2;
+ }
+ }
+ if (this.mEUt > 0) {
+ this.mEUt = (-this.mEUt);
+ }
+ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
+ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
+ updateSlots();
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+
+ this.mHeatingCapacity = 0;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
+ return false;
+ }
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 2, zDir)) {
+ return false;
+ }
+ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 3, zDir), 11);
+
+ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 2, zDir);
+ switch (tUsedMeta)
+ {
+ case 12:
+ this.mHeatingCapacity = 1800; break;
+ case 13:
+ this.mHeatingCapacity = 2700; break;
+ case 14:
+ this.mHeatingCapacity = 3600; break;
+ default:
+ return false;
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((i != 0) || (j != 0))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != tUsedMeta) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 3, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 3, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((xDir + i != 0) || (zDir + j != 0))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ this.mHeatingCapacity += 100 * (GT_Utility.getTier(getMaxInputVoltage()) - 2);
+ return true;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 10;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 2;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java index aedeeac45d..ef34923e27 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_FusionComputer.java @@ -1,6 +1,6 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi; -/* 2: */ -/* 3: */ import java.util.ArrayList; +package gregtech.common.tileentities.machines.multi; + +import java.util.ArrayList; import java.util.Arrays; import gregtech.GT_Mod; @@ -9,46 +9,46 @@ import gregtech.api.enums.Dyes; import gregtech.api.enums.Textures; import gregtech.api.gui.GT_Container_MultiMachine; import gregtech.api.gui.GT_GUIContainer_MultiMachine; -/* 4: */ import gregtech.api.interfaces.ITexture; -/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity; -/* 6: */ import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.interfaces.ITexture; +import gregtech.api.interfaces.tileentity.IGregTechTileEntity; +import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Energy; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Input; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_Hatch_Maintenance; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase; -/* 7: */ import gregtech.api.objects.GT_ItemStack; +import gregtech.api.objects.GT_ItemStack; import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; import gregtech.api.metatileentity.implementations.*; import gregtech.common.gui.GT_GUIContainer_FusionReactor; import net.minecraft.block.Block; -/* 8: */ import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.InventoryPlayer; -/* 9: */ import net.minecraft.item.ItemStack; -/* 10: */ import net.minecraft.nbt.NBTTagCompound; -/* 11: */ import net.minecraftforge.common.util.ForgeDirection; +import net.minecraft.item.ItemStack; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.fluids.FluidStack; -/* 12: */ -/* 13: */ public abstract class GT_MetaTileEntity_FusionComputer -/* 14: */ extends GT_MetaTileEntity_MultiBlockBase -/* 15: */ { + +public abstract class GT_MetaTileEntity_FusionComputer + extends GT_MetaTileEntity_MultiBlockBase +{ public GT_Recipe mLastRecipe; public int mEUStore; -/* 16: */ public GT_MetaTileEntity_FusionComputer(int aID, String aName, String aNameRegional, int tier) -/* 17: */ { -/* 18: 16 */ super(aID, aName, aNameRegional); -/* 19: */ } -/* 20: */ -/* 21: */ public GT_MetaTileEntity_FusionComputer(String aName) -/* 22: */ { -/* 23: 20 */ super(aName); -/* 24: */ } -/* 30: */ public abstract int tier(); -/* 40: */ -/* 41: */ public abstract long maxEUStore(); -/* 50: */ + public GT_MetaTileEntity_FusionComputer(int aID, String aName, String aNameRegional, int tier) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_FusionComputer(String aName) + { + super(aName); + } + public abstract int tier(); + + public abstract long maxEUStore(); + @Override public Object getServerGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) { return new GT_Container_MultiMachine(aPlayerInventory, aBaseMetaTileEntity); @@ -58,81 +58,81 @@ import net.minecraftforge.fluids.FluidStack; public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) { return new GT_GUIContainer_FusionReactor(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "FusionComputer.png"); } -/* 56: */ -/* 57: */ public abstract MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity); -/* 61: */ -/* 62: */ public boolean allowCoverOnSide(byte aSide, GT_ItemStack aStack) -/* 63: */ { -/* 64: 42 */ return aSide != getBaseMetaTileEntity().getFrontFacing(); -/* 65: */ } -/* 66: */ -/* 67: */ public void saveNBTData(NBTTagCompound aNBT) { + + public abstract MetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity); + + public boolean allowCoverOnSide(byte aSide, GT_ItemStack aStack) + { + return aSide != getBaseMetaTileEntity().getFrontFacing(); + } + + public void saveNBTData(NBTTagCompound aNBT) { super.saveNBTData(aNBT); } -/* 68: */ -/* 69: */ public void loadNBTData(NBTTagCompound aNBT) { + + public void loadNBTData(NBTTagCompound aNBT) { super.loadNBTData(aNBT); } -/* 70: */ -/* 71: */ @Override + + @Override public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity,ItemStack aStack) { -/* 73: 57 */ int xCenter = getBaseMetaTileEntity().getXCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetX * 5;int yCenter = getBaseMetaTileEntity().getYCoord();int zCenter = getBaseMetaTileEntity().getZCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetZ * 5; -/* 74: 59 */ if (((isAdvancedMachineCasing(xCenter + 5, yCenter, zCenter)) || (xCenter + 5 == getBaseMetaTileEntity().getXCoord())) && -/* 75: 60 */ ((isAdvancedMachineCasing(xCenter - 5, yCenter, zCenter)) || (xCenter - 5 == getBaseMetaTileEntity().getXCoord())) && -/* 76: 61 */ ((isAdvancedMachineCasing(xCenter, yCenter, zCenter + 5)) || (zCenter + 5 == getBaseMetaTileEntity().getZCoord())) && -/* 77: 62 */ ((isAdvancedMachineCasing(xCenter, yCenter, zCenter - 5)) || (zCenter - 5 == getBaseMetaTileEntity().getZCoord())) && -/* 78: 63 */ (checkCoils(xCenter, yCenter, zCenter)) && -/* 79: 64 */ (checkHulls(xCenter, yCenter, zCenter)) && -/* 80: 65 */ (checkUpperOrLowerHulls(xCenter, yCenter + 1, zCenter)) && -/* 81: 66 */ (checkUpperOrLowerHulls(xCenter, yCenter - 1, zCenter)) && -/* 82: 67 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && -/* 83: 68 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && -/* 84: 69 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 85: 70 */ (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 86: 71 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && -/* 87: 72 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && -/* 88: 73 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 89: 74 */ (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 90: 75 */ (addIfEnergyInjector(xCenter + 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 91: 76 */ (addIfEnergyInjector(xCenter - 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 92: 77 */ (addIfEnergyInjector(xCenter + 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 93: 78 */ (addIfEnergyInjector(xCenter - 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && -/* 94: 79 */ (addIfEnergyInjector(xCenter + 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 95: 80 */ (addIfEnergyInjector(xCenter - 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 96: 81 */ (addIfEnergyInjector(xCenter + 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 97: 82 */ (addIfEnergyInjector(xCenter - 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && -/* 98: 83 */ (addIfExtractor(xCenter + 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 99: 84 */ (addIfExtractor(xCenter + 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 100: 85 */ (addIfExtractor(xCenter - 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && -/* 101: 86 */ (addIfExtractor(xCenter - 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && -/* 102: 87 */ (addIfExtractor(xCenter + 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && -/* 103: 88 */ (addIfExtractor(xCenter + 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && -/* 104: 89 */ (addIfExtractor(xCenter - 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && -/* 105: 90 */ (addIfExtractor(xCenter - 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && -/* 106: 91 */ (addIfExtractor(xCenter + 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 107: 92 */ (addIfExtractor(xCenter + 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 108: 93 */ (addIfExtractor(xCenter - 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 109: 94 */ (addIfExtractor(xCenter - 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 110: 95 */ (addIfExtractor(xCenter + 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 111: 96 */ (addIfExtractor(xCenter + 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 112: 97 */ (addIfExtractor(xCenter - 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && -/* 113: 98 */ (addIfExtractor(xCenter - 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && -/* 114: 99 */ (addIfInjector(xCenter + 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 115:100 */ (addIfInjector(xCenter + 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 116:101 */ (addIfInjector(xCenter - 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 117:102 */ (addIfInjector(xCenter - 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 118:103 */ (addIfInjector(xCenter - 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 119:104 */ (addIfInjector(xCenter + 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 120:105 */ (addIfInjector(xCenter - 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && -/* 121:106 */ (addIfInjector(xCenter + 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && -/* 122:107 */ (addIfInjector(xCenter + 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 123:108 */ (addIfInjector(xCenter + 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 124:109 */ (addIfInjector(xCenter - 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && -/* 125:110 */ (addIfInjector(xCenter - 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && -/* 126:111 */ (addIfInjector(xCenter - 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 127:112 */ (addIfInjector(xCenter + 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && -/* 128:113 */ (addIfInjector(xCenter - 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && -/* 129:114 */ (addIfInjector(xCenter + 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && + int xCenter = getBaseMetaTileEntity().getXCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetX * 5;int yCenter = getBaseMetaTileEntity().getYCoord();int zCenter = getBaseMetaTileEntity().getZCoord() + ForgeDirection.getOrientation(getBaseMetaTileEntity().getFrontFacing()).offsetZ * 5; + if (((isAdvancedMachineCasing(xCenter + 5, yCenter, zCenter)) || (xCenter + 5 == getBaseMetaTileEntity().getXCoord())) && + ((isAdvancedMachineCasing(xCenter - 5, yCenter, zCenter)) || (xCenter - 5 == getBaseMetaTileEntity().getXCoord())) && + ((isAdvancedMachineCasing(xCenter, yCenter, zCenter + 5)) || (zCenter + 5 == getBaseMetaTileEntity().getZCoord())) && + ((isAdvancedMachineCasing(xCenter, yCenter, zCenter - 5)) || (zCenter - 5 == getBaseMetaTileEntity().getZCoord())) && + (checkCoils(xCenter, yCenter, zCenter)) && + (checkHulls(xCenter, yCenter, zCenter)) && + (checkUpperOrLowerHulls(xCenter, yCenter + 1, zCenter)) && + (checkUpperOrLowerHulls(xCenter, yCenter - 1, zCenter)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 3,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 4, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 3, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 5, yCenter, zCenter + 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 3, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter + 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfEnergyInjector(xCenter - 5, yCenter, zCenter - 4,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter - 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter + 5,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter - 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 1, yCenter, zCenter + 7,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 5, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 5, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter + 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 7, yCenter, zCenter - 1,aBaseMetaTileEntity)) && + (addIfExtractor(xCenter - 7, yCenter, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter + 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter + 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter + 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter + 1, zCenter - 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter - 1, zCenter - 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 1, yCenter - 1, zCenter + 6,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter - 1, zCenter + 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter - 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && + (addIfInjector(xCenter + 6, yCenter - 1, zCenter - 1,aBaseMetaTileEntity)) && (this.mEnergyHatches.size()>=1)&& (this.mOutputHatches.size()>=1)&& (this.mInputHatches.size()>=2)) { @@ -147,10 +147,10 @@ import net.minecraftforge.fluids.FluidStack; if(this.mInputHatches.get(i).mTier<tier())return false;} } mWrench = true;mScrewdriver = true; mSoftHammer = true; mHardHammer = true; mSolderingTool = true; mCrowbar = true; -/* 130:115 */ return true; -/* 131: */ } -/* 132:117 */ return false; -/* 133: */ } + return true; + } + return false; + } private boolean checkTier(byte tier,ArrayList<GT_MetaTileEntity_Hatch> list){ if(list!=null){ @@ -162,64 +162,64 @@ import net.minecraftforge.fluids.FluidStack; } return true; } -/* 134: */ -/* 135: */ private boolean checkCoils(int aX, int aY, int aZ) -/* 136: */ { -/* 137:121 */ return (isFusionCoil(aX + 6, aY, aZ - 1)) && (isFusionCoil(aX + 6, aY, aZ)) && (isFusionCoil(aX + 6, aY, aZ + 1)) && (isFusionCoil(aX + 5, aY, aZ - 3)) && (isFusionCoil(aX + 5, aY, aZ - 2)) && (isFusionCoil(aX + 5, aY, aZ + 2)) && (isFusionCoil(aX + 5, aY, aZ + 3)) && (isFusionCoil(aX + 4, aY, aZ - 4)) && (isFusionCoil(aX + 4, aY, aZ + 4)) && (isFusionCoil(aX + 3, aY, aZ - 5)) && (isFusionCoil(aX + 3, aY, aZ + 5)) && (isFusionCoil(aX + 2, aY, aZ - 5)) && (isFusionCoil(aX + 2, aY, aZ + 5)) && (isFusionCoil(aX + 1, aY, aZ - 6)) && (isFusionCoil(aX + 1, aY, aZ + 6)) && (isFusionCoil(aX, aY, aZ - 6)) && (isFusionCoil(aX, aY, aZ + 6)) && (isFusionCoil(aX - 1, aY, aZ - 6)) && (isFusionCoil(aX - 1, aY, aZ + 6)) && (isFusionCoil(aX - 2, aY, aZ - 5)) && (isFusionCoil(aX - 2, aY, aZ + 5)) && (isFusionCoil(aX - 3, aY, aZ - 5)) && (isFusionCoil(aX - 3, aY, aZ + 5)) && (isFusionCoil(aX - 4, aY, aZ - 4)) && (isFusionCoil(aX - 4, aY, aZ + 4)) && (isFusionCoil(aX - 5, aY, aZ - 3)) && (isFusionCoil(aX - 5, aY, aZ - 2)) && (isFusionCoil(aX - 5, aY, aZ + 2)) && (isFusionCoil(aX - 5, aY, aZ + 3)) && (isFusionCoil(aX - 6, aY, aZ - 1)) && (isFusionCoil(aX - 6, aY, aZ)) && (isFusionCoil(aX - 6, aY, aZ + 1)); -/* 138: */ } -/* 139: */ -/* 140: */ private boolean checkUpperOrLowerHulls(int aX, int aY, int aZ) -/* 141: */ { -/* 142:168 */ return (isAdvancedMachineCasing(aX + 6, aY, aZ)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX, aY, aZ - 6)) && (isAdvancedMachineCasing(aX, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ)); -/* 143: */ } -/* 144: */ -/* 145: */ private boolean checkHulls(int aX, int aY, int aZ) -/* 146: */ { -/* 147:205 */ return (isAdvancedMachineCasing(aX + 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 7, aY, aZ)) && (isAdvancedMachineCasing(aX + 7, aY, aZ)) && (isAdvancedMachineCasing(aX, aY, aZ - 7)) && (isAdvancedMachineCasing(aX, aY, aZ + 7)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 4)); -/* 148: */ } -/* 149: */ -/* 150: */ private boolean addIfEnergyInjector(int aX, int aY, int aZ,IGregTechTileEntity aBaseMetaTileEntity) -/* 151: */ { + + private boolean checkCoils(int aX, int aY, int aZ) + { + return (isFusionCoil(aX + 6, aY, aZ - 1)) && (isFusionCoil(aX + 6, aY, aZ)) && (isFusionCoil(aX + 6, aY, aZ + 1)) && (isFusionCoil(aX + 5, aY, aZ - 3)) && (isFusionCoil(aX + 5, aY, aZ - 2)) && (isFusionCoil(aX + 5, aY, aZ + 2)) && (isFusionCoil(aX + 5, aY, aZ + 3)) && (isFusionCoil(aX + 4, aY, aZ - 4)) && (isFusionCoil(aX + 4, aY, aZ + 4)) && (isFusionCoil(aX + 3, aY, aZ - 5)) && (isFusionCoil(aX + 3, aY, aZ + 5)) && (isFusionCoil(aX + 2, aY, aZ - 5)) && (isFusionCoil(aX + 2, aY, aZ + 5)) && (isFusionCoil(aX + 1, aY, aZ - 6)) && (isFusionCoil(aX + 1, aY, aZ + 6)) && (isFusionCoil(aX, aY, aZ - 6)) && (isFusionCoil(aX, aY, aZ + 6)) && (isFusionCoil(aX - 1, aY, aZ - 6)) && (isFusionCoil(aX - 1, aY, aZ + 6)) && (isFusionCoil(aX - 2, aY, aZ - 5)) && (isFusionCoil(aX - 2, aY, aZ + 5)) && (isFusionCoil(aX - 3, aY, aZ - 5)) && (isFusionCoil(aX - 3, aY, aZ + 5)) && (isFusionCoil(aX - 4, aY, aZ - 4)) && (isFusionCoil(aX - 4, aY, aZ + 4)) && (isFusionCoil(aX - 5, aY, aZ - 3)) && (isFusionCoil(aX - 5, aY, aZ - 2)) && (isFusionCoil(aX - 5, aY, aZ + 2)) && (isFusionCoil(aX - 5, aY, aZ + 3)) && (isFusionCoil(aX - 6, aY, aZ - 1)) && (isFusionCoil(aX - 6, aY, aZ)) && (isFusionCoil(aX - 6, aY, aZ + 1)); + } + + private boolean checkUpperOrLowerHulls(int aX, int aY, int aZ) + { + return (isAdvancedMachineCasing(aX + 6, aY, aZ)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX, aY, aZ - 6)) && (isAdvancedMachineCasing(aX, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 5)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 5)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 4)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 5, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 5, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ)); + } + + private boolean checkHulls(int aX, int aY, int aZ) + { + return (isAdvancedMachineCasing(aX + 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX + 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX + 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ - 6)) && (isAdvancedMachineCasing(aX - 3, aY, aZ + 6)) && (isAdvancedMachineCasing(aX - 7, aY, aZ)) && (isAdvancedMachineCasing(aX + 7, aY, aZ)) && (isAdvancedMachineCasing(aX, aY, aZ - 7)) && (isAdvancedMachineCasing(aX, aY, aZ + 7)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 3)) && (isAdvancedMachineCasing(aX - 6, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 6, aY, aZ + 3)) && (isAdvancedMachineCasing(aX - 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX - 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ - 2)) && (isAdvancedMachineCasing(aX + 4, aY, aZ + 2)) && (isAdvancedMachineCasing(aX - 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX - 2, aY, aZ + 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ - 4)) && (isAdvancedMachineCasing(aX + 2, aY, aZ + 4)); + } + + private boolean addIfEnergyInjector(int aX, int aY, int aZ,IGregTechTileEntity aBaseMetaTileEntity) + { if(addEnergyInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntity(aX,aY,aZ), 53)){ return true; } -/* 152:242 */ return isAdvancedMachineCasing(aX, aY, aZ); -/* 153: */ } -/* 154: */ -/* 155: */ private boolean addIfInjector(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) -/* 156: */ { + return isAdvancedMachineCasing(aX, aY, aZ); + } + + private boolean addIfInjector(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) + { if(addInputToMachineList(aTileEntity.getIGregTechTileEntity(aX,aY,aZ), 53)){ return true; } -/* 157:246 */ return isAdvancedMachineCasing(aX, aY, aZ); -/* 158: */ } -/* 159: */ -/* 160: */ private boolean addIfExtractor(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) -/* 161: */ { + return isAdvancedMachineCasing(aX, aY, aZ); + } + + private boolean addIfExtractor(int aX, int aY, int aZ,IGregTechTileEntity aTileEntity) + { if(addOutputToMachineList(aTileEntity.getIGregTechTileEntity(aX,aY,aZ), 53)){ return true; } -/* 162:250 */ return isAdvancedMachineCasing(aX, aY, aZ); -/* 163: */ } -/* 164: */ -/* 165: */ private boolean isAdvancedMachineCasing(int aX, int aY, int aZ) -/* 166: */ { -/* 167:254 */ return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getCasing()) && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getCasingMeta()); -/* 168: */ } + return isAdvancedMachineCasing(aX, aY, aZ); + } + + private boolean isAdvancedMachineCasing(int aX, int aY, int aZ) + { + return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getCasing()) && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getCasingMeta()); + } public abstract Block getCasing(); public abstract int getCasingMeta(); -/* 169: */ -/* 170: */ private boolean isFusionCoil(int aX, int aY, int aZ) -/* 171: */ { -/* 172:258 */ return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getFusionCoil() && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getFusionCoilMeta())); -/* 173: */ } + + private boolean isFusionCoil(int aX, int aY, int aZ) + { + return (getBaseMetaTileEntity().getBlock(aX, aY, aZ) == getFusionCoil() && (getBaseMetaTileEntity().getMetaID(aX, aY, aZ) == getFusionCoilMeta())); + } public abstract Block getFusionCoil(); public abstract int getFusionCoilMeta(); -/* 190: */ public abstract String[] getDescription(); -/* 194: */ -/* 195: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) -/* 196: */ { + public abstract String[] getDescription(); + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { ITexture[] sTexture; if(aSide==aFacing){ sTexture = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS, Dyes.getModulation(-1, Dyes._NULL.mRGBa)),new GT_RenderedTexture(Textures.BlockIcons.OVERLAY_SCREEN) }; @@ -229,8 +229,8 @@ import net.minecraftforge.fluids.FluidStack; sTexture = new ITexture[] { new GT_RenderedTexture(Textures.BlockIcons.MACHINE_CASING_FUSION_GLASS_YELLOW, Dyes.getModulation(-1, Dyes._NULL.mRGBa))}; } } -/* 197:283 */ return sTexture; -/* 198: */ } + return sTexture; + } @Override public boolean isCorrectMachinePart(ItemStack aStack) {return true;} diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java index 193118eec8..5c16af3e37 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_HeatExchanger.java @@ -29,50 +29,50 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_HeatExchanger extends GT_MetaTileEntity_MultiBlockBase{ - /* 25: */ public GT_MetaTileEntity_HeatExchanger(int aID, String aName, String aNameRegional) - /* 26: */ { - /* 27: 25 */ super(aID, aName, aNameRegional); - /* 28: */ } - /* 29: */ - /* 30: */ public GT_MetaTileEntity_HeatExchanger(String aName) - /* 31: */ { - /* 32: 29 */ super(aName); - /* 33: */ } - /* 34: */ - /* 35: */ public String[] getDescription() - /* 36: */ { - /* 37: 34 */ return new String[] { "Controller Block for the Heat Exchanger", "Size: 3x3x4", "Controller (front middle at bottom)", "3x3x4 of Stable Titanium Casing (hollow, Min 24!)", "2 Titanium Pipe Casing Blocks inside the Hollow Casing", "1x Distillated Water Input (one of the Casings)","min 1 Steam Output (one of the Casings)", "1x Maintenance Hatch (one of the Casings)", "1x Hot Fluid Input (botton Center)", "1x Cold Fluid Output (top Center)" }; - /* 38: */ } + public GT_MetaTileEntity_HeatExchanger(int aID, String aName, String aNameRegional) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_HeatExchanger(String aName) + { + super(aName); + } + + public String[] getDescription() + { + return new String[] { "Controller Block for the Heat Exchanger", "Size: 3x3x4", "Controller (front middle at bottom)", "3x3x4 of Stable Titanium Casing (hollow, Min 24!)", "2 Titanium Pipe Casing Blocks inside the Hollow Casing", "1x Distillated Water Input (one of the Casings)","min 1 Steam Output (one of the Casings)", "1x Maintenance Hatch (one of the Casings)", "1x Hot Fluid Input (botton Center)", "1x Cold Fluid Output (top Center)" }; + } public GT_MetaTileEntity_Hatch_Input mInputHotFluidHatch; public GT_MetaTileEntity_Hatch_Output mOutputColdFluidHatch; public boolean superheated=false; - /* 59: */ - /* 60: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) - /* 61: */ { - /* 62: 53 */ if (aSide == aFacing) { - /* 63: 53 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; - /* 64: */ } - /* 65: 54 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50] }; - /* 66: */ } - /* 67: */ - /* 68: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) - /* 69: */ { - /* 70: 59 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png"); - /* 71: */ } - /* 72: */ - /* 73: */ public boolean isCorrectMachinePart(ItemStack aStack) - /* 74: */ { - /* 75: 64 */ return true; - /* 76: */ } - /* 77: */ - /* 78: */ public boolean isFacingValid(byte aFacing) - /* 79: */ { - /* 80: 67 */ return aFacing > 1; - /* 81: */ } - /* 82: */ - /* 83: */ public boolean checkRecipe(ItemStack aStack) - /* 84: */ { + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { + if (aSide == aFacing) { + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; + } + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[50] }; + } + + public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) + { + return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png"); + } + + public boolean isCorrectMachinePart(ItemStack aStack) + { + return true; + } + + public boolean isFacingValid(byte aFacing) + { + return aFacing > 1; + } + + public boolean checkRecipe(ItemStack aStack) + { if(GT_ModHandler.isLava(mInputHotFluidHatch.getFluid())){ int fluidAmount = mInputHotFluidHatch.getFluidAmount(); if(fluidAmount >= 1000){superheated=true;}else{superheated=false;} @@ -101,73 +101,73 @@ public class GT_MetaTileEntity_HeatExchanger extends GT_MetaTileEntity_MultiBloc return true; } return false;} - /* 133: */ - /* 134: */ public boolean onRunningTick(ItemStack aStack) - /* 135: */ { - /* 136:115 */ if (this.mEUt > 0) - /* 137: */ {System.out.println("EU: "+mEUt+" Eff: "+mEfficiency); - /* 138:116 */ int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L); - /* 139:117 */ if (tGeneratedEU > 0) { - /* 140:118 */ if (depleteInput(GT_ModHandler.getDistilledWater(((superheated ? tGeneratedEU/2 :tGeneratedEU) + 160) / 160))) { + + public boolean onRunningTick(ItemStack aStack) + { + if (this.mEUt > 0) + {System.out.println("EU: "+mEUt+" Eff: "+mEfficiency); + int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L); + if (tGeneratedEU > 0) { + if (depleteInput(GT_ModHandler.getDistilledWater(((superheated ? tGeneratedEU/2 :tGeneratedEU) + 160) / 160))) { if(superheated){ addOutput(FluidRegistry.getFluidStack("ic2superheatedsteam", tGeneratedEU/2)); }else{ - /* 141:119 */ addOutput(GT_ModHandler.getSteam(tGeneratedEU));} - /* 142: */ } else { - /* 143:121 */ explodeMultiblock(); - /* 144: */ } - /* 145: */ } - /* 146:124 */ return true; - /* 147: */ } - /* 148:126 */ return true; - /* 149: */ } - /* 150: */ private static boolean controller; - /* 151: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) - /* 152: */ { - /* 153:131 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; - /* 154: */ - /* 155:133 */ int tCasingAmount = 0;int tFireboxAmount = 0;controller=false; - /* 156:135 */ for (int i = -1; i < 2; i++) { - /* 157:135 */ for (int j = -1; j < 2; j++) { - /* 158:136 */ if ((i != 0) || (j != 0)) - /* 159: */ { - /* 160:137 */ for (int k = 0; k <= 3; k++) { - /* 161:138 */ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addMaintenanceToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j))) - /* 162: */ { - /* 163:139 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) { - /* 164:139 */ return false; - /* 165: */ } - /* 166:140 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) { - /* 167:140 */ return false; - /* 168: */ } - /* 169:141 */ tCasingAmount++; - /* 170: */ } + addOutput(GT_ModHandler.getSteam(tGeneratedEU));} + } else { + explodeMultiblock(); + } + } + return true; + } + return true; + } + private static boolean controller; + public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) + { + int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; + + int tCasingAmount = 0;int tFireboxAmount = 0;controller=false; + for (int i = -1; i < 2; i++) { + for (int j = -1; j < 2; j++) { + if ((i != 0) || (j != 0)) + { + for (int k = 0; k <= 3; k++) { + if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!addMaintenanceToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), 50)&&!ignoreController(aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j))) + { + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) { + return false; + } + tCasingAmount++; + } } - /* 171: */ }else{ + }else{ if(!addHotFluidInputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j), 50)){ return false; } if(!addColdFluidOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 3, zDir + j), 50)){ return false; } - /* 177:146 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != getPipeBlock()) { - /* 178:146 */ return false; - /* 179: */ } - /* 180:147 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != getPipeMeta()) { - /* 181:147 */ return false; - /* 182: */ } + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != getPipeBlock()) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != getPipeMeta()) { + return false; + } - /* 177:146 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != getPipeBlock()) { - /* 178:146 */ return false; - /* 179: */ } - /* 180:147 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != getPipeMeta()) { - /* 181:147 */ return false; - /* 182: */ } - /* 172: */ } - /* 195: */ } - /* 196: */ } - /* 215:166 */ return (tCasingAmount >= 24); - /* 216: */ } + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != getPipeBlock()) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != getPipeMeta()) { + return false; + } + } + } + } + return (tCasingAmount >= 24); + } public boolean ignoreController(Block tTileEntity){ if(!controller&&tTileEntity == GregTech_API.sBlockMachines){return true;} @@ -199,58 +199,58 @@ public class GT_MetaTileEntity_HeatExchanger extends GT_MetaTileEntity_MultiBloc return false; } - /* 26: */ public Block getCasingBlock() - /* 27: */ { - /* 28:22 */ return GregTech_API.sBlockCasings4; - /* 29: */ } - /* 30: */ - /* 31: */ public byte getCasingMeta() - /* 32: */ { - /* 33:23 */ return 2; - /* 34: */ } - /* 35: */ - /* 36: */ public byte getCasingTextureIndex() - /* 37: */ { - /* 38:24 */ return 50; - /* 39: */ } - /* 40: */ - /* 41: */ public Block getPipeBlock() - /* 42: */ { - /* 43:26 */ return GregTech_API.sBlockCasings2; - /* 44: */ } - /* 45: */ - /* 46: */ public byte getPipeMeta() - /* 47: */ { - /* 48:27 */ return 14; - /* 49: */ } - /* 217: */ - /* 218: */ public int getMaxEfficiency(ItemStack aStack) - /* 219: */ { - /* 220:171 */ return 10000; - /* 221: */ } - /* 222: */ - /* 223: */ public int getPollutionPerTick(ItemStack aStack) - /* 224: */ { - /* 225:176 */ return 10; - /* 226: */ } - /* 227: */ - /* 228: */ public int getDamageToComponent(ItemStack aStack) - /* 229: */ { - /* 230:181 */ return 0; - /* 231: */ } - /* 232: */ - /* 233: */ public int getAmountOfOutputs() - /* 234: */ { - /* 235:186 */ return 1; - /* 236: */ } - /* 237: */ - /* 238: */ public boolean explodesOnComponentBreak(ItemStack aStack) - /* 239: */ { - /* 240:191 */ return false; - /* 241: */ } - /* 242: */ - /* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) - /* 22: */ { - /* 23:19 */ return new GT_MetaTileEntity_HeatExchanger(this.mName); - /* 24: */ } + public Block getCasingBlock() + { + return GregTech_API.sBlockCasings4; + } + + public byte getCasingMeta() + { + return 2; + } + + public byte getCasingTextureIndex() + { + return 50; + } + + public Block getPipeBlock() + { + return GregTech_API.sBlockCasings2; + } + + public byte getPipeMeta() + { + return 14; + } + + public int getMaxEfficiency(ItemStack aStack) + { + return 10000; + } + + public int getPollutionPerTick(ItemStack aStack) + { + return 10; + } + + public int getDamageToComponent(ItemStack aStack) + { + return 0; + } + + public int getAmountOfOutputs() + { + return 1; + } + + public boolean explodesOnComponentBreak(ItemStack aStack) + { + return false; + } + + public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_HeatExchanger(this.mName); + } } diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java index 48b7f03770..468da7a845 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ImplosionCompressor.java @@ -1,177 +1,177 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Map;
-/* 14: */ import java.util.ArrayList;
-/* 15: */ import java.util.Arrays;
-/* 16: */ import java.util.Map;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
-/* 17: */ import net.minecraft.block.Block;
-/* 18: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 19: */ import net.minecraft.item.ItemStack;
-/* 20: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 21: */
-/* 22: */ public class GT_MetaTileEntity_ImplosionCompressor
-/* 23: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 24: */ {
-/* 25: */ public GT_MetaTileEntity_ImplosionCompressor(int aID, String aName, String aNameRegional)
-/* 26: */ {
-/* 27: 25 */ super(aID, aName, aNameRegional);
-/* 28: */ }
-/* 29: */
-/* 30: */ public GT_MetaTileEntity_ImplosionCompressor(String aName)
-/* 31: */ {
-/* 32: 29 */ super(aName);
-/* 33: */ }
-/* 34: */
-/* 35: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 36: */ {
-/* 37: 34 */ return new GT_MetaTileEntity_ImplosionCompressor(this.mName);
-/* 38: */ }
-/* 39: */
-/* 40: */ public String[] getDescription()
-/* 41: */ {
-/* 42: 39 */ return new String[] { "Controller Block for the Implosion Compressor", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "1x Muffler Hatch (anywhere)", "Solid Steel Casings for the rest (16 at least!)" };
-/* 43: */ }
-/* 44: */
-/* 45: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 46: */ {
-/* 47: 44 */ if (aSide == aFacing) {
-/* 48: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR) };
-/* 49: */ }
-/* 50: 45 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16] };
-/* 51: */ }
-/* 52: */
-/* 53: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 54: */ {
-/* 55: 50 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ImplosionCompressor.png");
-/* 56: */ }
-/* 57: */
-/* 58: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 59: */ {
-/* 60: 55 */ return GT_Recipe.GT_Recipe_Map.sImplosionRecipes;
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 64: */ {
-/* 65: 60 */ return true;
-/* 66: */ }
-/* 67: */
-/* 68: */ public boolean isFacingValid(byte aFacing)
-/* 69: */ {
-/* 70: 63 */ return aFacing > 1;
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean checkRecipe(ItemStack aStack)
-/* 74: */ {
-/* 75: 67 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 76: 69 */ for (int i = 0; i < tInputList.size() - 1; i++) {
-/* 77: 69 */ for (int j = i + 1; j < tInputList.size(); j++) {
-/* 78: 70 */ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
-/* 79: 71 */ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
-/* 80: */ {
-/* 81: 71 */ tInputList.remove(j--);
-/* 82: */ }
-/* 83: */ else
-/* 84: */ {
-/* 85: 71 */ tInputList.remove(i--); break;
-/* 86: */ }
-/* 87: */ }
-/* 88: */ }
-/* 89: */ }
-/* 90: 75 */ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
-/* 91: 77 */ if (tInputList.size() > 0)
-/* 92: */ {
-/* 93: 78 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sImplosionRecipes.findRecipe(getBaseMetaTileEntity(), false, 9223372036854775807L, null, tInputs);
-/* 94: 79 */ if ((tRecipe != null) && (tRecipe.isRecipeInputEqual(true, null, tInputs)))
-/* 95: */ {
-/* 96: 80 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 97: 81 */ this.mEfficiencyIncrease = 10000;
-/* 98: */
-/* 99: 83 */ this.mEUt = (-tRecipe.mEUt);
-/* 100: 84 */ this.mMaxProgresstime = Math.max(1, tRecipe.mDuration);
-/* 101: 85 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
-/* 102: 86 */ sendLoopStart((byte)20);
-/* 103: 87 */ updateSlots();
-/* 104: 88 */ return true;
-/* 105: */ }
-/* 106: */ }
-/* 107: 91 */ return false;
-/* 108: */ }
-/* 109: */
-/* 110: */ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
-/* 111: */ {
-/* 112: 96 */ super.startSoundLoop(aIndex, aX, aY, aZ);
-/* 113: 97 */ if (aIndex == 20) {
-/* 114: 97 */ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(5)), 10, 1.0F, aX, aY, aZ);
-/* 115: */ }
-/* 116: */ }
-/* 117: */
-/* 118: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 119: */ {
-/* 120:102 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 121:104 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
-/* 122:104 */ return false;
-/* 123: */ }
-/* 124:106 */ int tAmount = 0;
-/* 125:108 */ for (int i = -1; i < 2; i++) {
-/* 126:108 */ for (int j = -1; j < 2; j++) {
-/* 127:108 */ for (int h = -1; h < 2; h++) {
-/* 128:108 */ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
-/* 129: */ {
-/* 130:109 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
-/* 131:110 */ if ((!addMaintenanceToMachineList(tTileEntity, 16)) && (!addMufflerToMachineList(tTileEntity, 16)) && (!addInputToMachineList(tTileEntity, 16)) && (!addOutputToMachineList(tTileEntity, 16)) && (!addEnergyInputToMachineList(tTileEntity, 16)))
-/* 132: */ {
-/* 133:111 */ Block tBlock = aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j);
-/* 134:112 */ byte tMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j);
-/* 135:113 */ if (((tBlock != GregTech_API.sBlockCasings2) || (tMeta != 0)) && ((tBlock != GregTech_API.sBlockCasings3) || (tMeta != 4))) {
-/* 136:113 */ return false;
-/* 137: */ }
-/* 138:114 */ tAmount++;
-/* 139: */ }
-/* 140: */ }
-/* 141: */ }
-/* 142: */ }
-/* 143: */ }
-/* 144:118 */ return tAmount >= 16;
-/* 145: */ }
-/* 146: */
-/* 147: */ public int getMaxEfficiency(ItemStack aStack)
-/* 148: */ {
-/* 149:123 */ return 10000;
-/* 150: */ }
-/* 151: */
-/* 152: */ public int getPollutionPerTick(ItemStack aStack)
-/* 153: */ {
-/* 154:128 */ return 1000;
-/* 155: */ }
-/* 156: */
-/* 157: */ public int getDamageToComponent(ItemStack aStack)
-/* 158: */ {
-/* 159:133 */ return 0;
-/* 160: */ }
-/* 161: */
-/* 162: */ public int getAmountOfOutputs()
-/* 163: */ {
-/* 164:138 */ return 2;
-/* 165: */ }
-/* 166: */
-/* 167: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 168: */ {
-/* 169:143 */ return false;
-/* 170: */ }
-/* 171: */ }
+public class GT_MetaTileEntity_ImplosionCompressor
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ public GT_MetaTileEntity_ImplosionCompressor(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_ImplosionCompressor(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_ImplosionCompressor(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Implosion Compressor", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "1x Muffler Hatch (anywhere)", "Solid Steel Casings for the rest (16 at least!)" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_IMPLOSION_COMPRESSOR) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[16] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "ImplosionCompressor.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sImplosionRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ for (int i = 0; i < tInputList.size() - 1; i++) {
+ for (int j = i + 1; j < tInputList.size(); j++) {
+ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) {
+ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize)
+ {
+ tInputList.remove(j--);
+ }
+ else
+ {
+ tInputList.remove(i--); break;
+ }
+ }
+ }
+ }
+ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2);
+ if (tInputList.size() > 0)
+ {
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sImplosionRecipes.findRecipe(getBaseMetaTileEntity(), false, 9223372036854775807L, null, tInputs);
+ if ((tRecipe != null) && (tRecipe.isRecipeInputEqual(true, null, tInputs)))
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+
+ this.mEUt = (-tRecipe.mEUt);
+ this.mMaxProgresstime = Math.max(1, tRecipe.mDuration);
+ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0), tRecipe.getOutput(1) };
+ sendLoopStart((byte)20);
+ updateSlots();
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public void startSoundLoop(byte aIndex, double aX, double aY, double aZ)
+ {
+ super.startSoundLoop(aIndex, aX, aY, aZ);
+ if (aIndex == 20) {
+ GT_Utility.doSoundAtClient((String)GregTech_API.sSoundList.get(Integer.valueOf(5)), 10, 1.0F, aX, aY, aZ);
+ }
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
+ return false;
+ }
+ int tAmount = 0;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ for (int h = -1; h < 2; h++) {
+ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 16)) && (!addMufflerToMachineList(tTileEntity, 16)) && (!addInputToMachineList(tTileEntity, 16)) && (!addOutputToMachineList(tTileEntity, 16)) && (!addEnergyInputToMachineList(tTileEntity, 16)))
+ {
+ Block tBlock = aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j);
+ byte tMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j);
+ if (((tBlock != GregTech_API.sBlockCasings2) || (tMeta != 0)) && ((tBlock != GregTech_API.sBlockCasings3) || (tMeta != 4))) {
+ return false;
+ }
+ tAmount++;
+ }
+ }
+ }
+ }
+ }
+ return tAmount >= 16;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 1000;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 2;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java index fd02e50e2c..93d8e260de 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler.java @@ -1,156 +1,156 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.GT_Mod;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.GT_Mod;
import gregtech.api.enums.Materials;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 8: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 9: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 10: */ import gregtech.api.util.GT_ModHandler;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map_Fuel;
-/* 14: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map_Fuel;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 15: */ import java.util.ArrayList;
+import net.minecraft.block.Block;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
+import net.minecraftforge.fluids.FluidStack;
-/* 16: */ import net.minecraft.block.Block;
-/* 17: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 18: */ import net.minecraft.item.ItemStack;
-/* 19: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 20: */ import net.minecraftforge.fluids.FluidStack;
-/* 21: */
-/* 22: */ public abstract class GT_MetaTileEntity_LargeBoiler
-/* 23: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 24: */ {
-/* 25: */ public GT_MetaTileEntity_LargeBoiler(int aID, String aName, String aNameRegional)
-/* 26: */ {
-/* 27: 25 */ super(aID, aName, aNameRegional);
-/* 28: */ }
-/* 29: */
-/* 30: */ public GT_MetaTileEntity_LargeBoiler(String aName)
-/* 31: */ {
-/* 32: 29 */ super(aName);
-/* 33: */ }
-/* 34: */
-/* 35: */ public String[] getDescription()
-/* 36: */ {
-/* 37: 34 */ return new String[] { "Controller Block for the Large Boiler", "Size: 3x3x5", "Controller (front middle in Fireboxes)", "3x3 of Fire Boxes (bottom Layer, Min 3!)", "3x3x4 of Casing (above Fireboxes, hollow, Min 24!)", "3 Pipe Casing Blocks inside the Hollow Casing", "1x Input (one of Fireboxes)", "1x Maintenance Hatch (one of Fireboxes)", "1x Muffler Hatch (one of Fireboxes)", "1x Fluid Output (one of Main Casing)" };
-/* 38: */ }
-/* 39: */
-/* 40: */ public abstract Block getCasingBlock();
-/* 41: */
-/* 42: */ public abstract byte getCasingMeta();
-/* 43: */
-/* 44: */ public abstract byte getCasingTextureIndex();
-/* 45: */
-/* 46: */ public abstract Block getPipeBlock();
-/* 47: */
-/* 48: */ public abstract byte getPipeMeta();
-/* 49: */
-/* 50: */ public abstract Block getFireboxBlock();
-/* 51: */
-/* 52: */ public abstract byte getFireboxMeta();
-/* 53: */
-/* 54: */ public abstract byte getFireboxTextureIndex();
-/* 55: */
-/* 56: */ public abstract int getEUt();
-/* 57: */
-/* 58: */ public abstract int getEfficiencyIncrease();
-/* 59: */
-/* 60: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 61: */ {
-/* 62: 53 */ if (aSide == aFacing) {
-/* 63: 53 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) };
-/* 64: */ }
-/* 65: 54 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()] };
-/* 66: */ }
-/* 67: */
-/* 68: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 69: */ {
-/* 70: 59 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png");
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 74: */ {
-/* 75: 64 */ return true;
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean isFacingValid(byte aFacing)
-/* 79: */ {
-/* 80: 67 */ return aFacing > 1;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean checkRecipe(ItemStack aStack)
-/* 84: */ {
-/* 85: 71 */ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDieselFuels.mRecipeList)
-/* 86: */ {
-/* 87: 72 */ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
-/* 88: 73 */ if ((tFluid != null) && (tRecipe.mSpecialValue > 1))
-/* 89: */ {
-/* 90: 74 */ tFluid.amount = 1000;
-/* 91: 75 */ if (depleteInput(tFluid))
-/* 92: */ {
-/* 93: 76 */ this.mMaxProgresstime = (tRecipe.mSpecialValue / 2);
-/* 94: 77 */ this.mEUt = getEUt();
-/* 95: 78 */ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease() * 4);
-/* 96: 79 */ return true;
-/* 97: */ }
-/* 98: */ }
-/* 99: */ }
-/* 100: 83 */ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDenseLiquidFuels.mRecipeList)
-/* 101: */ {
-/* 102: 84 */ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
-/* 103: 85 */ if (tFluid != null)
-/* 104: */ {
-/* 105: 86 */ tFluid.amount = 1000;
-/* 106: 87 */ if (depleteInput(tFluid))
-/* 107: */ {
-/* 108: 88 */ this.mMaxProgresstime = Math.max(1, tRecipe.mSpecialValue * 2);
-/* 109: 89 */ this.mEUt = getEUt();
-/* 110: 90 */ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
-/* 111: 91 */ return true;
-/* 112: */ }
-/* 113: */ }
-/* 114: */ }
-/* 115: 95 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 116: 96 */ if (!tInputList.isEmpty()) {
-/* 117: 97 */ for (ItemStack tInput : tInputList) {
-/* 118: 98 */ if ((GT_Utility.getFluidForFilledItem(tInput, true) == null) && ((this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0))
-/* 119: */ {
-/* 120: 99 */ this.mEUt = getEUt();
-/* 121:100 */ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
-/* 122:101 */ this.mOutputItems = new ItemStack[] { GT_Utility.getContainerItem(tInput, true) };
-/* 123:102 */ tInput.stackSize -= 1;
-/* 124:103 */ updateSlots();
-/* 125:104 */ return true;
-/* 126: */ }
-/* 127: */ }
-/* 128: */ }
-/* 129:108 */ this.mMaxProgresstime = 0;
-/* 130:109 */ this.mEUt = 0;
-/* 131:110 */ return false;
-/* 132: */ }
-/* 133: */
-/* 134: */ public boolean onRunningTick(ItemStack aStack)
-/* 135: */ {
-/* 136:115 */ if (this.mEUt > 0)
-/* 137: */ {
-/* 138:116 */ int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L);
-/* 139:117 */ if (tGeneratedEU > 0) {
-/* 140:118 */ if (depleteInput(Materials.Water.getFluid((tGeneratedEU + 160) / 160))) {
-/* 141:119 */ addOutput(GT_ModHandler.getSteam(tGeneratedEU));
-/* 142: */ } else {
-/* 143:121 */ explodeMultiblock();
-/* 144: */ }
-/* 145: */ }
-/* 146:124 */ return true;
-/* 147: */ }
-/* 148:126 */ return true;
-/* 149: */ }
+public abstract class GT_MetaTileEntity_LargeBoiler
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ public GT_MetaTileEntity_LargeBoiler(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler(String aName)
+ {
+ super(aName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Large Boiler", "Size: 3x3x5", "Controller (front middle in Fireboxes)", "3x3 of Fire Boxes (bottom Layer, Min 3!)", "3x3x4 of Casing (above Fireboxes, hollow, Min 24!)", "3 Pipe Casing Blocks inside the Hollow Casing", "1x Input (one of Fireboxes)", "1x Maintenance Hatch (one of Fireboxes)", "1x Muffler Hatch (one of Fireboxes)", "1x Fluid Output (one of Main Casing)" };
+ }
+
+ public abstract Block getCasingBlock();
+
+ public abstract byte getCasingMeta();
+
+ public abstract byte getCasingTextureIndex();
+
+ public abstract Block getPipeBlock();
+
+ public abstract byte getPipeMeta();
+
+ public abstract Block getFireboxBlock();
+
+ public abstract byte getFireboxMeta();
+
+ public abstract byte getFireboxTextureIndex();
+
+ public abstract int getEUt();
+
+ public abstract int getEfficiencyIncrease();
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[getCasingTextureIndex()] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "LargeBoiler.png");
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDieselFuels.mRecipeList)
+ {
+ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
+ if ((tFluid != null) && (tRecipe.mSpecialValue > 1))
+ {
+ tFluid.amount = 1000;
+ if (depleteInput(tFluid))
+ {
+ this.mMaxProgresstime = (tRecipe.mSpecialValue / 2);
+ this.mEUt = getEUt();
+ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease() * 4);
+ return true;
+ }
+ }
+ }
+ for (GT_Recipe tRecipe : GT_Recipe.GT_Recipe_Map.sDenseLiquidFuels.mRecipeList)
+ {
+ FluidStack tFluid = GT_Utility.getFluidForFilledItem(tRecipe.getRepresentativeInput(0), true);
+ if (tFluid != null)
+ {
+ tFluid.amount = 1000;
+ if (depleteInput(tFluid))
+ {
+ this.mMaxProgresstime = Math.max(1, tRecipe.mSpecialValue * 2);
+ this.mEUt = getEUt();
+ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
+ return true;
+ }
+ }
+ }
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ if (!tInputList.isEmpty()) {
+ for (ItemStack tInput : tInputList) {
+ if ((GT_Utility.getFluidForFilledItem(tInput, true) == null) && ((this.mMaxProgresstime = GT_ModHandler.getFuelValue(tInput) / 80) > 0))
+ {
+ this.mEUt = getEUt();
+ this.mEfficiencyIncrease = (this.mMaxProgresstime * getEfficiencyIncrease());
+ this.mOutputItems = new ItemStack[] { GT_Utility.getContainerItem(tInput, true) };
+ tInput.stackSize -= 1;
+ updateSlots();
+ return true;
+ }
+ }
+ }
+ this.mMaxProgresstime = 0;
+ this.mEUt = 0;
+ return false;
+ }
+
+ public boolean onRunningTick(ItemStack aStack)
+ {
+ if (this.mEUt > 0)
+ {
+ int tGeneratedEU = (int)(this.mEUt * 2L * this.mEfficiency / 10000L);
+ if (tGeneratedEU > 0) {
+ if (depleteInput(Materials.Water.getFluid((tGeneratedEU + 160) / 160))) {
+ addOutput(GT_ModHandler.getSteam(tGeneratedEU));
+ } else {
+ explodeMultiblock();
+ }
+ }
+ return true;
+ }
+ return true;
+ }
private boolean firstRun = true;
@@ -163,99 +163,99 @@ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) { }
-/* 150: */
-/* 151: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 152: */ {
-/* 153:131 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 154: */
-/* 155:133 */ int tCasingAmount = 0;int tFireboxAmount = 0;
-/* 156:135 */ for (int i = -1; i < 2; i++) {
-/* 157:135 */ for (int j = -1; j < 2; j++) {
-/* 158:136 */ if ((i != 0) || (j != 0))
-/* 159: */ {
-/* 160:137 */ for (int k = 1; k <= 4; k++) {
-/* 161:138 */ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), getCasingTextureIndex()))
-/* 162: */ {
-/* 163:139 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) {
-/* 164:139 */ return false;
-/* 165: */ }
-/* 166:140 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) {
-/* 167:140 */ return false;
-/* 168: */ }
-/* 169:141 */ tCasingAmount++;
-/* 170: */ }
-/* 171: */ }
-/* 172: */ }
-/* 173: */ else
-/* 174: */ {
-/* 175:145 */ for (int k = 1; k <= 3; k++)
-/* 176: */ {
-/* 177:146 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getPipeBlock()) {
-/* 178:146 */ return false;
-/* 179: */ }
-/* 180:147 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getPipeMeta()) {
-/* 181:147 */ return false;
-/* 182: */ }
-/* 183: */ }
-/* 184:149 */ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 4, zDir + j), getCasingTextureIndex()))
-/* 185: */ {
-/* 186:150 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 4, zDir + j) != getCasingBlock()) {
-/* 187:150 */ return false;
-/* 188: */ }
-/* 189:151 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 4, zDir + j) != getCasingMeta()) {
-/* 190:151 */ return false;
-/* 191: */ }
-/* 192:152 */ tCasingAmount++;
-/* 193: */ }
-/* 194: */ }
-/* 195: */ }
-/* 196: */ }
-/* 197:157 */ for (int i = -1; i < 2; i++) {
-/* 198:157 */ for (int j = -1; j < 2; j++) {
-/* 199:157 */ if ((xDir + i != 0) || (zDir + j != 0))
-/* 200: */ {
-/* 201:158 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
-/* 202:159 */ if ((!addMaintenanceToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addInputToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addMufflerToMachineList(tTileEntity, getFireboxTextureIndex())))
-/* 203: */ {
-/* 204:160 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != getFireboxBlock()) {
-/* 205:160 */ return false;
-/* 206: */ }
-/* 207:161 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != getFireboxMeta()) {
-/* 208:161 */ return false;
-/* 209: */ }
-/* 210:162 */ tFireboxAmount++;
-/* 211: */ }
-/* 212: */ }
-/* 213: */ }
-/* 214: */ }
-/* 215:166 */ return (tCasingAmount >= 24) && (tFireboxAmount >= 3);
-/* 216: */ }
-/* 217: */
-/* 218: */ public int getMaxEfficiency(ItemStack aStack)
-/* 219: */ {
-/* 220:171 */ return 10000;
-/* 221: */ }
-/* 222: */
-/* 223: */ public int getPollutionPerTick(ItemStack aStack)
-/* 224: */ {
-/* 225:176 */ return 10;
-/* 226: */ }
-/* 227: */
-/* 228: */ public int getDamageToComponent(ItemStack aStack)
-/* 229: */ {
-/* 230:181 */ return 0;
-/* 231: */ }
-/* 232: */
-/* 233: */ public int getAmountOfOutputs()
-/* 234: */ {
-/* 235:186 */ return 1;
-/* 236: */ }
-/* 237: */
-/* 238: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 239: */ {
-/* 240:191 */ return false;
-/* 241: */ }
-/* 242: */ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+
+ int tCasingAmount = 0;int tFireboxAmount = 0;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((i != 0) || (j != 0))
+ {
+ for (int k = 1; k <= 4; k++) {
+ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, k, zDir + j), getCasingTextureIndex()))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getCasingBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getCasingMeta()) {
+ return false;
+ }
+ tCasingAmount++;
+ }
+ }
+ }
+ else
+ {
+ for (int k = 1; k <= 3; k++)
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, k, zDir + j) != getPipeBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, k, zDir + j) != getPipeMeta()) {
+ return false;
+ }
+ }
+ if (!addOutputToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 4, zDir + j), getCasingTextureIndex()))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 4, zDir + j) != getCasingBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 4, zDir + j) != getCasingMeta()) {
+ return false;
+ }
+ tCasingAmount++;
+ }
+ }
+ }
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((xDir + i != 0) || (zDir + j != 0))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addInputToMachineList(tTileEntity, getFireboxTextureIndex())) && (!addMufflerToMachineList(tTileEntity, getFireboxTextureIndex())))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != getFireboxBlock()) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != getFireboxMeta()) {
+ return false;
+ }
+ tFireboxAmount++;
+ }
+ }
+ }
+ }
+ return (tCasingAmount >= 24) && (tFireboxAmount >= 3);
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 10;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 1;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java index 434a34799d..c0c362d2c5 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Bronze.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_Bronze
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_Bronze(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_Bronze(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_Bronze(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings1;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 10;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 10;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 12;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings3;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 13;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 45;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 400;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 16;
-/* 74: */ }
-/* 75: */ }
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_Bronze
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_Bronze(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_Bronze(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_Bronze(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings1;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 10;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 10;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 12;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings3;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 13;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 45;
+ }
+
+ public int getEUt()
+ {
+ return 400;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 16;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java index 7532795cb1..c6f16a7d4f 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Steel.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_Steel
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_Steel(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_Steel(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_Steel(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings2;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 0;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 16;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 13;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings3;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 14;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 46;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 600;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 12;
-/* 74: */ }
-/* 75: */ }
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_Steel
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_Steel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_Steel(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_Steel(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 0;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 16;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 13;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings3;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 14;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 46;
+ }
+
+ public int getEUt()
+ {
+ return 600;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 12;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java index a5c906827a..7d11836a19 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_Titanium.java @@ -1,75 +1,75 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_Titanium
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_Titanium(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_Titanium(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_Titanium(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings4;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 2;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 50;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 14;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings4;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 3;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 51;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 800;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 8;
-/* 74: */ }
-/* 75: */ }
\ No newline at end of file +package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_Titanium
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_Titanium(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_Titanium(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_Titanium(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings4;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 2;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 50;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 14;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings4;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 3;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 51;
+ }
+
+ public int getEUt()
+ {
+ return 800;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 8;
+ }
+}
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java index 8356a29c3d..399ba2dcf4 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeBoiler_TungstenSteel.java @@ -1,78 +1,78 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
-/* 4: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 5: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 6: */ import net.minecraft.block.Block;
-/* 7: */
-/* 8: */ public class GT_MetaTileEntity_LargeBoiler_TungstenSteel
-/* 9: */ extends GT_MetaTileEntity_LargeBoiler
-/* 10: */ {
-/* 11: */ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(int aID, String aName, String aNameRegional)
-/* 12: */ {
-/* 13:10 */ super(aID, aName, aNameRegional);
-/* 14: */ }
-/* 15: */
-/* 16: */ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(String aName)
-/* 17: */ {
-/* 18:14 */ super(aName);
-/* 19: */ }
-/* 20: */
-/* 21: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 22: */ {
-/* 23:19 */ return new GT_MetaTileEntity_LargeBoiler_TungstenSteel(this.mName);
-/* 24: */ }
-/* 25: */
-/* 26: */ public Block getCasingBlock()
-/* 27: */ {
-/* 28:22 */ return GregTech_API.sBlockCasings4;
-/* 29: */ }
-/* 30: */
-/* 31: */ public byte getCasingMeta()
-/* 32: */ {
-/* 33:23 */ return 0;
-/* 34: */ }
-/* 35: */
-/* 36: */ public byte getCasingTextureIndex()
-/* 37: */ {
-/* 38:24 */ return 48;
-/* 39: */ }
-/* 40: */
-/* 41: */ public Block getPipeBlock()
-/* 42: */ {
-/* 43:26 */ return GregTech_API.sBlockCasings2;
-/* 44: */ }
-/* 45: */
-/* 46: */ public byte getPipeMeta()
-/* 47: */ {
-/* 48:27 */ return 15;
-/* 49: */ }
-/* 50: */
-/* 51: */ public Block getFireboxBlock()
-/* 52: */ {
-/* 53:29 */ return GregTech_API.sBlockCasings3;
-/* 54: */ }
-/* 55: */
-/* 56: */ public byte getFireboxMeta()
-/* 57: */ {
-/* 58:30 */ return 15;
-/* 59: */ }
-/* 60: */
-/* 61: */ public byte getFireboxTextureIndex()
-/* 62: */ {
-/* 63:31 */ return 47;
-/* 64: */ }
-/* 65: */
-/* 66: */ public int getEUt()
-/* 67: */ {
-/* 68:33 */ return 1000;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int getEfficiencyIncrease()
-/* 72: */ {
-/* 73:34 */ return 4;
-/* 74: */ }
-/* 75: */ }
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import net.minecraft.block.Block;
+
+public class GT_MetaTileEntity_LargeBoiler_TungstenSteel
+ extends GT_MetaTileEntity_LargeBoiler
+{
+ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_LargeBoiler_TungstenSteel(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_LargeBoiler_TungstenSteel(this.mName);
+ }
+
+ public Block getCasingBlock()
+ {
+ return GregTech_API.sBlockCasings4;
+ }
+
+ public byte getCasingMeta()
+ {
+ return 0;
+ }
+
+ public byte getCasingTextureIndex()
+ {
+ return 48;
+ }
+
+ public Block getPipeBlock()
+ {
+ return GregTech_API.sBlockCasings2;
+ }
+
+ public byte getPipeMeta()
+ {
+ return 15;
+ }
+
+ public Block getFireboxBlock()
+ {
+ return GregTech_API.sBlockCasings3;
+ }
+
+ public byte getFireboxMeta()
+ {
+ return 15;
+ }
+
+ public byte getFireboxTextureIndex()
+ {
+ return 47;
+ }
+
+ public int getEUt()
+ {
+ return 1000;
+ }
+
+ public int getEfficiencyIncrease()
+ {
+ return 4;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java index ae50fec788..f1017a18a3 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_MultiFurnace.java @@ -1,192 +1,192 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_ModHandler;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_ModHandler;
import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 14: */ import java.util.ArrayList;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */ import net.minecraft.item.ItemStack;
-/* 17: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 18: */
-/* 19: */ public class GT_MetaTileEntity_MultiFurnace
-/* 20: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 21: */ {
-/* 22: 22 */ private int mLevel = 0;
-/* 23: */
-/* 24: */ public GT_MetaTileEntity_MultiFurnace(int aID, String aName, String aNameRegional)
-/* 25: */ {
-/* 26: 25 */ super(aID, aName, aNameRegional);
-/* 27: */ }
-/* 28: */
-/* 29: */ public GT_MetaTileEntity_MultiFurnace(String aName)
-/* 30: */ {
-/* 31: 29 */ super(aName);
-/* 32: */ }
-/* 33: */
-/* 34: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 35: */ {
-/* 36: 34 */ return new GT_MetaTileEntity_MultiFurnace(this.mName);
-/* 37: */ }
-/* 38: */
-/* 39: */ public String[] getDescription()
-/* 40: */ {
-/* 41: 39 */ return new String[] { "Smelts up to 6-18 Items at once", "Controller Block for the Multi Smelter", "Size: 3x3x3 (Hollow)", "Controller (front middle at bottom)", "8x Heating Coils (middle Layer, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
-/* 42: */ }
-/* 43: */
-/* 44: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 45: */ {
-/* 46: 44 */ if (aSide == aFacing) {
-/* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER) };
-/* 48: */ }
-/* 49: 45 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
-/* 50: */ }
-/* 51: */
-/* 52: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 53: */ {
-/* 54: 50 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "MultiFurnace.png");
-/* 55: */ }
-/* 56: */
-/* 57: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 58: */ {
-/* 59: 55 */ return GT_Recipe.GT_Recipe_Map.sFurnaceRecipes;
-/* 60: */ }
-/* 61: */
-/* 62: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 63: */ {
-/* 64: 60 */ return true;
-/* 65: */ }
-/* 66: */
-/* 67: */ public boolean isFacingValid(byte aFacing)
-/* 68: */ {
-/* 69: 63 */ return aFacing > 1;
-/* 70: */ }
-/* 71: */
-/* 72: */ public boolean checkRecipe(ItemStack aStack)
-/* 73: */ {
-/* 74: 67 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 75: 69 */ if (!tInputList.isEmpty())
-/* 76: */ {
-/* 77: 70 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(getMaxInputVoltage()));
-/* 78: */
-/* 79: 72 */ int j = 0;
-/* 80: 73 */ this.mOutputItems = new ItemStack[6 * this.mLevel];
-/* 81: 75 */ for (int i = 0; (i < 100) && (j < this.mOutputItems.length); i++) {
-/* 82: 75 */ if (null != (this.mOutputItems[j] = GT_ModHandler.getSmeltingOutput((ItemStack)tInputList.get(i % tInputList.size()), true, null))) {
-/* 83: 75 */ j++;
-/* 84: */ }
-/* 85: */ }
-/* 86: 77 */ if (j > 0)
-/* 87: */ {
-/* 88: 78 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 89: 79 */ this.mEfficiencyIncrease = 10000;
-/* 90: */
-/* 91: 81 */ this.mEUt = (-4 * (1 << tTier - 1) * (1 << tTier - 1) * this.mLevel);
-/* 92: 82 */ this.mMaxProgresstime = Math.max(1, 512 / (1 << tTier - 1));
-/* 93: */ }
-/* 94: 85 */ updateSlots();
-/* 95: 86 */ return true;
-/* 96: */ }
-/* 97: 88 */ return false;
-/* 98: */ }
-/* 99: */
-/* 100: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 101: */ {
-/* 102: 93 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 103: */
-/* 104: 95 */ this.mLevel = 0;
-/* 105: 97 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
-/* 106: 97 */ return false;
-/* 107: */ }
-/* 108: 99 */ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 2, zDir), 11);
-/* 109: */
-/* 110:101 */ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 1, zDir);
-/* 111:103 */ switch (tUsedMeta)
-/* 112: */ {
-/* 113: */ case 12:
-/* 114:104 */ this.mLevel = 1; break;
-/* 115: */ case 13:
-/* 116:105 */ this.mLevel = 2; break;
-/* 117: */ case 14:
-/* 118:106 */ this.mLevel = 3; break;
-/* 119: */ default:
-/* 120:107 */ return false;
-/* 121: */ }
-/* 122:110 */ for (int i = -1; i < 2; i++) {
-/* 123:110 */ for (int j = -1; j < 2; j++) {
-/* 124:110 */ if ((i != 0) || (j != 0))
-/* 125: */ {
-/* 126:111 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 127:111 */ return false;
-/* 128: */ }
-/* 129:112 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
-/* 130:112 */ return false;
-/* 131: */ }
-/* 132:113 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 133:113 */ return false;
-/* 134: */ }
-/* 135:114 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != 11) {
-/* 136:114 */ return false;
-/* 137: */ }
-/* 138: */ }
-/* 139: */ }
-/* 140: */ }
-/* 141:117 */ for (int i = -1; i < 2; i++) {
-/* 142:117 */ for (int j = -1; j < 2; j++) {
-/* 143:117 */ if ((xDir + i != 0) || (zDir + j != 0))
-/* 144: */ {
-/* 145:118 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
-/* 146:119 */ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
-/* 147: */ {
-/* 148:120 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
-/* 149:120 */ return false;
-/* 150: */ }
-/* 151:121 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
-/* 152:121 */ return false;
-/* 153: */ }
-/* 154: */ }
-/* 155: */ }
-/* 156: */ }
-/* 157: */ }
-/* 158:125 */ return true;
-/* 159: */ }
-/* 160: */
-/* 161: */ public int getMaxEfficiency(ItemStack aStack)
-/* 162: */ {
-/* 163:130 */ return 10000;
-/* 164: */ }
-/* 165: */
-/* 166: */ public int getPollutionPerTick(ItemStack aStack)
-/* 167: */ {
-/* 168:135 */ return 20;
-/* 169: */ }
-/* 170: */
-/* 171: */ public int getDamageToComponent(ItemStack aStack)
-/* 172: */ {
-/* 173:140 */ return 0;
-/* 174: */ }
-/* 175: */
-/* 176: */ public int getAmountOfOutputs()
-/* 177: */ {
-/* 178:145 */ return 18;
-/* 179: */ }
-/* 180: */
-/* 181: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 182: */ {
-/* 183:150 */ return false;
-/* 184: */ }
-/* 185: */ }
+public class GT_MetaTileEntity_MultiFurnace
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ private int mLevel = 0;
+
+ public GT_MetaTileEntity_MultiFurnace(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_MultiFurnace(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_MultiFurnace(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Smelts up to 6-18 Items at once", "Controller Block for the Multi Smelter", "Size: 3x3x3 (Hollow)", "Controller (front middle at bottom)", "8x Heating Coils (middle Layer, hollow)", "1x Input (one of bottom)", "1x Output (one of bottom)", "1x Energy Hatch (one of bottom)", "1x Maintenance Hatch (one of bottom)", "1x Muffler Hatch (top middle)", "Heat Proof Machine Casings for the rest" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_MULTI_SMELTER) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[11] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "MultiFurnace.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sFurnaceRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ if (!tInputList.isEmpty())
+ {
+ byte tTier = (byte)Math.max(1, GT_Utility.getTier(getMaxInputVoltage()));
+
+ int j = 0;
+ this.mOutputItems = new ItemStack[6 * this.mLevel];
+ for (int i = 0; (i < 100) && (j < this.mOutputItems.length); i++) {
+ if (null != (this.mOutputItems[j] = GT_ModHandler.getSmeltingOutput((ItemStack)tInputList.get(i % tInputList.size()), true, null))) {
+ j++;
+ }
+ }
+ if (j > 0)
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+
+ this.mEUt = (-4 * (1 << tTier - 1) * (1 << tTier - 1) * this.mLevel);
+ this.mMaxProgresstime = Math.max(1, 512 / (1 << tTier - 1));
+ }
+ updateSlots();
+ return true;
+ }
+ return false;
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+
+ this.mLevel = 0;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 1, zDir)) {
+ return false;
+ }
+ addMufflerToMachineList(aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir, 2, zDir), 11);
+
+ byte tUsedMeta = aBaseMetaTileEntity.getMetaIDOffset(xDir + 1, 1, zDir);
+ switch (tUsedMeta)
+ {
+ case 12:
+ this.mLevel = 1; break;
+ case 13:
+ this.mLevel = 2; break;
+ case 14:
+ this.mLevel = 3; break;
+ default:
+ return false;
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((i != 0) || (j != 0))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 1, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 1, zDir + j) != tUsedMeta) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 2, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 2, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ if ((xDir + i != 0) || (zDir + j != 0))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, 0, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 11)) && (!addInputToMachineList(tTileEntity, 11)) && (!addOutputToMachineList(tTileEntity, 11)) && (!addEnergyInputToMachineList(tTileEntity, 11)))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, 0, zDir + j) != GregTech_API.sBlockCasings1) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, 0, zDir + j) != 11) {
+ return false;
+ }
+ }
+ }
+ }
+ }
+ return true;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 20;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 18;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java index 4726181726..6bc1f36794 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_ProcessingArray.java @@ -21,41 +21,41 @@ import gregtech.api.util.GT_Utility; public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBlockBase{ - /* 22: */ public GT_MetaTileEntity_ProcessingArray(int aID, String aName, String aNameRegional) - /* 23: */ { - /* 24: 24 */ super(aID, aName, aNameRegional); - /* 25: */ } - /* 26: */ - /* 27: */ public GT_MetaTileEntity_ProcessingArray(String aName) - /* 28: */ { - /* 29: 28 */ super(aName); - /* 30: */ } - /* 31: */ - /* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) - /* 33: */ { - /* 34: 33 */ return new GT_MetaTileEntity_ProcessingArray(this.mName); - /* 35: */ } - /* 36: */ - /* 37: */ public String[] getDescription() - /* 38: */ { - /* 39: 38 */ return new String[] { "Controller Block for the Processing Array", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Robust Tungstensteel Casings for the rest (16 at least!)","Put up to 16 Basic Machines into the GUI Inventory","Currently only fluid Centrifuge Recipes work correctly","Make Deuterium/Tritium with it." }; - /* 40: */ } - /* 41: */ - /* 42: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) - /* 43: */ { - /* 44: 43 */ if (aSide == aFacing) { - /* 45: 43 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; - /* 46: */ } - /* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48] }; - /* 48: */ } - /* 49: */ - /* 50: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) - /* 51: */ { - /* 52: 49 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); - /* 53: */ } - /* 54: */ - /* 55: */ public GT_Recipe.GT_Recipe_Map getRecipeMap() - /* 56: */ { + public GT_MetaTileEntity_ProcessingArray(int aID, String aName, String aNameRegional) + { + super(aID, aName, aNameRegional); + } + + public GT_MetaTileEntity_ProcessingArray(String aName) + { + super(aName); + } + + public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) + { + return new GT_MetaTileEntity_ProcessingArray(this.mName); + } + + public String[] getDescription() + { + return new String[] { "Controller Block for the Processing Array", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Robust Tungstensteel Casings for the rest (16 at least!)","Put up to 16 Basic Machines into the GUI Inventory","Currently only fluid Centrifuge Recipes work correctly","Make Deuterium/Tritium with it." }; + } + + public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone) + { + if (aSide == aFacing) { + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_LARGE_BOILER) }; + } + return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[48] }; + } + + public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity) + { + return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png"); + } + + public GT_Recipe.GT_Recipe_Map getRecipeMap() + { if(mInventory[1]==null)return null; String tmp = mInventory[1].getUnlocalizedName().replaceAll("gt.blockmachines.basicmachine.", ""); if(tmp.startsWith("centrifuge")){ @@ -93,55 +93,55 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl }else if(tmp.startsWith("sifter")){ return GT_Recipe.GT_Recipe_Map.sSifterRecipes; } - /* 57: 54 */ return null; - /* 58: */ } - /* 59: */ - /* 60: */ public boolean isCorrectMachinePart(ItemStack aStack) - /* 61: */ { + return null; + } + + public boolean isCorrectMachinePart(ItemStack aStack) + { if(aStack!=null&&aStack.getUnlocalizedName().startsWith("gt.blockmachines.basicmachine.")){ - /* 62: 59 */ return true;} + return true;} return false; - /* 63: */ } - /* 64: */ - /* 65: */ public boolean isFacingValid(byte aFacing) - /* 66: */ { - /* 67: 62 */ return aFacing > 1; - /* 68: */ } - /* 69: */ + } + + public boolean isFacingValid(byte aFacing) + { + return aFacing > 1; + } + GT_Recipe mLastRecipe; - /* 70: */ public boolean checkRecipe(ItemStack aStack){ + public boolean checkRecipe(ItemStack aStack){ if(!isCorrectMachinePart(mInventory[1])){return false;} GT_Recipe.GT_Recipe_Map map = getRecipeMap(); if(map==null){return false;} - /* 72: 66 */ ArrayList<ItemStack> tInputList = getStoredInputs(); - /* 76: 70 */ int tTier = 0; + ArrayList<ItemStack> tInputList = getStoredInputs(); + int tTier = 0; if(mInventory[1].getUnlocalizedName().endsWith("1")){tTier=1;} if(mInventory[1].getUnlocalizedName().endsWith("2")){tTier=2;} if(mInventory[1].getUnlocalizedName().endsWith("3")){tTier=3;} if(mInventory[1].getUnlocalizedName().endsWith("4")){tTier=4;} if(mInventory[1].getUnlocalizedName().endsWith("5")){tTier=5;} - /* 77: 71 */ for (int i = 0; i < tInputList.size() - 1; i++) { - /* 78: 71 */ for (int j = i + 1; j < tInputList.size(); j++) { - /* 79: 72 */ if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) { - /* 80: 73 */ if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize) - /* 81: */ { - /* 82: 73 */ tInputList.remove(j--); - /* 83: */ } - /* 84: */ else - /* 85: */ { - /* 86: 73 */ tInputList.remove(i--); break; - /* 87: */ } - /* 88: */ } - /* 89: */ } - /* 90: */ } - /* 91: 76 */ ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2); - /* 92: */ - /* 93: 78 */ ArrayList<FluidStack> tFluidList = getStoredFluids(); - /* 94: 79 */ for (int i = 0; i < tFluidList.size() - 1; i++) { - /* 95: 79 */ for (int j = i + 1; j < tFluidList.size(); j++) { - /* 96: 80 */ if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) { - /* 97: 81 */ if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount) - /* 98: */ { + for (int i = 0; i < tInputList.size() - 1; i++) { + for (int j = i + 1; j < tInputList.size(); j++) { + if (GT_Utility.areStacksEqual((ItemStack)tInputList.get(i), (ItemStack)tInputList.get(j))) { + if (((ItemStack)tInputList.get(i)).stackSize >= ((ItemStack)tInputList.get(j)).stackSize) + { + tInputList.remove(j--); + } + else + { + tInputList.remove(i--); break; + } + } + } + } + ItemStack[] tInputs = (ItemStack[])Arrays.copyOfRange(tInputList.toArray(new ItemStack[tInputList.size()]), 0, 2); + + ArrayList<FluidStack> tFluidList = getStoredFluids(); + for (int i = 0; i < tFluidList.size() - 1; i++) { + for (int j = i + 1; j < tFluidList.size(); j++) { + if (GT_Utility.areFluidsEqual((FluidStack)tFluidList.get(i), (FluidStack)tFluidList.get(j))) { + if (((FluidStack)tFluidList.get(i)).amount >= ((FluidStack)tFluidList.get(j)).amount) + { tFluidList.remove(j--); } else @@ -153,8 +153,8 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl } FluidStack[] tFluids = (FluidStack[])Arrays.copyOfRange(tFluidList.toArray(new FluidStack[tInputList.size()]), 0, 1); if(tInputList.size() > 0 || tFluids.length>0){ - /* 78: 72 */ GT_Recipe tRecipe = map.findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs); - /* 79: 73 */ if (tRecipe != null) { + GT_Recipe tRecipe = map.findRecipe(getBaseMetaTileEntity(), mLastRecipe, false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs); + if (tRecipe != null) { mLastRecipe = tRecipe; this.mEUt = 0; this.mOutputItems = null; @@ -215,45 +215,45 @@ public class GT_MetaTileEntity_ProcessingArray extends GT_MetaTileEntity_MultiBl this.mOutputFluids = new FluidStack[]{tFOut}; // System.out.println("ArrayOut"+mOutputItems.length+" "+mOutputFluids.length+" "+(mOutputItems.length>0?mOutputItems[0].getUnlocalizedName():"")+" "+(mOutputFluids.length>0?mOutputFluids[0].getUnlocalizedName():" ")); updateSlots(); - /* 105: 93 */ return true; - /* 107: */ } + return true; + } } - /* 109: 96 */ return false; - /* 110: */ } - /* 111: */ - /* 112: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) - /* 113: */ { - /* 114:101 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; - /* 115:103 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) { - /* 116:103 */ return false; - /* 117: */ } - /* 118:105 */ int tAmount = 0; - /* 119:107 */ for (int i = -1; i < 2; i++) { - /* 120:107 */ for (int j = -1; j < 2; j++) { - /* 121:107 */ for (int h = -1; h < 2; h++) { - /* 122:107 */ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0)))) - /* 123: */ { - /* 124:108 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); - /* 125:109 */ if ((!addMaintenanceToMachineList(tTileEntity, 48)) && (!addInputToMachineList(tTileEntity, 48)) && (!addOutputToMachineList(tTileEntity, 48)) && (!addEnergyInputToMachineList(tTileEntity, 48))) - /* 126: */ { - /* 127:110 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { - /* 128:110 */ return false; - /* 129: */ } - /* 130:111 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 0) { - /* 131:111 */ return false; - /* 132: */ } - /* 133:112 */ tAmount++; - /* 134: */ } - /* 135: */ } - /* 136: */ } - /* 137: */ } - /* 138: */ } - /* 139:116 */ return tAmount >= 16; - /* 140: */ } - /* 141: */ - /* 142: */ public int getMaxEfficiency(ItemStack aStack){return 10000;} - /* 147: */ public int getPollutionPerTick(ItemStack aStack){return 0;} - /* 152: */ public int getDamageToComponent(ItemStack aStack){return 0;} - /* 157: */ public int getAmountOfOutputs(){return 1;} - /* 162: */ public boolean explodesOnComponentBreak(ItemStack aStack){return false;} - /* 166: */ }
\ No newline at end of file + return false; + } + + public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack) + { + int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ; + if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) { + return false; + } + int tAmount = 0; + for (int i = -1; i < 2; i++) { + for (int j = -1; j < 2; j++) { + for (int h = -1; h < 2; h++) { + if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0)))) + { + IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j); + if ((!addMaintenanceToMachineList(tTileEntity, 48)) && (!addInputToMachineList(tTileEntity, 48)) && (!addOutputToMachineList(tTileEntity, 48)) && (!addEnergyInputToMachineList(tTileEntity, 48))) + { + if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings4) { + return false; + } + if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 0) { + return false; + } + tAmount++; + } + } + } + } + } + return tAmount >= 16; + } + + public int getMaxEfficiency(ItemStack aStack){return 10000;} + public int getPollutionPerTick(ItemStack aStack){return 0;} + public int getDamageToComponent(ItemStack aStack){return 0;} + public int getAmountOfOutputs(){return 1;} + public boolean explodesOnComponentBreak(ItemStack aStack){return false;} + }
\ No newline at end of file diff --git a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java index 14facd8a71..e416905b7c 100644 --- a/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java +++ b/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_VacuumFreezer.java @@ -1,172 +1,172 @@ -/* 1: */ package gregtech.common.tileentities.machines.multi;
-/* 2: */
-/* 3: */ import gregtech.api.GregTech_API;
+package gregtech.common.tileentities.machines.multi;
+
+import gregtech.api.GregTech_API;
import gregtech.api.enums.Textures;
-/* 4: */ import gregtech.api.enums.Textures.BlockIcons;
-/* 5: */ import gregtech.api.gui.GT_GUIContainer_MultiMachine;
-/* 6: */ import gregtech.api.interfaces.ITexture;
-/* 7: */ import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
-/* 8: */ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
-/* 9: */ import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
-/* 10: */ import gregtech.api.objects.GT_RenderedTexture;
-/* 11: */ import gregtech.api.util.GT_Recipe;
-/* 12: */ import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
-/* 13: */ import gregtech.api.util.GT_Utility;
+import gregtech.api.enums.Textures.BlockIcons;
+import gregtech.api.gui.GT_GUIContainer_MultiMachine;
+import gregtech.api.interfaces.ITexture;
+import gregtech.api.interfaces.metatileentity.IMetaTileEntity;
+import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
+import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_MultiBlockBase;
+import gregtech.api.objects.GT_RenderedTexture;
+import gregtech.api.util.GT_Recipe;
+import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
+import gregtech.api.util.GT_Utility;
+
+import java.util.ArrayList;
-/* 14: */ import java.util.ArrayList;
+import net.minecraft.entity.player.InventoryPlayer;
+import net.minecraft.item.ItemStack;
+import net.minecraftforge.common.util.ForgeDirection;
-/* 15: */ import net.minecraft.entity.player.InventoryPlayer;
-/* 16: */ import net.minecraft.item.ItemStack;
-/* 17: */ import net.minecraftforge.common.util.ForgeDirection;
-/* 18: */
-/* 19: */ public class GT_MetaTileEntity_VacuumFreezer
-/* 20: */ extends GT_MetaTileEntity_MultiBlockBase
-/* 21: */ {
-/* 22: */ public GT_MetaTileEntity_VacuumFreezer(int aID, String aName, String aNameRegional)
-/* 23: */ {
-/* 24: 24 */ super(aID, aName, aNameRegional);
-/* 25: */ }
-/* 26: */
-/* 27: */ public GT_MetaTileEntity_VacuumFreezer(String aName)
-/* 28: */ {
-/* 29: 28 */ super(aName);
-/* 30: */ }
-/* 31: */
-/* 32: */ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
-/* 33: */ {
-/* 34: 33 */ return new GT_MetaTileEntity_VacuumFreezer(this.mName);
-/* 35: */ }
-/* 36: */
-/* 37: */ public String[] getDescription()
-/* 38: */ {
-/* 39: 38 */ return new String[] { "Controller Block for the Vacuum Freezer", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Frost Proof Casings for the rest (16 at least!)" };
-/* 40: */ }
-/* 41: */
-/* 42: */ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
-/* 43: */ {
-/* 44: 43 */ if (aSide == aFacing) {
-/* 45: 43 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) };
-/* 46: */ }
-/* 47: 44 */ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17] };
-/* 48: */ }
-/* 49: */
-/* 50: */ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
-/* 51: */ {
-/* 52: 49 */ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png");
-/* 53: */ }
-/* 54: */
-/* 55: */ public GT_Recipe.GT_Recipe_Map getRecipeMap()
-/* 56: */ {
-/* 57: 54 */ return GT_Recipe.GT_Recipe_Map.sVacuumRecipes;
-/* 58: */ }
-/* 59: */
-/* 60: */ public boolean isCorrectMachinePart(ItemStack aStack)
-/* 61: */ {
-/* 62: 59 */ return true;
-/* 63: */ }
-/* 64: */
-/* 65: */ public boolean isFacingValid(byte aFacing)
-/* 66: */ {
-/* 67: 62 */ return aFacing > 1;
-/* 68: */ }
-/* 69: */
-/* 70: */ public boolean checkRecipe(ItemStack aStack)
-/* 71: */ {
-/* 72: 66 */ ArrayList<ItemStack> tInputList = getStoredInputs();
-/* 73: 68 */ for (ItemStack tInput : tInputList)
-/* 74: */ {
-/* 75: 69 */ long tVoltage = getMaxInputVoltage();
-/* 76: 70 */ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
-/* 77: */
-/* 78: 72 */ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sVacuumRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], null, new ItemStack[] { tInput });
-/* 79: 73 */ if (tRecipe != null) {
-/* 80: 73 */ if (tRecipe.isRecipeInputEqual(true, null, new ItemStack[] { tInput }))
-/* 81: */ {
-/* 82: 74 */ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
-/* 83: 75 */ this.mEfficiencyIncrease = 10000;
-/* 84: 77 */ if (tRecipe.mEUt <= 16)
-/* 85: */ {
-/* 86: 78 */ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
-/* 87: 79 */ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
-/* 88: */ }
-/* 89: */ else
-/* 90: */ {
-/* 91: 81 */ this.mEUt = tRecipe.mEUt;
-/* 92: 82 */ this.mMaxProgresstime = tRecipe.mDuration;
-/* 93: 83 */ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
-/* 94: */ {
-/* 95: 84 */ this.mEUt *= 4;
-/* 96: 85 */ this.mMaxProgresstime /= 2;
-/* 97: */ }
-/* 98: */ }
-/* 99: 89 */ if (this.mEUt > 0) {
-/* 100: 89 */ this.mEUt = (-this.mEUt);
-/* 101: */ }
-/* 102: 90 */ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
-/* 103: 91 */ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) };
-/* 104: 92 */ updateSlots();
-/* 105: 93 */ return true;
-/* 106: */ }
-/* 107: */ }
-/* 108: */ }
-/* 109: 96 */ return false;
-/* 110: */ }
-/* 111: */
-/* 112: */ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
-/* 113: */ {
-/* 114:101 */ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
-/* 115:103 */ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
-/* 116:103 */ return false;
-/* 117: */ }
-/* 118:105 */ int tAmount = 0;
-/* 119:107 */ for (int i = -1; i < 2; i++) {
-/* 120:107 */ for (int j = -1; j < 2; j++) {
-/* 121:107 */ for (int h = -1; h < 2; h++) {
-/* 122:107 */ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
-/* 123: */ {
-/* 124:108 */ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
-/* 125:109 */ if ((!addMaintenanceToMachineList(tTileEntity, 17)) && (!addInputToMachineList(tTileEntity, 17)) && (!addOutputToMachineList(tTileEntity, 17)) && (!addEnergyInputToMachineList(tTileEntity, 17)))
-/* 126: */ {
-/* 127:110 */ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings2) {
-/* 128:110 */ return false;
-/* 129: */ }
-/* 130:111 */ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 1) {
-/* 131:111 */ return false;
-/* 132: */ }
-/* 133:112 */ tAmount++;
-/* 134: */ }
-/* 135: */ }
-/* 136: */ }
-/* 137: */ }
-/* 138: */ }
-/* 139:116 */ return tAmount >= 16;
-/* 140: */ }
-/* 141: */
-/* 142: */ public int getMaxEfficiency(ItemStack aStack)
-/* 143: */ {
-/* 144:121 */ return 10000;
-/* 145: */ }
-/* 146: */
-/* 147: */ public int getPollutionPerTick(ItemStack aStack)
-/* 148: */ {
-/* 149:126 */ return 0;
-/* 150: */ }
-/* 151: */
-/* 152: */ public int getDamageToComponent(ItemStack aStack)
-/* 153: */ {
-/* 154:131 */ return 0;
-/* 155: */ }
-/* 156: */
-/* 157: */ public int getAmountOfOutputs()
-/* 158: */ {
-/* 159:136 */ return 1;
-/* 160: */ }
-/* 161: */
-/* 162: */ public boolean explodesOnComponentBreak(ItemStack aStack)
-/* 163: */ {
-/* 164:141 */ return false;
-/* 165: */ }
-/* 166: */ }
+public class GT_MetaTileEntity_VacuumFreezer
+ extends GT_MetaTileEntity_MultiBlockBase
+{
+ public GT_MetaTileEntity_VacuumFreezer(int aID, String aName, String aNameRegional)
+ {
+ super(aID, aName, aNameRegional);
+ }
+
+ public GT_MetaTileEntity_VacuumFreezer(String aName)
+ {
+ super(aName);
+ }
+
+ public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity)
+ {
+ return new GT_MetaTileEntity_VacuumFreezer(this.mName);
+ }
+
+ public String[] getDescription()
+ {
+ return new String[] { "Controller Block for the Vacuum Freezer", "Size: 3x3x3 (Hollow)", "Controller (front centered)", "1x Input (anywhere)", "1x Output (anywhere)", "1x Energy Hatch (anywhere)", "1x Maintenance Hatch (anywhere)", "Frost Proof Casings for the rest (16 at least!)" };
+ }
+
+ public ITexture[] getTexture(IGregTechTileEntity aBaseMetaTileEntity, byte aSide, byte aFacing, byte aColorIndex, boolean aActive, boolean aRedstone)
+ {
+ if (aSide == aFacing) {
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17], new GT_RenderedTexture(aActive ? Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER_ACTIVE : Textures.BlockIcons.OVERLAY_FRONT_VACUUM_FREEZER) };
+ }
+ return new ITexture[] { Textures.BlockIcons.CASING_BLOCKS[17] };
+ }
+
+ public Object getClientGUI(int aID, InventoryPlayer aPlayerInventory, IGregTechTileEntity aBaseMetaTileEntity)
+ {
+ return new GT_GUIContainer_MultiMachine(aPlayerInventory, aBaseMetaTileEntity, getLocalName(), "VacuumFreezer.png");
+ }
+
+ public GT_Recipe.GT_Recipe_Map getRecipeMap()
+ {
+ return GT_Recipe.GT_Recipe_Map.sVacuumRecipes;
+ }
+
+ public boolean isCorrectMachinePart(ItemStack aStack)
+ {
+ return true;
+ }
+
+ public boolean isFacingValid(byte aFacing)
+ {
+ return aFacing > 1;
+ }
+
+ public boolean checkRecipe(ItemStack aStack)
+ {
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ for (ItemStack tInput : tInputList)
+ {
+ long tVoltage = getMaxInputVoltage();
+ byte tTier = (byte)Math.max(1, GT_Utility.getTier(tVoltage));
+
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sVacuumRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], null, new ItemStack[] { tInput });
+ if (tRecipe != null) {
+ if (tRecipe.isRecipeInputEqual(true, null, new ItemStack[] { tInput }))
+ {
+ this.mEfficiency = (10000 - (getIdealStatus() - getRepairStatus()) * 1000);
+ this.mEfficiencyIncrease = 10000;
+ if (tRecipe.mEUt <= 16)
+ {
+ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
+ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
+ }
+ else
+ {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = tRecipe.mDuration;
+ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)])
+ {
+ this.mEUt *= 4;
+ this.mMaxProgresstime /= 2;
+ }
+ }
+ if (this.mEUt > 0) {
+ this.mEUt = (-this.mEUt);
+ }
+ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
+ this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) };
+ updateSlots();
+ return true;
+ }
+ }
+ }
+ return false;
+ }
+
+ public boolean checkMachine(IGregTechTileEntity aBaseMetaTileEntity, ItemStack aStack)
+ {
+ int xDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetX;int zDir = ForgeDirection.getOrientation(aBaseMetaTileEntity.getBackFacing()).offsetZ;
+ if (!aBaseMetaTileEntity.getAirOffset(xDir, 0, zDir)) {
+ return false;
+ }
+ int tAmount = 0;
+ for (int i = -1; i < 2; i++) {
+ for (int j = -1; j < 2; j++) {
+ for (int h = -1; h < 2; h++) {
+ if ((h != 0) || (((xDir + i != 0) || (zDir + j != 0)) && ((i != 0) || (j != 0))))
+ {
+ IGregTechTileEntity tTileEntity = aBaseMetaTileEntity.getIGregTechTileEntityOffset(xDir + i, h, zDir + j);
+ if ((!addMaintenanceToMachineList(tTileEntity, 17)) && (!addInputToMachineList(tTileEntity, 17)) && (!addOutputToMachineList(tTileEntity, 17)) && (!addEnergyInputToMachineList(tTileEntity, 17)))
+ {
+ if (aBaseMetaTileEntity.getBlockOffset(xDir + i, h, zDir + j) != GregTech_API.sBlockCasings2) {
+ return false;
+ }
+ if (aBaseMetaTileEntity.getMetaIDOffset(xDir + i, h, zDir + j) != 1) {
+ return false;
+ }
+ tAmount++;
+ }
+ }
+ }
+ }
+ }
+ return tAmount >= 16;
+ }
+
+ public int getMaxEfficiency(ItemStack aStack)
+ {
+ return 10000;
+ }
+
+ public int getPollutionPerTick(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getDamageToComponent(ItemStack aStack)
+ {
+ return 0;
+ }
+
+ public int getAmountOfOutputs()
+ {
+ return 1;
+ }
+
+ public boolean explodesOnComponentBreak(ItemStack aStack)
+ {
+ return false;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
|