Interface EnergyStorage
- All Known Implementing Classes:
com.refinedmods.refinedstorage.api.network.impl.energy.AbstractListeningEnergyStorage,com.refinedmods.refinedstorage.api.network.impl.energy.AbstractProxyEnergyStorage,BlockEntityEnergyStorage,CreativeEnergyStorage,ItemBlockEnergyStorage,ItemEnergyStorage
@API(status=STABLE,
since="2.0.0-milestone.1.0")
public interface EnergyStorage
-
Method Summary
-
Method Details
-
getStored
long getStored()- Returns:
- the amount stored
-
getCapacity
long getCapacity()- Returns:
- the capacity
-
receive
Adds energy to the energy storage.- Parameters:
amount- the amount of energy to be receivedaction- the action- Returns:
- the amount received
-
extract
Extracts energy from the energy storage.- Parameters:
amount- the amount of energy to be extractedaction- the action- Returns:
- the amount extracted
-