Class CreativeEnergyStorage
java.lang.Object
com.refinedmods.refinedstorage.common.support.energy.CreativeEnergyStorage
- All Implemented Interfaces:
EnergyStorage
-
Field Summary
Fields -
Method Summary
-
Field Details
-
INSTANCE
-
-
Method Details
-
getStored
public long getStored()- Specified by:
getStored
in interfaceEnergyStorage
- Returns:
- the amount stored
-
getCapacity
public long getCapacity()- Specified by:
getCapacity
in interfaceEnergyStorage
- Returns:
- the capacity
-
receive
Description copied from interface:EnergyStorage
Adds energy to the energy storage.- Specified by:
receive
in interfaceEnergyStorage
- Parameters:
amount
- the amount of energy to be receivedaction
- the action- Returns:
- the amount received
-
extract
Description copied from interface:EnergyStorage
Extracts energy from the energy storage.- Specified by:
extract
in interfaceEnergyStorage
- Parameters:
amount
- the amount of energy to be extractedaction
- the action- Returns:
- the amount extracted
-