diff options
author | Blood-Asp <bloodasphendrik@gmail.com> | 2015-06-24 19:34:37 +0200 |
---|---|---|
committer | Blood-Asp <bloodasphendrik@gmail.com> | 2015-06-24 19:34:37 +0200 |
commit | 6591e802e925a1f57d62b8d506936d6d5e9fde3c (patch) | |
tree | 53e53ff64d2902c639951bd1d41f942ee171f836 /main/java/gregtech/common/covers/GT_Cover_SolarPanel.java | |
parent | 55c596b008807a7cb4b58422efd07636425be1e2 (diff) | |
parent | a1504799f44ba2debdfef06317f24e7f9c1129d6 (diff) | |
download | GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.tar.gz GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.tar.bz2 GT5-Unofficial-6591e802e925a1f57d62b8d506936d6d5e9fde3c.zip |
Merge pull request #71 from aerospark/devel
Linenumber strip
Well, let's try this, but i'm not going trough all classes to make sure there is nothing broken.
Diffstat (limited to 'main/java/gregtech/common/covers/GT_Cover_SolarPanel.java')
-rw-r--r-- | main/java/gregtech/common/covers/GT_Cover_SolarPanel.java | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java b/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java index 69f5ee5b61..38b227781d 100644 --- a/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java +++ b/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java @@ -1,44 +1,44 @@ -/* 1: */ package gregtech.common.covers;
-/* 2: */
-/* 3: */ import gregtech.api.interfaces.tileentity.ICoverable;
-/* 4: */ import gregtech.api.util.GT_CoverBehavior;
-/* 5: */ import net.minecraft.world.World;
-/* 6: */ import net.minecraft.world.biome.BiomeGenBase;
-/* 7: */
-/* 8: */ public class GT_Cover_SolarPanel
-/* 9: */ extends GT_CoverBehavior
-/* 10: */ {
-/* 11: */ private final int mVoltage;
-/* 12: */
-/* 13: */ public GT_Cover_SolarPanel(int aVoltage)
-/* 14: */ {
-/* 15:11 */ this.mVoltage = aVoltage;
-/* 16: */ }
-/* 17: */
-/* 18: */ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
-/* 19: */ {
-/* 20:16 */ if (aTimer % 100L == 0L) {
-/* 21:17 */ if ((aSide != 1) || (aTileEntity.getWorld().isThundering()))
-/* 22: */ {
-/* 23:18 */ aCoverVariable = 0;
-/* 24: */ }
-/* 25: */ else
-/* 26: */ {
-/* 27:20 */ boolean bRain = (aTileEntity.getWorld().isRaining()) && (aTileEntity.getBiome().rainfall > 0.0F);
-/* 28:21 */ aCoverVariable = ((!bRain) || (aTileEntity.getWorld().skylightSubtracted < 4)) && (aTileEntity.getSkyAtSide(aSide)) ? 1 : (bRain) || (!aTileEntity.getWorld().isDaytime()) ? 2 : 0;
-/* 29: */ }
-/* 30: */ }
-/* 31:24 */ if ((aCoverVariable == 1) || ((aCoverVariable == 2) && (aTimer % 8L == 0L))) {
-/* 32:24 */ aTileEntity.injectEnergyUnits((byte)6, this.mVoltage, 1L);
-/* 33: */ }
-/* 34:25 */ return aCoverVariable;
-/* 35: */ }
-/* 36: */
-/* 37: */ public int getTickRate(byte aSide, int aCoverID, int aCoverVariable, ICoverable aTileEntity)
-/* 38: */ {
-/* 39:30 */ return 1;
-/* 40: */ }
-/* 41: */ }
+package gregtech.common.covers;
+
+import gregtech.api.interfaces.tileentity.ICoverable;
+import gregtech.api.util.GT_CoverBehavior;
+import net.minecraft.world.World;
+import net.minecraft.world.biome.BiomeGenBase;
+
+public class GT_Cover_SolarPanel
+ extends GT_CoverBehavior
+{
+ private final int mVoltage;
+
+ public GT_Cover_SolarPanel(int aVoltage)
+ {
+ this.mVoltage = aVoltage;
+ }
+
+ public int doCoverThings(byte aSide, byte aInputRedstone, int aCoverID, int aCoverVariable, ICoverable aTileEntity, long aTimer)
+ {
+ if (aTimer % 100L == 0L) {
+ if ((aSide != 1) || (aTileEntity.getWorld().isThundering()))
+ {
+ aCoverVariable = 0;
+ }
+ else
+ {
+ boolean bRain = (aTileEntity.getWorld().isRaining()) && (aTileEntity.getBiome().rainfall > 0.0F);
+ aCoverVariable = ((!bRain) || (aTileEntity.getWorld().skylightSubtracted < 4)) && (aTileEntity.getSkyAtSide(aSide)) ? 1 : (bRain) || (!aTileEntity.getWorld().isDaytime()) ? 2 : 0;
+ }
+ }
+ if ((aCoverVariable == 1) || ((aCoverVariable == 2) && (aTimer % 8L == 0L))) {
+ aTileEntity.injectEnergyUnits((byte)6, this.mVoltage, 1L);
+ }
+ 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
|