Interface ClientTooltipEvent.Item

Enclosing interface:
ClientTooltipEvent

@Environment(CLIENT) public static interface ClientTooltipEvent.Item
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> lines, net.minecraft.world.item.TooltipFlag flag)
    Invoked whenever an item tooltip is rendered.
  • Method Details

    • append

      void append(net.minecraft.world.item.ItemStack stack, List<net.minecraft.network.chat.Component> lines, net.minecraft.world.item.TooltipFlag flag)
      Invoked whenever an item tooltip is rendered. Equivalent to Forge's ItemTooltipEvent event and Fabric's ItemTooltipCallback.
      Parameters:
      stack - The rendered stack.
      lines - The mutable list of tooltip components.
      flag - A flag indicating if advanced mode is active.