FluidButton

open class FluidButton(fluids: List<PylonFluid>, val amount: Double?, val preDisplayDecorator: (ItemStackBuilder) -> ItemStackBuilder) : AbstractItem(source)

Represents a fluid in the guide.

Parameters

fluids

The list of fluids to display. If multiple fluids are supplied, the button automatically cycles through all of them. You must supply at least one fluid

Constructors

Link copied to clipboard
constructor(amount: Double?, vararg fluids: PylonFluid)
constructor(vararg fluids: PylonFluid)
constructor(input: RecipeInput.Fluid)
constructor(fluids: List<PylonFluid>, amount: Double?, preDisplayDecorator: (ItemStackBuilder) -> ItemStackBuilder)

Properties

Link copied to clipboard

The amount of the fluid to display in the lore, or null if no amount should be displayed.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A function to apply to the button item after creating it.

Functions

Link copied to clipboard
open override fun addWindow(p0: AbstractWindow)
Link copied to clipboard
Link copied to clipboard
open override fun getWindows(): MutableSet<Window>
Link copied to clipboard
open override fun handleClick(clickType: ClickType, player: Player, event: InventoryClickEvent)
Link copied to clipboard
open override fun notifyWindows()
Link copied to clipboard
open override fun removeWindow(p0: AbstractWindow)