aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/common/tileentities/TE_SpaceElevatorCapacitor.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/common/tileentities/TE_SpaceElevatorCapacitor.java')
-rw-r--r--src/main/java/common/tileentities/TE_SpaceElevatorCapacitor.java53
1 files changed, 0 insertions, 53 deletions
diff --git a/src/main/java/common/tileentities/TE_SpaceElevatorCapacitor.java b/src/main/java/common/tileentities/TE_SpaceElevatorCapacitor.java
deleted file mode 100644
index ea5211bfba..0000000000
--- a/src/main/java/common/tileentities/TE_SpaceElevatorCapacitor.java
+++ /dev/null
@@ -1,53 +0,0 @@
-package common.tileentities;
-
-import net.minecraft.tileentity.TileEntity;
-
-public class TE_SpaceElevatorCapacitor extends TileEntity {
-
- private float chargeLevel = 0.0F;
- private boolean isDamaged = true;
-
- /**
- * Called by {@link GTMTE_SpaceElevator} while charging
- *
- * @param charge Current elevator charge
- * @param maxCharge Charge level it is trying to reach
- */
- public void updateChargeLevel(int charge, int maxCharge) {
- chargeLevel = ((float) charge) / ((float) maxCharge);
- }
-
- /**
- * Called by {@link client.renderer.TESR_SECapacitor} to calculate the block's colour saturation
- *
- * @return Charge level from 0.0F to 1.0F
- */
- public float getChargeLevel() {
- return chargeLevel;
- }
-
- /**
- * Called by {@link GTMTE_SpaceElevator} in case of power loss
- */
- public void resetChargeLevel() {
- chargeLevel = 0.0F;
- }
-
- /**
- * Called by {@link GTMTE_SpaceElevator} in case of maintenance issues
- *
- * @param isDamaged has maintenance issue
- */
- public void setIsDamaged(boolean isDamaged) {
- this.isDamaged = isDamaged;
- }
-
- /**
- * Called by {@link client.renderer.TESR_SECapacitor} to check whether the block should be rendered red
- *
- * @return should be rendered red
- */
- public boolean isDamaged() {
- return isDamaged;
- }
-}