storedFluidHolder

@JvmName(name = "storedFluidHolderBlockSide")
fun storedFluidHolder(container: Pair<NetworkedFluidContainer, NetworkConnectionType>, vararg containers: Pair<NetworkedFluidContainer, NetworkConnectionType>, blockedSides: Set<BlockSide>, defaultContainerConfig: () -> MutableMap<BlockFace, NetworkedFluidContainer> = { CUBE_FACES.associateWithTo(enumMap()) { container.first } }, defaultConnectionConfig: () -> EnumMap<BlockFace, NetworkConnectionType>? = null): DefaultFluidHolder

Retrieves the FluidHolder previously stored or creates a new one and registers it in the holders map.

The fluid holder uses the containers and connection types provided (container, containers).

The blockedSides define which sides of the tile-entity can never be used for fluid transfer.

If the FluidHolder is created for the first time, defaultContainerConfig and defaultConnectionConfig are used to determine the correct NetworkedFluidContainer and NetworkConnectionType for each side.

If defaultConnectionConfig is null, each side will be assigned the highest possible connection type.


@JvmName(name = "storedFluidHolderBlockFace")
fun storedFluidHolder(container: Pair<NetworkedFluidContainer, NetworkConnectionType>, vararg containers: Pair<NetworkedFluidContainer, NetworkConnectionType>, blockedFaces: Set<BlockFace> = emptySet(), defaultContainerConfig: () -> MutableMap<BlockFace, NetworkedFluidContainer> = { CUBE_FACES.associateWithTo(enumMap()) { container.first } }, defaultConnectionConfig: () -> EnumMap<BlockFace, NetworkConnectionType>? = null): DefaultFluidHolder

Retrieves the FluidHolder previously stored or creates a new one and registers it in the holders map.

The fluid holder uses the containers and connection types provided (container, containers).

The blockedFaces define which faces of the tile-entity can never be used for fluid transfer.

If the FluidHolder is created for the first time, defaultContainerConfig and defaultConnectionConfig are used to determine the correct NetworkedFluidContainer and NetworkConnectionType for each side.

If defaultConnectionConfig is null, each side will be assigned the highest possible connection type.