public interface IEnergyGridProvider
| Modifier and Type | Method and Description |
|---|---|
double |
extractProviderPower(double amt,
Actionable mode)
internal use only
Extracts the requested amount from the provider.
|
double |
getProviderEnergyDemand(double d)
internal use only
Returns the current demand of an provider.
|
double |
getProviderMaxEnergy()
internal use only
AE currently uses this to enqueue the next visited provider.
|
double |
getProviderStoredEnergy()
internal use only
AE currently uses this to enqueue the next visited provider.
|
double |
injectProviderPower(double amt,
Actionable mode)
Injects the offered amount into the provider.
|
java.util.Collection<IEnergyGridProvider> |
providers()
internal use only
Can return a list of providers behind the current.
|
@Nonnull java.util.Collection<IEnergyGridProvider> providers()
IEnergyGrids.
This can contain duplicate entries, AE will ensure that each provider is only visited once.
internal use only@Nonnegative
double extractProviderPower(@Nonnegative
double amt,
@Nonnull
Actionable mode)
IEnergyGridProvider, instead return them via
providers()@Nonnegative
double injectProviderPower(@Nonnegative
double amt,
@Nonnull
Actionable mode)
IEnergyGridProvider, instead return them via
providers()
internal use only@Nonnegative
double getProviderEnergyDemand(@Nonnegative
double d)
IEnergyGridProvider, instead return them via
providers()d - the max amount offered, the demand should never exceed it.@Nonnegative double getProviderStoredEnergy()
providers(), but not any future one
discovered by visiting further providers.
E.g. inject into the the lowest one first or extract from the highest one.@Nonnegative double getProviderMaxEnergy()
providers(), but not any future one
discovered by visiting further providers.
E.g. inject into the the lowest one first or extract from the highest one.