DefaultFluidHolder

class DefaultFluidHolder(compound: Provider<Compound>, containers: Map<NetworkedFluidContainer, NetworkConnectionType>, blockedFaces: Set<BlockFace>, defaultContainerConfig: () -> Map<BlockFace, NetworkedFluidContainer>, defaultConnectionConfig: () -> Map<BlockFace, NetworkConnectionType>?) : DefaultContainerEndPointDataHolder<NetworkedFluidContainer> , FluidHolder

The default FluidHolder implementation.

Parameters

compound

the Compound for data storage and retrieval

containers

all available NetworkedFluidContainers and their allowed NetworkConnectionType

defaultContainerConfig

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

defaultConnectionConfig

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

Constructors

Link copied to clipboard
constructor(compound: Provider<Compound>, containers: Map<NetworkedFluidContainer, NetworkConnectionType>, blockedFaces: Set<BlockFace>, defaultContainerConfig: () -> Map<BlockFace, NetworkedFluidContainer>, defaultConnectionConfig: () -> Map<BlockFace, NetworkConnectionType>?)

Properties

Link copied to clipboard
open override val allowedFaces: Set<BlockFace>

A set of BlockFaces where connections are allowed.

Link copied to clipboard
override val blockedFaces: EnumSet<BlockFace>

The BlockFaces that can never have a connection.

Link copied to clipboard
override val channels: MutableMap<BlockFace, Int>

Stores the selected channels per BlockFace.

Link copied to clipboard

Stores the currently configured NetworkConnectionType per BlockFace.

Link copied to clipboard

Stores which C is accessible from what BlockFace.

Link copied to clipboard

Stores all available C and their allowed NetworkConnectionTypes.

Link copied to clipboard
override val extractPriorities: MutableMap<BlockFace, Int>

Stores the extraction priorities per BlockFace.

Link copied to clipboard
override val insertPriorities: MutableMap<BlockFace, Int>

Stores the insertion priorities per BlockFace.