ItemButton

class ItemButton @JvmOverloads constructor(stacks: List<ItemStack>, val preDisplayDecorator: (ItemStack, Player) -> ItemStack = { stack, _ -> stack }) : AbstractBoundItem(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
val gui: @Nullable Gui
Link copied to clipboard

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

Link copied to clipboard
val stacks: <Error class: unknown class>

Functions

Link copied to clipboard
open override fun addObserver(p0: Observer, p1: Int, p2: Int)
Link copied to clipboard
open override fun bind(p0: Gui)
Link copied to clipboard
open override fun getItemProvider(player: Player): ItemProvider
Link copied to clipboard
open fun getUpdatePeriod(p0: Int): Int
Link copied to clipboard
open fun handleBundleSelect(p0: Player, p1: Int)
Link copied to clipboard
open override fun handleClick(clickType: ClickType, player: Player, click: Click)
Link copied to clipboard
open override fun isBound(): Boolean
Link copied to clipboard
open override fun notifyWindows()
Link copied to clipboard
open override fun removeObserver(p0: Observer, p1: Int, p2: Int)
Link copied to clipboard
open override fun unbind()