Interface IAEPowerStorage

All Superinterfaces:
IEnergySource, IGridNodeService

public interface IAEPowerStorage extends IEnergySource, IGridNodeService
Used to access information about AE's various power accepting blocks for monitoring purposes.
  • Method Summary

    Modifier and Type
    Method
    Description
    double
     
    double
     
    Control the power flow by telling what the network can do, either add? or subtract? or both!
    default int
    The priority to use this energy storage.
    double
    injectAEPower(double amt, Actionable mode)
    Inject amt, power into the device, it will store what it can, and return the amount unable to be stored.
    boolean
    Checked on network reset to see if your block can be used as a public power storage ( use getPowerFlow to control the behavior )

    Methods inherited from interface appeng.api.networking.energy.IEnergySource

    extractAEPower
  • Method Details

    • injectAEPower

      double injectAEPower(double amt, Actionable mode)
      Inject amt, power into the device, it will store what it can, and return the amount unable to be stored.
      Parameters:
      amt - to be injected amount
      mode - action mode
      Returns:
      amount of power which was unable to be stored
    • getAEMaxPower

      double getAEMaxPower()
      Returns:
      the current maximum power ( this can change :P )
    • getAECurrentPower

      double getAECurrentPower()
      Returns:
      the current AE Power Level, this may exceed getMEMaxPower()
    • isAEPublicPowerStorage

      boolean isAEPublicPowerStorage()
      Checked on network reset to see if your block can be used as a public power storage ( use getPowerFlow to control the behavior )
      Returns:
      true if it can be used as a public power storage
    • getPowerFlow

      AccessRestriction getPowerFlow()
      Control the power flow by telling what the network can do, either add? or subtract? or both!
      Returns:
      access restriction what the network can do
    • getPriority

      default int getPriority()
      The priority to use this energy storage. A higher value means it is more likely to be extracted from first, and less likely to be inserted into first. The value needs to be constant once added to a IGrid. Should it ever need to be changed, it has to be removed from the grid, then update the value, and finally added back to the grid. This should never use Integer.MIN_VALUE or Integer.MAX_VALUE.
      Returns:
      the priority for this storage