Interface ItemTooltipEvents.Append
- Enclosing class:
ItemTooltipEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The tooltip as it is about to be shown, every other line in place: what is added here comes last.
-
Method Summary
-
Method Details
-
append
void append(net.minecraft.world.item.ItemStack stack, net.minecraft.world.item.Item.TooltipContext context, @Nullable @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.TooltipFlag flag, List<net.minecraft.network.chat.Component> lines) - Parameters:
player- the player the tooltip is for, when there is onelines- the tooltip's lines, to add to (a mutable list)
-