fluidBar

fun fluidBar(fluidHolder: FluidHolder, container: FluidContainer, barTypes: Map<FluidType?, Provider<ItemType>> = DEFAULT_TP_FLUID_BAR_ITEMS, onClick: ClickDsl.() -> Unit = {}): SlotElementSupplier

A verticalBar for displaying a fluid level. Ranges from FluidContainer.amountProvider to FluidContainer.capacityProvider, with the bar item determined by FluidContainer.typeProvider and barTypes. Clicking the bar item with a bucket inserts or extracts fluid to and from the container.


fun fluidBar(allowedConnectionType: NetworkConnectionType, container: NetworkedFluidContainer, type: Provider<FluidType?>, amount: Provider<Long>, capacity: Provider<Long>, barTypes: Map<FluidType?, Provider<ItemType>> = DEFAULT_TP_FLUID_BAR_ITEMS, onClick: ClickDsl.() -> Unit = {}): SlotElementSupplier

A verticalBar for displaying a fluid level. Ranges from amount to capacity, with the bar item determined by type and barTypes. Clicking the bar item with a bucket inserts or extracts fluid to and from the container.


fun fluidBar(type: Provider<FluidType?>, amount: Provider<Long>, capacity: Provider<Long>, barTypes: Map<FluidType?, Provider<ItemType>> = DEFAULT_TP_FLUID_BAR_ITEMS, onClick: ClickDsl.() -> Unit = {}): SlotElementSupplier

A verticalBar for displaying a fluid level. Ranges from amount to capacity, with the bar item determined by type and barTypes.