ItemTooltipEvent
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Description
This event is fired whenever a tooltip is calculated.Note: the player may not always be present, make sure you check if it is null before trying to use it
Extends
ItemTooltipEvent extends PlayerEvent
.
Listening to the event
This event can be listened to like so:
Members
Getter
Gets the extra tooltip flags, such as if advanced tooltips should be displayed.
Return Type:
TooltipFlag
flags() as TooltipFlag
Gets the extra tooltip flags, such as if advanced tooltips should be displayed.
Returns: The tooltip flags
Return Type:
TooltipFlag
Getter
Gets the ItemStack that the tooltip is for.
Return Type:
IItemStack
itemStack() as IItemStack
Gets the ItemStack that the tooltip is for.
Returns: The ItemStack that the tooltip is for.
Return Type:
IItemStack