registerItemTooltip

open fun registerItemTooltip(method: Any): EventTrigger

Registers a new trigger that runs when a tooltip is being rendered. This allows for the user to modify what text is in the tooltip, and even the ability to cancel rendering completely.

Passes through three arguments:

  • The list of lore to modify.

  • The Item that this lore is attached to.

  • The cancellable event.

Available modifications:

Return

The trigger for additional modification

Parameters

method

The method to call when the event is fired

Sources

Link copied to clipboard