aboutsummaryrefslogtreecommitdiff
path: root/main/java/gregtech/common/covers
diff options
context:
space:
mode:
Diffstat (limited to 'main/java/gregtech/common/covers')
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_Arm.java224
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_Blastproof.java50
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_ControlsWork.java150
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_Conveyor.java266
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_Crafting.java70
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_DoesWork.java188
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_Drain.java216
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_EUMeter.java276
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java204
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_ItemMeter.java186
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_Lens.java40
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_LiquidMeter.java194
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_NeedMaintainance.java148
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_PlayerDetector.java106
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_Pump.java374
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_RedstoneConductor.java168
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverExternal.java50
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_RedstoneReceiverInternal.java48
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_RedstoneSignalizer.java162
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterExternal.java50
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_RedstoneTransmitterInternal.java50
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_RedstoneWirelessBase.java196
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_Screen.java160
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_Shutter.java92
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_SolarPanel.java82
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_Vent.java80
26 files changed, 1915 insertions, 1915 deletions
diff --git a/main/java/gregtech/common/covers/GT_Cover_Arm.java b/main/java/gregtech/common/covers/GT_Cover_Arm.java
index a3cfa3868f..49adff2062 100644
--- a/main/java/gregtech/common/covers/GT_Cover_Arm.java
+++ b/main/java/gregtech/common/covers/GT_Cover_Arm.java
@@ -1,115 +1,115 @@
-/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraft.tileentity.TileEntity;
-/* 9: */ import net.minecraftforge.fluids.Fluid;
-/* 10: */
-/* 11: */ public class GT_Cover_Arm
-/* 12: */ extends GT_CoverBehavior
-/* 13: */ {
-/* 14: */ public final int mTickRate;
-/* 15: */
-/* 16: */ public GT_Cover_Arm(int aTickRate)
-/* 17: */ {
-/* 18:16 */ this.mTickRate = aTickRate;
-/* 19: */ }
-/* 20: */
-/* 21: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 22: */ {
-/* 23:21 */ if ((aCoverVariable == 0) || (((aTileEntity instanceof IMachineProgress)) && (!((IMachineProgress)aTileEntity).isAllowedToWork()))) {
-/* 24:21 */ return aCoverVariable;
-/* 25: */ }
-/* 26:22 */ TileEntity tTileEntity = aTileEntity.getTileEntityAtSide(aSide);
-/* 27:23 */ aTileEntity.decreaseStoredEnergyUnits(1L, true);
-/* 28:24 */ if (aTileEntity.getUniversalEnergyCapacity() >= 128L)
-/* 29: */ {
-/* 30:25 */ if (aTileEntity.isUniversalEnergyStored(256L)) {
-/* 31:26 */ aTileEntity.decreaseStoredEnergyUnits(4 * GT_Utility.moveOneItemStackIntoSlot(aCoverVariable > 0 ? aTileEntity : tTileEntity, aCoverVariable > 0 ? tTileEntity : aTileEntity, aCoverVariable > 0 ? aSide : GT_Utility.getOppositeSide(aSide), Math.abs(aCoverVariable) - 1, null, false, (byte)64, (byte)1, (byte)64, (byte)1), true);
-/* 32: */ }
-/* 33: */ }
-/* 34: */ else {
-/* 35:29 */ GT_Utility.moveOneItemStackIntoSlot(aCoverVariable > 0 ? aTileEntity : tTileEntity, aCoverVariable > 0 ? tTileEntity : aTileEntity, aCoverVariable > 0 ? aSide : GT_Utility.getOppositeSide(aSide), Math.abs(aCoverVariable) - 1, null, false, (byte)64, (byte)1, (byte)64, (byte)1);
-/* 36: */ }
-/* 37:31 */ return aCoverVariable;
-/* 38: */ }
-/* 39: */
-/* 40: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 41: */ {
-/* 42:36 */ if (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) {
-/* 43:36 */ aCoverVariable += 16;
-/* 44: */ } else {
-/* 45:36 */ aCoverVariable -= 16;
-/* 46: */ }
-/* 47:37 */ GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? "Puts out into adjacent Slot #" : "Grabs in for own Slot #") + (Math.abs(aCoverVariable) - 1));
-/* 48:38 */ return aCoverVariable;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 52: */ {
-/* 53:43 */ if (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) {
-/* 54:43 */ aCoverVariable++;
-/* 55: */ } else {
-/* 56:43 */ aCoverVariable--;
-/* 57: */ }
-/* 58:44 */ GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? "Puts out into adjacent Slot #" : "Grabs in for own Slot #") + (Math.abs(aCoverVariable) - 1));
-/* 59:45 */ aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
-/* 60:46 */ return true;
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 64: */ {
-/* 65:51 */ return true;
-/* 66: */ }
-/* 67: */
-/* 68: */ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 69: */ {
-/* 70:56 */ return true;
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 74: */ {
-/* 75:61 */ return true;
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 79: */ {
-/* 80:66 */ return true;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 84: */ {
-/* 85:71 */ return true;
-/* 86: */ }
-/* 87: */
-/* 88: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 89: */ {
-/* 90:76 */ return true;
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 94: */ {
-/* 95:81 */ return true;
-/* 96: */ }
-/* 97: */
-/* 98: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 99: */ {
-/* :0:86 */ return true;
-/* :1: */ }
-/* :2: */
-/* :3: */ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* :4: */ {
-/* :5:91 */ return true;
-/* :6: */ }
-/* :7: */
-/* :8: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* :9: */ {
-/* ;0:96 */ return this.mTickRate;
-/* ;1: */ }
-/* ;2: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_Arm
+ extends GT_CoverBehavior
+{
+ public final int mTickRate;
+
+ public GT_Cover_Arm(int aTickRate)
+ {
+ this.mTickRate = aTickRate;
+ }
+
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if ((aCoverVariable == 0) || (((aTileEntity instanceof IMachineProgress)) && (!((IMachineProgress)aTileEntity).isAllowedToWork()))) {
+ return aCoverVariable;
+ }
+ TileEntity tTileEntity = aTileEntity.getTileEntityAtSide(aSide);
+ aTileEntity.decreaseStoredEnergyUnits(1L, true);
+ if (aTileEntity.getUniversalEnergyCapacity() >= 128L)
+ {
+ if (aTileEntity.isUniversalEnergyStored(256L)) {
+ aTileEntity.decreaseStoredEnergyUnits(4 * GT_Utility.moveOneItemStackIntoSlot(aCoverVariable > 0 ? aTileEntity : tTileEntity, aCoverVariable > 0 ? tTileEntity : aTileEntity, aCoverVariable > 0 ? aSide : GT_Utility.getOppositeSide(aSide), Math.abs(aCoverVariable) - 1, null, false, (byte)64, (byte)1, (byte)64, (byte)1), true);
+ }
+ }
+ else {
+ GT_Utility.moveOneItemStackIntoSlot(aCoverVariable > 0 ? aTileEntity : tTileEntity, aCoverVariable > 0 ? tTileEntity : aTileEntity, aCoverVariable > 0 ? aSide : GT_Utility.getOppositeSide(aSide), Math.abs(aCoverVariable) - 1, null, false, (byte)64, (byte)1, (byte)64, (byte)1);
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ if (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) {
+ aCoverVariable += 16;
+ } else {
+ aCoverVariable -= 16;
+ }
+ GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? "Puts out into adjacent Slot #" : "Grabs in for own Slot #") + (Math.abs(aCoverVariable) - 1));
+ return aCoverVariable;
+ }
+
+ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ if (GT_Utility.getClickedFacingCoords(aSide, aX, aY, aZ)[0] >= 0.5F) {
+ aCoverVariable++;
+ } else {
+ aCoverVariable--;
+ }
+ GT_Utility.sendChatToPlayer(aPlayer, (aCoverVariable > 0 ? "Puts out into adjacent Slot #" : "Grabs in for own Slot #") + (Math.abs(aCoverVariable) - 1));
+ aTileEntity.setCoverDataAtSide(aSide, aCoverVariable);
+ return true;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return this.mTickRate;
+ }
+}
/* 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/covers/GT_Cover_Blastproof.java b/main/java/gregtech/common/covers/GT_Cover_Blastproof.java
index 2cb74191b2..75f964b62a 100644
--- a/main/java/gregtech/common/covers/GT_Cover_Blastproof.java
+++ b/main/java/gregtech/common/covers/GT_Cover_Blastproof.java
@@ -1,28 +1,28 @@
-/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */
-/* 6: */ public class GT_Cover_Blastproof
-/* 7: */ extends GT_CoverBehavior
-/* 8: */ {
-/* 9: */ private final float mLevel;
-/* 10: */
-/* 11: */ public GT_Cover_Blastproof(float aLevel)
-/* 12: */ {
-/* 13:11 */ this.mLevel = aLevel;
-/* 14: */ }
-/* 15: */
-/* 16: */ public float getBlastProofLevel(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 17: */ {
-/* 18:16 */ return this.mLevel;
-/* 19: */ }
-/* 20: */
-/* 21: */ public boolean isSimpleCover()
-/* 22: */ {
-/* 23:21 */ return true;
-/* 24: */ }
-/* 25: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+
+public class GT_Cover_Blastproof
+ extends GT_CoverBehavior
+{
+ private final float mLevel;
+
+ public GT_Cover_Blastproof(float aLevel)
+ {
+ this.mLevel = aLevel;
+ }
+
+ public float getBlastProofLevel(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return this.mLevel;
+ }
+
+ public boolean isSimpleCover()
+ {
+ return true;
+ }
+}
/* 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/covers/GT_Cover_ControlsWork.java b/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
index 40819e8eef..b0c61dfa40 100644
--- a/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
+++ b/main/java/gregtech/common/covers/GT_Cover_ControlsWork.java
@@ -1,17 +1,17 @@
-/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraftforge.fluids.Fluid;
-/* 9: */
-/* 10: */ public class GT_Cover_ControlsWork
-/* 11: */ extends GT_CoverBehavior
-/* 12: */ {
-/* 13: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 14: */ {
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_ControlsWork
+ extends GT_CoverBehavior
+{
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
if(aTileEntity instanceof IMachineProgress)
{
if((aInputRedstone > 0) == (aCoverVariable == 0) && aCoverVariable != 2)
@@ -22,67 +22,67 @@
}
return aCoverVariable;
}
-/* 30: */
-/* 31: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 32: */ {
-/* 33:22 */ return true;
-/* 34: */ }
-/* 35: */
-/* 36: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 37: */ {
-/* 38:27 */ return true;
-/* 39: */ }
-/* 40: */
-/* 41: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 42: */ {
-/* 43:32 */ return true;
-/* 44: */ }
-/* 45: */
-/* 46: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 47: */ {
-/* 48:37 */ return true;
-/* 49: */ }
-/* 50: */
-/* 51: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 52: */ {
-/* 53:42 */ return true;
-/* 54: */ }
-/* 55: */
-/* 56: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 57: */ {
-/* 58:47 */ return true;
-/* 59: */ }
-/* 60: */
-/* 61: */ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
-/* 62: */ {
-/* 63:52 */ if ((aTileEntity instanceof IMachineProgress))
-/* 64: */ {
-/* 65:53 */ ((IMachineProgress)aTileEntity).enableWorking();
-/* 66:54 */ ((IMachineProgress)aTileEntity).setWorkDataValue((byte)0);
-/* 67: */ }
-/* 68:56 */ return true;
-/* 69: */ }
-/* 70: */
-/* 71: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 72: */ {
-/* 73:61 */ aCoverVariable = (aCoverVariable + 1) % 3;
-/* 74:62 */ if (aCoverVariable == 0) {
-/* 75:62 */ GT_Utility.sendChatToPlayer(aPlayer, "Normal");
-/* 76: */ }
-/* 77:63 */ if (aCoverVariable == 1) {
-/* 78:63 */ GT_Utility.sendChatToPlayer(aPlayer, "Inverted");
-/* 79: */ }
-/* 80:64 */ if (aCoverVariable == 2) {
-/* 81:64 */ GT_Utility.sendChatToPlayer(aPlayer, "No Work at all");
-/* 82: */ }
-/* 83:65 */ return aCoverVariable;
-/* 84: */ }
-/* 85: */
-/* 86: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 87: */ {
-/* 88:70 */ return 1;
-/* 89: */ }
-/* 90: */ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
+ {
+ if ((aTileEntity instanceof IMachineProgress))
+ {
+ ((IMachineProgress)aTileEntity).enableWorking();
+ ((IMachineProgress)aTileEntity).setWorkDataValue((byte)0);
+ }
+ return true;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 3;
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Normal");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Inverted");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "No Work at all");
+ }
+ return aCoverVariable;
+ }
+
+ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 1;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar
diff --git a/main/java/gregtech/common/covers/GT_Cover_Conveyor.java b/main/java/gregtech/common/covers/GT_Cover_Conveyor.java
index 266bdf7524..515df08386 100644
--- a/main/java/gregtech/common/covers/GT_Cover_Conveyor.java
+++ b/main/java/gregtech/common/covers/GT_Cover_Conveyor.java
@@ -1,136 +1,136 @@
-/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.interfaces.tileentity.IMachineProgress;
-/* 5: */ import gregtech.api.util.GT_CoverBehavior;
-/* 6: */ import gregtech.api.util.GT_Utility;
-/* 7: */ import net.minecraft.entity.player.EntityPlayer;
-/* 8: */ import net.minecraft.tileentity.TileEntity;
-/* 9: */ import net.minecraftforge.fluids.Fluid;
-/* 10: */
-/* 11: */ public class GT_Cover_Conveyor
-/* 12: */ extends GT_CoverBehavior
-/* 13: */ {
-/* 14: */ public final int mTickRate;
-/* 15: */
-/* 16: */ public GT_Cover_Conveyor(int aTickRate)
-/* 17: */ {
-/* 18:16 */ this.mTickRate = aTickRate;
-/* 19: */ }
-/* 20: */
-/* 21: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 22: */ {
-/* 23:21 */ if ((aCoverVariable % 6 > 1) && ((aTileEntity instanceof IMachineProgress))) {
-/* 24:21 */ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) {
-/* 25:21 */ return aCoverVariable;
-/* 26: */ }
-/* 27: */ }
-/* 28:22 */ TileEntity tTileEntity = aTileEntity.getTileEntityAtSide(aSide);
-/* 29:23 */ aTileEntity.decreaseStoredEnergyUnits(1L, true);
-/* 30:24 */ if (((aCoverVariable % 2 != 1) || (aSide != 1)) && ((aCoverVariable % 2 != 0) || (aSide != 0)) && (aTileEntity.getUniversalEnergyCapacity() >= 128L))
-/* 31: */ {
-/* 32:25 */ if (aTileEntity.isUniversalEnergyStored(256L)) {
-/* 33:26 */ aTileEntity.decreaseStoredEnergyUnits(4 * GT_Utility.moveOneItemStack(aCoverVariable % 2 == 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? GT_Utility.getOppositeSide(aSide) : aSide, aCoverVariable % 2 == 0 ? GT_Utility.getOppositeSide(aSide) : aSide, null, false, (byte)64, (byte)1, (byte)64, (byte)1), true);
-/* 34: */ }
-/* 35: */ }
-/* 36: */ else {
-/* 37:29 */ GT_Utility.moveOneItemStack(aCoverVariable % 2 == 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? GT_Utility.getOppositeSide(aSide) : aSide, aCoverVariable % 2 == 0 ? GT_Utility.getOppositeSide(aSide) : aSide, null, false, (byte)64, (byte)1, (byte)64, (byte)1);
-/* 38: */ }
-/* 39:31 */ return aCoverVariable;
-/* 40: */ }
-/* 41: */
-/* 42: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 43: */ {
-/* 44:36 */ aCoverVariable = (aCoverVariable + 1) % 12;
-/* 45:37 */ if (aCoverVariable == 0) {
-/* 46:37 */ GT_Utility.sendChatToPlayer(aPlayer, "Export");
-/* 47: */ }
-/* 48:38 */ if (aCoverVariable == 1) {
-/* 49:38 */ GT_Utility.sendChatToPlayer(aPlayer, "Import");
-/* 50: */ }
-/* 51:39 */ if (aCoverVariable == 2) {
-/* 52:39 */ GT_Utility.sendChatToPlayer(aPlayer, "Export (conditional)");
-/* 53: */ }
-/* 54:40 */ if (aCoverVariable == 3) {
-/* 55:40 */ GT_Utility.sendChatToPlayer(aPlayer, "Import (conditional)");
-/* 56: */ }
-/* 57:41 */ if (aCoverVariable == 4) {
-/* 58:41 */ GT_Utility.sendChatToPlayer(aPlayer, "Export (invert cond)");
-/* 59: */ }
-/* 60:42 */ if (aCoverVariable == 5) {
-/* 61:42 */ GT_Utility.sendChatToPlayer(aPlayer, "Import (invert cond)");
-/* 62: */ }
-/* 63:43 */ if (aCoverVariable == 6) {
-/* 64:43 */ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input");
-/* 65: */ }
-/* 66:44 */ if (aCoverVariable == 7) {
-/* 67:44 */ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output");
-/* 68: */ }
-/* 69:45 */ if (aCoverVariable == 8) {
-/* 70:45 */ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (conditional)");
-/* 71: */ }
-/* 72:46 */ if (aCoverVariable == 9) {
-/* 73:46 */ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (conditional)");
-/* 74: */ }
-/* 75:47 */ if (aCoverVariable == 10) {
-/* 76:47 */ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (invert cond)");
-/* 77: */ }
-/* 78:48 */ if (aCoverVariable == 11) {
-/* 79:48 */ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (invert cond)");
-/* 80: */ }
-/* 81:49 */ return aCoverVariable;
-/* 82: */ }
-/* 83: */
-/* 84: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 85: */ {
-/* 86:54 */ return true;
-/* 87: */ }
-/* 88: */
-/* 89: */ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 90: */ {
-/* 91:59 */ return true;
-/* 92: */ }
-/* 93: */
-/* 94: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 95: */ {
-/* 96:64 */ return true;
-/* 97: */ }
-/* 98: */
-/* 99: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* :0: */ {
-/* :1:69 */ return true;
-/* :2: */ }
-/* :3: */
-/* :4: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* :5: */ {
-/* :6:74 */ return true;
-/* :7: */ }
-/* :8: */
-/* :9: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* ;0: */ {
-/* ;1:79 */ return true;
-/* ;2: */ }
-/* ;3: */
-/* ;4: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* ;5: */ {
-/* ;6:84 */ return (aCoverVariable >= 6) || (aCoverVariable % 2 != 0);
-/* ;7: */ }
-/* ;8: */
-/* ;9: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* <0: */ {
-/* <1:89 */ return (aCoverVariable >= 6) || (aCoverVariable % 2 == 0);
-/* <2: */ }
-/* <3: */
-/* <4: */ public boolean alwaysLookConnected(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* <5: */ {
-/* <6:94 */ return true;
-/* <7: */ }
-/* <8: */
-/* <9: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* =0: */ {
-/* =1:99 */ return this.mTickRate;
-/* =2: */ }
-/* =3: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.interfaces.tileentity.IMachineProgress;
+import gregtech.api.util.GT_CoverBehavior;
+import gregtech.api.util.GT_Utility;
+import net.minecraft.entity.player.EntityPlayer;
+import net.minecraft.tileentity.TileEntity;
+import net.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_Conveyor
+ extends GT_CoverBehavior
+{
+ public final int mTickRate;
+
+ public GT_Cover_Conveyor(int aTickRate)
+ {
+ this.mTickRate = aTickRate;
+ }
+
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if ((aCoverVariable % 6 > 1) && ((aTileEntity instanceof IMachineProgress))) {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable % 6 < 4) {
+ return aCoverVariable;
+ }
+ }
+ TileEntity tTileEntity = aTileEntity.getTileEntityAtSide(aSide);
+ aTileEntity.decreaseStoredEnergyUnits(1L, true);
+ if (((aCoverVariable % 2 != 1) || (aSide != 1)) && ((aCoverVariable % 2 != 0) || (aSide != 0)) && (aTileEntity.getUniversalEnergyCapacity() >= 128L))
+ {
+ if (aTileEntity.isUniversalEnergyStored(256L)) {
+ aTileEntity.decreaseStoredEnergyUnits(4 * GT_Utility.moveOneItemStack(aCoverVariable % 2 == 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? GT_Utility.getOppositeSide(aSide) : aSide, aCoverVariable % 2 == 0 ? GT_Utility.getOppositeSide(aSide) : aSide, null, false, (byte)64, (byte)1, (byte)64, (byte)1), true);
+ }
+ }
+ else {
+ GT_Utility.moveOneItemStack(aCoverVariable % 2 == 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? aTileEntity : tTileEntity, aCoverVariable % 2 != 0 ? GT_Utility.getOppositeSide(aSide) : aSide, aCoverVariable % 2 == 0 ? GT_Utility.getOppositeSide(aSide) : aSide, null, false, (byte)64, (byte)1, (byte)64, (byte)1);
+ }
+ return aCoverVariable;
+ }
+
+ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ aCoverVariable = (aCoverVariable + 1) % 12;
+ if (aCoverVariable == 0) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export (conditional)");
+ }
+ if (aCoverVariable == 3) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import (conditional)");
+ }
+ if (aCoverVariable == 4) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export (invert cond)");
+ }
+ if (aCoverVariable == 5) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import (invert cond)");
+ }
+ if (aCoverVariable == 6) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input");
+ }
+ if (aCoverVariable == 7) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output");
+ }
+ if (aCoverVariable == 8) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (conditional)");
+ }
+ if (aCoverVariable == 9) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (conditional)");
+ }
+ if (aCoverVariable == 10) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Export allow Input (invert cond)");
+ }
+ if (aCoverVariable == 11) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Import allow Output (invert cond)");
+ }
+ return aCoverVariable;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return true;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return (aCoverVariable >= 6)