Interface TooltipEvent.RenderVanilla

Enclosing interface:
TooltipEvent

@Environment(CLIENT) public static interface TooltipEvent.RenderVanilla
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.InteractionResult
    renderTooltip(com.mojang.blaze3d.vertex.PoseStack matrices, List<? extends net.minecraft.util.FormattedCharSequence> texts, int x, int y)
    Invoked before the tooltip for a tooltip is rendered.
  • Method Details

    • renderTooltip

      net.minecraft.world.InteractionResult renderTooltip(com.mojang.blaze3d.vertex.PoseStack matrices, List<? extends net.minecraft.util.FormattedCharSequence> texts, int x, int y)
      Invoked before the tooltip for a tooltip is rendered.

      This is not invoked on Forge due to fundamental differences in Forge and vanilla tooltip logic.

      Parameters:
      matrices - The pose stack.
      texts - The mutable list of components that are rendered.
      x - The x-coordinate of the tooltip.
      y - The y-coordinate of the tooltip.
      Returns:
      Returning InteractionResult.FAIL cancels the rendering.