Package org.moddingx.libx.util.game
Interface LongEnergyStorage
- All Superinterfaces:
net.neoforged.neoforge.energy.IEnergyStorage
public interface LongEnergyStorage
extends net.neoforged.neoforge.energy.IEnergyStorage
An
IEnergyStorage that allows storing the energy value as long.-
Method Summary
Modifier and TypeMethodDescriptiondefault intGets the long energy stored best represented as anint.longGets the energy stored as a long.longGets the maximum energy stored as a long.default intGets the long maximum energy stored best represented as anint.Methods inherited from interface net.neoforged.neoforge.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:
getEnergyStoredin interfacenet.neoforged.neoforge.energy.IEnergyStorage
-
getMaxEnergyStored
default int getMaxEnergyStored()Gets the long maximum energy stored best represented as anint. This usesLongAmountToIntUtil.- Specified by:
getMaxEnergyStoredin interfacenet.neoforged.neoforge.energy.IEnergyStorage
-
getLongEnergyStored
long getLongEnergyStored()Gets the energy stored as a long. -
getLongMaxEnergyStored
long getLongMaxEnergyStored()Gets the maximum energy stored as a long.
-