ItemButton

class ItemButton @JvmOverloads constructor(stacks: List<ItemStack>, val preDisplayDecorator: (ItemStack, Player) -> ItemStack = { stack, _ -> stack }) : AbstractItem(source)

Represents an item in the guide.

Parameters

stacks

The items to display. If multiple are provided, the button will automatically cycle through all of them. You must supply at least one item

Constructors

Link copied to clipboard
constructor(vararg stacks: ItemStack)
constructor(stack: ItemStack, preDisplayDecorator: (ItemStack, Player) -> ItemStack)
constructor(stacks: List<ItemStack>, preDisplayDecorator: (ItemStack, Player) -> ItemStack = { stack, _ -> stack })

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard

Functions

Link copied to clipboard
open override fun addWindow(p0: AbstractWindow)
Link copied to clipboard
open override fun getItemProvider(player: Player): ItemProvider
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)