showItem

abstract infix fun showItem(key: HoverEvent.ShowItem): Styler

Applies a hover event that shows an item.

Return

this Styler instance for chaining

Parameters

key

the show item hover event to apply


open fun showItem(key: Key, count: Int): Styler

Applies a hover event that shows an item with the given key and count.

Return

this Styler instance for chaining

Parameters

key

the item type key

count

the item count


open fun showItem(key: Key, count: Int, data: Map<Key, DataComponentValue>): Styler

Applies a hover event that shows an item with the given key, count, and data components.

Return

this Styler instance for chaining

Parameters

key

the item type key

count

the item count

data

the item data components