Interface ItemTooltipCallback
public interface ItemTooltipCallback
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Event
<ItemTooltipCallback> Fired after the game has appended all base tooltip lines to the list. -
Method Summary
Modifier and TypeMethodDescriptionvoid
getTooltip
(ItemStack stack, Item.TooltipContext tooltipContext, TooltipType tooltipType, List<Text> lines) Called when an item stack's tooltip is rendered.
-
Field Details
-
EVENT
Fired after the game has appended all base tooltip lines to the list.
-
-
Method Details
-
getTooltip
void getTooltip(ItemStack stack, Item.TooltipContext tooltipContext, TooltipType tooltipType, List<Text> lines) Called when an item stack's tooltip is rendered. Text added tolines
will be rendered with the tooltip.- Parameters:
lines
- the list containing the lines of text displayed on the stack's tooltip
-