aboutsummaryrefslogtreecommitdiff
path: root/main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java
diff options
context:
space:
mode:
authoraerospark <lukefay12@gmail.com>2015-06-23 15:29:05 -0700
committeraerospark <lukefay12@gmail.com>2015-06-23 15:29:05 -0700
commita1504799f44ba2debdfef06317f24e7f9c1129d6 (patch)
tree53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java
parentb803f59de5a66fcb4ef53e117b912fbbc2841392 (diff)
downloadGT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.gz
GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.tar.bz2
GT5-Unofficial-a1504799f44ba2debdfef06317f24e7f9c1129d6.zip
strip linenumbers
Diffstat (limited to 'main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java')
-rw-r--r--main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java204
1 files changed, 102 insertions, 102 deletions
diff --git a/main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java b/main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java
index 0e5071f7db..fd948309af 100644
--- a/main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java
+++ b/main/java/gregtech/common/covers/GT_Cover_EnergyOnly.java
@@ -1,105 +1,105 @@
-/* 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_EnergyOnly
-/* 11: */ extends GT_CoverBehavior
-/* 12: */ {
-/* 13: */ public int onCoverScrewdriverclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 14: */ {
-/* 15:13 */ aCoverVariable = (aCoverVariable + 1) % 3;
-/* 16:14 */ if (aCoverVariable == 0) {
-/* 17:14 */ GT_Utility.sendChatToPlayer(aPlayer, "Allow");
-/* 18: */ }
-/* 19:15 */ if (aCoverVariable == 1) {
-/* 20:15 */ GT_Utility.sendChatToPlayer(aPlayer, "Allow (conditional)");
-/* 21: */ }
-/* 22:16 */ if (aCoverVariable == 2) {
-/* 23:16 */ GT_Utility.sendChatToPlayer(aPlayer, "Disallow (conditional)");
-/* 24: */ }
-/* 25:17 */ return aCoverVariable;
-/* 26: */ }
-/* 27: */
-/* 28: */ public float getBlastProofLevel(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 29: */ {
-/* 30:22 */ return 20.0F;
-/* 31: */ }
-/* 32: */
-/* 33: */ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 34: */ {
-/* 35:27 */ return false;
-/* 36: */ }
-/* 37: */
-/* 38: */ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 39: */ {
-/* 40:32 */ return false;
-/* 41: */ }
-/* 42: */
-/* 43: */ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 44: */ {
-/* 45:37 */ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
-/* 46:37 */ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable < 2) {
-/* 47:37 */ return false;
-/* 48: */ }
-/* 49: */ }
-/* 50:38 */ return true;
-/* 51: */ }
-/* 52: */
-/* 53: */ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 54: */ {
-/* 55:43 */ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
-/* 56:43 */ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable < 2) {
-/* 57:43 */ return false;
-/* 58: */ }
-/* 59: */ }
-/* 60:44 */ return true;
-/* 61: */ }
-/* 62: */
-/* 63: */ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 64: */ {
-/* 65:49 */ return false;
-/* 66: */ }
-/* 67: */
-/* 68: */ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
-/* 69: */ {
-/* 70:54 */ return false;
-/* 71: */ }
-/* 72: */
-/* 73: */ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 74: */ {
-/* 75:59 */ return false;
-/* 76: */ }
-/* 77: */
-/* 78: */ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
-/* 79: */ {
-/* 80:64 */ return false;
-/* 81: */ }
-/* 82: */
-/* 83: */ public boolean isGUIClickable(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 84: */ {
-/* 85:69 */ return false;
-/* 86: */ }
-/* 87: */
-/* 88: */ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 89: */ {
-/* 90:74 */ return false;
-/* 91: */ }
-/* 92: */
-/* 93: */ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
-/* 94: */ {
-/* 95:79 */ return false;
-/* 96: */ }
-/* 97: */
-/* 98: */ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
-/* 99: */ {
-/* :0:84 */ return true;
-/* :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.minecraftforge.fluids.Fluid;
+
+public class GT_Cover_EnergyOnly
+ extends GT_CoverBehavior
+{
+ 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, "Allow");
+ }
+ if (aCoverVariable == 1) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Allow (conditional)");
+ }
+ if (aCoverVariable == 2) {
+ GT_Utility.sendChatToPlayer(aPlayer, "Disallow (conditional)");
+ }
+ return aCoverVariable;
+ }
+
+ public float getBlastProofLevel(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return 20.0F;
+ }
+
+ public boolean letsRedstoneGoIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsRedstoneGoOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsEnergyIn(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable < 2) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ public boolean letsEnergyOut(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ if ((aCoverVariable > 1) && ((aTileEntity instanceof IMachineProgress))) {
+ if (((IMachineProgress)aTileEntity).isAllowedToWork() != aCoverVariable < 2) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ public boolean letsFluidIn(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsFluidOut(byte aSide, int aCoverID, int aCoverVariable, Fluid aFluid, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsItemsIn(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean letsItemsOut(byte aSide, int aCoverID, int aCoverVariable, int aSlot, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean isGUIClickable(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean manipulatesSidedRedstoneOutput(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
+ {
+ return false;
+ }
+
+ public boolean onCoverRightclick(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, EntityPlayer aPlayer, float aX, float aY, float aZ)
+ {
+ return false;
+ }
+
+ public boolean onCoverRemoval(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity, boolean aForced)
+ {
+ return true;
+ }
+}
/* Location: F:\Torrent\minecraft\jd-gui-0.3.6.windows\gregtech_1.7.10-5.07.07-dev.jar