diff options
author | Dream-Master <dream-master@gmx.net> | 2016-06-21 18:42:02 +0200 |
---|---|---|
committer | Dream-Master <dream-master@gmx.net> | 2016-06-21 18:42:02 +0200 |
commit | b09b54435f9427332854558c42bd2c902825cbfe (patch) | |
tree | 96a8143cafd99b28a194714e9846b8e974ce50f8 /src/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java | |
parent | 6fe4d4a8d3226c02a65a70d7a8035a219cbd2c66 (diff) | |
download | GT5-Unofficial-b09b54435f9427332854558c42bd2c902825cbfe.tar.gz GT5-Unofficial-b09b54435f9427332854558c42bd2c902825cbfe.tar.bz2 GT5-Unofficial-b09b54435f9427332854558c42bd2c902825cbfe.zip |
remove all
Diffstat (limited to 'src/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java')
-rw-r--r-- | src/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java b/src/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java deleted file mode 100644 index 5c15505c4b..0000000000 --- a/src/main/java/gregtech/common/covers/GT_Cover_SolarPanel.java +++ /dev/null @@ -1,32 +0,0 @@ -package gregtech.common.covers;
-
-import gregtech.api.interfaces.tileentity.ICoverable;
-import gregtech.api.util.GT_CoverBehavior;
-
-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) ? 0 : ((int) (!bRain && aTileEntity.getWorld().isDaytime() ? 1 : 2));
- }
- }
- 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;
- }
-}
\ No newline at end of file |