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.

@FunctionalInterface public static interface ItemTooltipEvents.Append
The tooltip as it is about to be shown, every other line in place: what is added here comes last.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(net.minecraft.world.item.ItemStack stack, @Nullable net.minecraft.world.entity.player.Player player, net.minecraft.world.item.TooltipFlag flag, List<net.minecraft.network.chat.Component> lines)
     
  • Method Details

    • append

      void append(net.minecraft.world.item.ItemStack stack, @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 one
      lines - the tooltip's lines, to add to (a mutable list)