DefaultEnergyHolder
The default EnergyHolder implementation.
Parameters
the Compound for data storage and retrieval
the Provider for the current energy amount
the maximum amount of energy this EnergyHolder can store
determines whether energy can be inserted, extracted, or both
the default (BlockFace, NetworkConnectionType) to be used if no configuration is stored
Constructors
Properties
A set of BlockFaces where connections are allowed.
The BlockFaces that can never have a connection.
Stores which NetworkConnectionType is used for each BlockFace.
The current amount of energy in this EnergyHolder.
The amount of energy that was extracted between the second-to-last and last energy network tick. For visualization, this value should be normalized by dividing it by the number of game ticks between energy network ticks.
A Provider containing the amount of energy that was extracted between the second-to-last and last energy network tick. For visualization, this value should be normalized by dividing it by the number of game ticks between energy network ticks.
The amount of energy that was inserted between the second-to-last and last energy network tick. For visualization, this value should be normalized by dividing it by the number of game ticks between energy network ticks.
A Provider containing the amount of energy that was inserted between the second-to-last and last energy network tick. For visualization, this value should be normalized by dividing it by the number of game ticks between energy network ticks.
A Provider for the current energy amount.
The maximum amount of energy this EnergyHolder can store.
Functions
Called by the network group ticking the energy network of this holder to flush the accumulated energy plus and minus values to energyPlus and energyMinus.