DefaultEnergyHolder

constructor(compound: Provider<Compound>, energy: MutableProvider<Long>, maxEnergyProvider: Provider<Long>, allowedConnectionType: NetworkConnectionType, blockedFaces: Set<BlockFace>, defaultConnectionConfig: () -> Map<BlockFace, NetworkConnectionType>)

Parameters

compound

the Compound for data storage and retrieval

energy

the Provider for the current energy amount

maxEnergyProvider

the maximum amount of energy this EnergyHolder can store

allowedConnectionType

determines whether energy can be inserted, extracted, or both

defaultConnectionConfig

the default (BlockFace, NetworkConnectionType) to be used if no configuration is stored