From fe6da3948d40d0ba1cf00bb4685cd8a8899065bf Mon Sep 17 00:00:00 2001 From: strubium <113206902+strubium@users.noreply.github.com> Date: Sat, 17 Feb 2024 16:17:03 -0600 Subject: [PATCH] Delete src/main/java/mcjty/theoneprobe/compat/TeslaTools.java --- .../mcjty/theoneprobe/compat/TeslaTools.java | 22 ------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/main/java/mcjty/theoneprobe/compat/TeslaTools.java 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); - } -}