public interface IEnergyGrid extends IGridCache, IEnergySource, IEnergyGridProvider
| Modifier and Type | Method and Description |
|---|---|
double |
getAvgPowerInjection() |
double |
getAvgPowerUsage() |
double |
getEnergyDemand(double maxRequired)
Calculation will be capped at maxRequired, this improves performance by limiting the number of nodes needed to
calculate the demand.
|
double |
getIdlePowerUsage() |
double |
getMaxStoredPower()
this is should be considered an estimate, and not relied upon for real calculations.
|
double |
getStoredPower()
this is should be considered an estimate, and not relied upon for real calculations.
|
double |
injectPower(double amt,
Actionable mode)
AE will accept any power, and store it, to maintain sanity please don't send more then 10,000 at a time.
|
boolean |
isNetworkPowered()
AE maintains an idle draw of power separate from active power draw, it condenses this into a single operation
that determines the networks "powered state" if the network is considered off-line, your machines should not
function.
|
addNode, onJoin, onSplit, onUpdateTick, populateGridStorage, removeNodeextractAEPowerextractProviderPower, getProviderEnergyDemand, getProviderMaxEnergy, getProviderStoredEnergy, injectProviderPower, providers@Nonnegative double getIdlePowerUsage()
@Nonnegative double getAvgPowerUsage()
@Nonnegative double getAvgPowerInjection()
boolean isNetworkPowered()
MENetworkPowerStatusChange events are posted when this value changes if you need to be notified of the
change, most machines can simply test the value when they operate.@Nonnegative
double injectPower(@Nonnegative
double amt,
@Nonnull
Actionable mode)
amt - power to inject into the networkmode - should the action be simulated or performed?@Nonnegative double getStoredPower()
@Nonnegative double getMaxStoredPower()
@Nonnegative
double getEnergyDemand(@Nonnegative
double maxRequired)