Package org.moddingx.libx.capability
Interface LongEnergyStorage
- All Superinterfaces:
net.minecraftforge.energy.IEnergyStorage
public interface LongEnergyStorage
extends net.minecraftforge.energy.IEnergyStorage
An
IEnergyStorage
that allows storing the energy value as long.-
Method Summary
Modifier and TypeMethodDescriptiondefault int
Gets the long energy stored best represented as anint
.long
Gets the energy stored as a long.long
Gets the maximum energy stored as a long.default int
Gets the long maximum energy stored best represented as anint
.Methods inherited from interface net.minecraftforge.energy.IEnergyStorage
canExtract, canReceive, extractEnergy, receiveEnergy
-
Method Details
-
getEnergyStored
default int getEnergyStored()Gets the long energy stored best represented as anint
. This usesLongAmountToIntUtil
.- Specified by:
getEnergyStored
in interfacenet.minecraftforge.energy.IEnergyStorage
-
getMaxEnergyStored
default int getMaxEnergyStored()Gets the long maximum energy stored best represented as anint
. This usesLongAmountToIntUtil
.- Specified by:
getMaxEnergyStored
in interfacenet.minecraftforge.energy.IEnergyStorage
-
getLongEnergyStored
long getLongEnergyStored()Gets the energy stored as a long. -
getLongMaxEnergyStored
long getLongMaxEnergyStored()Gets the maximum energy stored as a long.
-