Interface TooltipComponent

All Known Implementing Classes:
BundleTooltipComponent, OrderedTextTooltipComponent, ProfilesTooltipComponent

@Environment(CLIENT) public interface TooltipComponent
Mappings:
Namespace Name
named net/minecraft/client/gui/tooltip/TooltipComponent
intermediary net/minecraft/class_5684
official fwh
  • Method Details

    • of

      static TooltipComponent of(OrderedText text)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/client/gui/tooltip/TooltipComponent;of(Lnet/minecraft/text/OrderedText;)Lnet/minecraft/client/gui/tooltip/TooltipComponent;
      intermediary method_32662 Lnet/minecraft/class_5684;method_32662(Lnet/minecraft/class_5481;)Lnet/minecraft/class_5684;
      official a Lfwh;a(Lazq;)Lfwh;
    • of

      static TooltipComponent of(TooltipData tooltipData)
      Mappings:
      Namespace Name Mixin selector
      named of Lnet/minecraft/client/gui/tooltip/TooltipComponent;of(Lnet/minecraft/item/tooltip/TooltipData;)Lnet/minecraft/client/gui/tooltip/TooltipComponent;
      intermediary method_32663 Lnet/minecraft/class_5684;method_32663(Lnet/minecraft/class_5632;)Lnet/minecraft/class_5684;
      official a Lfwh;a(Lcvi;)Lfwh;
    • getHeight

      int getHeight(TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/client/gui/tooltip/TooltipComponent;getHeight(Lnet/minecraft/client/font/TextRenderer;)I
      intermediary method_32661 Lnet/minecraft/class_5684;method_32661(Lnet/minecraft/class_327;)I
      official a Lfwh;a(Lfnp;)I
    • getWidth

      int getWidth(TextRenderer textRenderer)
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lnet/minecraft/client/gui/tooltip/TooltipComponent;getWidth(Lnet/minecraft/client/font/TextRenderer;)I
      intermediary method_32664 Lnet/minecraft/class_5684;method_32664(Lnet/minecraft/class_327;)I
      official b Lfwh;b(Lfnp;)I
    • isSticky

      default boolean isSticky()
      Returns whether this tooltip component should be visible when the item that it is on is focused, regardless of whether the cursor is hovering over another item.
      Mappings:
      Namespace Name Mixin selector
      named isSticky Lnet/minecraft/client/gui/tooltip/TooltipComponent;isSticky()Z
      intermediary method_62003 Lnet/minecraft/class_5684;method_62003()Z
      official a Lfwh;a()Z
    • drawText

      default void drawText(TextRenderer textRenderer, int x, int y, Matrix4f matrix, VertexConsumerProvider.Immediate vertexConsumers)
      Mappings:
      Namespace Name Mixin selector
      named drawText Lnet/minecraft/client/gui/tooltip/TooltipComponent;drawText(Lnet/minecraft/client/font/TextRenderer;IILorg/joml/Matrix4f;Lnet/minecraft/client/render/VertexConsumerProvider$Immediate;)V
      intermediary method_32665 Lnet/minecraft/class_5684;method_32665(Lnet/minecraft/class_327;IILorg/joml/Matrix4f;Lnet/minecraft/class_4597$class_4598;)V
      official a Lfwh;a(Lfnp;IILorg/joml/Matrix4f;Lglk$a;)V
    • drawItems

      default void drawItems(TextRenderer textRenderer, int x, int y, int width, int height, DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      named drawItems Lnet/minecraft/client/gui/tooltip/TooltipComponent;drawItems(Lnet/minecraft/client/font/TextRenderer;IIIILnet/minecraft/client/gui/DrawContext;)V
      intermediary method_32666 Lnet/minecraft/class_5684;method_32666(Lnet/minecraft/class_327;IIIILnet/minecraft/class_332;)V
      official a Lfwh;a(Lfnp;IIIILfnr;)V