UsableItem

data class UsableItem(val item: ItemStack, val validate: (PlayerInteractEvent) -> Boolean = { true }, val onUse: (PlayerInteractEvent) -> Unit)

Constructors

Link copied to clipboard
constructor(item: ItemStack, validate: (PlayerInteractEvent) -> Boolean = { true }, onUse: (PlayerInteractEvent) -> Unit)

Properties

Link copied to clipboard
val item: ItemStack
Link copied to clipboard
val onUse: (PlayerInteractEvent) -> Unit
Link copied to clipboard
val validate: (PlayerInteractEvent) -> Boolean