public interface ItemTooltipCallback
| Modifier and Type | Field and Description |
|---|---|
static Event<ItemTooltipCallback> |
EVENT
Fired after the game has appended all base tooltip lines to the list.
|
| Modifier and Type | Method and Description |
|---|---|
void |
getTooltip(net.minecraft.item.ItemStack stack,
net.minecraft.client.item.TooltipContext tooltipContext,
List<net.minecraft.text.Text> lines)
Called when an item stack's tooltip is rendered.
|
static final Event<ItemTooltipCallback> EVENT
void getTooltip(net.minecraft.item.ItemStack stack,
net.minecraft.client.item.TooltipContext tooltipContext,
List<net.minecraft.text.Text> lines)
lines will be
rendered with the tooltip.lines - the list containing the lines of text displayed on the stack's tooltip