ClickableItem

class ClickableItem(material: Material, displayName: String, loreLines: List<String> = emptyList(), amount: Int = 1, customItem: ItemStack? = null, clickHandler: (ClickAction) -> GuiResult<Unit>? = null) : GuiItem

クリック可能なアイテム

Parameters

material

アイテムのマテリアル

displayName

表示名

loreLines

説明文

amount

アイテム数

customItem

カスタムアイテム(設定時は material/displayName/lore より優先)

clickHandler

クリック時のハンドラー

Constructors

Link copied to clipboard
constructor(material: Material, displayName: String, loreLines: List<String> = emptyList(), amount: Int = 1, customItem: ItemStack? = null, clickHandler: (ClickAction) -> GuiResult<Unit>? = null)

Functions

Link copied to clipboard
open override fun toInvUiItem(): Item

InvUI の Item に変換する