Package-level declarations

Types

Link copied to clipboard

A builder class for creating a GuiButton with various configuration options.

Link copied to clipboard
class GuiButton(var item: ItemStack, val onClick: (InventoryClickEvent) -> Unit, val scope: EventScope<InventoryClickEvent> = EventScope(), val metadata: MutableMap<String, Any> = mutableMapOf(), val delay: Long = 0, val debounce: Long = 0, val throttle: Long = 0, val animationFrames: List<ItemStack> = emptyList(), val animationInterval: Long = 20)

Represents a clickable button within a GUI, which can have various actions, animations, and metadata.