ItemTooltipCallback
@Deprecated public interface ItemTooltipCallback
Modifier and Type | Field and Description |
---|---|
static Event<ItemTooltipCallback> |
EVENT
Deprecated.
|
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)
Deprecated.
Called when an item stack's tooltip is rendered.
|
@Deprecated 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