Package appeng.api.networking.energy
Interface IAEPowerStorage
- All Superinterfaces:
IEnergySource
,IGridNodeService
Used to access information about AE's various power accepting blocks for monitoring purposes.
-
Method Summary
Modifier and TypeMethodDescriptiondouble
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
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 amountmode
- 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 aIGrid
. 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 useInteger.MIN_VALUE
orInteger.MAX_VALUE
.- Returns:
- the priority for this storage
-