diff --git a/src/main/java/mcjty/theoneprobe/compat/TeslaTools.java b/src/main/java/mcjty/theoneprobe/compat/TeslaTools.java deleted file mode 100644 index 671bab64..00000000 --- a/src/main/java/mcjty/theoneprobe/compat/TeslaTools.java +++ /dev/null @@ -1,22 +0,0 @@ -package mcjty.theoneprobe.compat; - -import net.darkhax.tesla.api.ITeslaHolder; -import net.darkhax.tesla.capability.TeslaCapabilities; -import net.minecraft.tileentity.TileEntity; - -public class TeslaTools { - - public static long getEnergy(TileEntity te) { - ITeslaHolder handler = te.getCapability(TeslaCapabilities.CAPABILITY_HOLDER, null); - return handler.getStoredPower(); - } - - public static long getMaxEnergy(TileEntity te) { - ITeslaHolder handler = te.getCapability(TeslaCapabilities.CAPABILITY_HOLDER, null); - return handler.getCapacity(); - } - - public static boolean isEnergyHandler(TileEntity te) { - return te != null && te.hasCapability(TeslaCapabilities.CAPABILITY_HOLDER, null); - } -}