Class CreativeEnergyStorage

java.lang.Object
com.refinedmods.refinedstorage.common.support.energy.CreativeEnergyStorage
All Implemented Interfaces:
EnergyStorage

public class CreativeEnergyStorage extends Object implements EnergyStorage
  • Field Details

  • Method Details

    • getStored

      public long getStored()
      Specified by:
      getStored in interface EnergyStorage
      Returns:
      the amount stored
    • getCapacity

      public long getCapacity()
      Specified by:
      getCapacity in interface EnergyStorage
      Returns:
      the capacity
    • receive

      public long receive(long amount, Action action)
      Description copied from interface: EnergyStorage
      Adds energy to the energy storage.
      Specified by:
      receive in interface EnergyStorage
      Parameters:
      amount - the amount of energy to be received
      action - the action
      Returns:
      the amount received
    • extract

      public long extract(long amount, Action action)
      Description copied from interface: EnergyStorage
      Extracts energy from the energy storage.
      Specified by:
      extract in interface EnergyStorage
      Parameters:
      amount - the amount of energy to be extracted
      action - the action
      Returns:
      the amount extracted