Class TooltipImageEvent

java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.TooltipImageEvent

public class TooltipImageEvent extends Event
Fired when Item.getTooltipImage(net.minecraft.world.item.ItemStack) is called, allowing listeners to provide custom tooltip data (e.g. container previews).

Set tooltipData to a non-null value to inject a custom tooltip component; the mixin will return it as Optional.of(tooltipData).

  • Field Details

    • itemStack

      public final net.minecraft.world.item.ItemStack itemStack
    • tooltipData

      public net.minecraft.world.inventory.tooltip.TooltipComponent tooltipData
  • Constructor Details

    • TooltipImageEvent

      public TooltipImageEvent(net.minecraft.world.item.ItemStack itemStack)