Interface ItemTooltipCallback
@Deprecated public interface ItemTooltipCallback
Deprecated.
-
Field Summary
Fields Modifier and Type Field Description static Event<ItemTooltipCallback>
EVENT
Deprecated. -
Method Summary
Modifier and Type Method Description void
getTooltip(net.minecraft.item.ItemStack stack, net.minecraft.client.item.TooltipContext tooltipContext, List<net.minecraft.text.Text> lines)
Deprecated.Called when an item stack's tooltip is rendered.
-
Field Details
-
EVENT
Deprecated.Fired after the game has appended all base tooltip lines to the list.
-
-
Method Details
-
getTooltip
void getTooltip(net.minecraft.item.ItemStack stack, net.minecraft.client.item.TooltipContext tooltipContext, List<net.minecraft.text.Text> lines)Deprecated.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
-
ItemTooltipCallback