Class Tooltip

java.lang.Object
net.minecraft.client.gui.tooltip.Tooltip
All Implemented Interfaces:
Narratable

@Environment(CLIENT) public class Tooltip extends Object implements Narratable
Mappings:
Namespace Name
official eyr
intermediary net/minecraft/class_7919
named net/minecraft/client/gui/tooltip/Tooltip
  • Field Details

    • ROW_LENGTH

      private static final int ROW_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leyr;a:I
      intermediary field_41101 Lnet/minecraft/class_7919;field_41101:I
      named ROW_LENGTH Lnet/minecraft/client/gui/tooltip/Tooltip;ROW_LENGTH:I
    • content

      private final Text content
      Mappings:
      Namespace Name Mixin selector
      official b Leyr;b:Lvf;
      intermediary field_41102 Lnet/minecraft/class_7919;field_41102:Lnet/minecraft/class_2561;
      named content Lnet/minecraft/client/gui/tooltip/Tooltip;content:Lnet/minecraft/text/Text;
    • lines

      Mappings:
      Namespace Name Mixin selector
      official c Leyr;c:Ljava/util/List;
      intermediary field_41103 Lnet/minecraft/class_7919;field_41103:Ljava/util/List;
      named lines Lnet/minecraft/client/gui/tooltip/Tooltip;lines:Ljava/util/List;
    • narration

      @Nullable private final @Nullable Text narration
      Mappings:
      Namespace Name Mixin selector
      official d Leyr;d:Lvf;
      intermediary field_41104 Lnet/minecraft/class_7919;field_41104:Lnet/minecraft/class_2561;
      named narration Lnet/minecraft/client/gui/tooltip/Tooltip;narration:Lnet/minecraft/text/Text;
    • delay

      private int delay
      Mappings:
      Namespace Name Mixin selector
      official e Leyr;e:I
      intermediary field_46719 Lnet/minecraft/class_7919;field_46719:I
      named delay Lnet/minecraft/client/gui/tooltip/Tooltip;delay:I
    • renderCheckTime

      private long renderCheckTime
      Mappings:
      Namespace Name Mixin selector
      official f Leyr;f:J
      intermediary field_46720 Lnet/minecraft/class_7919;field_46720:J
      named renderCheckTime Lnet/minecraft/client/gui/tooltip/Tooltip;renderCheckTime:J
    • prevShouldRender

      private boolean prevShouldRender
      Mappings:
      Namespace Name Mixin selector
      official g Leyr;g:Z
      intermediary field_46721 Lnet/minecraft/class_7919;field_46721:Z
      named prevShouldRender Lnet/minecraft/client/gui/tooltip/Tooltip;prevShouldRender:Z
  • Constructor Details

    • Tooltip

      private Tooltip(Text content, @Nullable @Nullable Text narration)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leyr;<init>(Lvf;Lvf;)V
      intermediary <init> Lnet/minecraft/class_7919;<init>(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/tooltip/Tooltip;<init>(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
  • Method Details

    • setDelay

      public void setDelay(int delay)
      Mappings:
      Namespace Name Mixin selector
      official a Leyr;a(I)V
      intermediary method_54383 Lnet/minecraft/class_7919;method_54383(I)V
      named setDelay Lnet/minecraft/client/gui/tooltip/Tooltip;setDelay(I)V
    • of

      public static Tooltip of(Text content, @Nullable @Nullable Text narration)
      Mappings:
      Namespace Name Mixin selector
      official a Leyr;a(Lvf;Lvf;)Leyr;
      intermediary method_47408 Lnet/minecraft/class_7919;method_47408(Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)Lnet/minecraft/class_7919;
      named of Lnet/minecraft/client/gui/tooltip/Tooltip;of(Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)Lnet/minecraft/client/gui/tooltip/Tooltip;
    • of

      public static Tooltip of(Text content)
      Mappings:
      Namespace Name Mixin selector
      official a Leyr;a(Lvf;)Leyr;
      intermediary method_47407 Lnet/minecraft/class_7919;method_47407(Lnet/minecraft/class_2561;)Lnet/minecraft/class_7919;
      named of Lnet/minecraft/client/gui/tooltip/Tooltip;of(Lnet/minecraft/text/Text;)Lnet/minecraft/client/gui/tooltip/Tooltip;
    • appendNarrations

      public void appendNarrations(NarrationMessageBuilder builder)
      Specified by:
      appendNarrations in interface Narratable
      Mappings:
      Namespace Name Mixin selector
      official b Lfba;b(Lfaz;)V
      intermediary method_37020 Lnet/minecraft/class_6383;method_37020(Lnet/minecraft/class_6382;)V
      named appendNarrations Lnet/minecraft/client/gui/Narratable;appendNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
    • getLines

      public List<OrderedText> getLines(MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official a Leyr;a(Levi;)Ljava/util/List;
      intermediary method_47405 Lnet/minecraft/class_7919;method_47405(Lnet/minecraft/class_310;)Ljava/util/List;
      named getLines Lnet/minecraft/client/gui/tooltip/Tooltip;getLines(Lnet/minecraft/client/MinecraftClient;)Ljava/util/List;
    • wrapLines

      public static List<OrderedText> wrapLines(MinecraftClient client, Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Leyr;a(Levi;Lvf;)Ljava/util/List;
      intermediary method_47406 Lnet/minecraft/class_7919;method_47406(Lnet/minecraft/class_310;Lnet/minecraft/class_2561;)Ljava/util/List;
      named wrapLines Lnet/minecraft/client/gui/tooltip/Tooltip;wrapLines(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/text/Text;)Ljava/util/List;
    • render

      public void render(boolean hovered, boolean focused, ScreenRect focus)
      Mappings:
      Namespace Name Mixin selector
      official a Leyr;a(ZZLfbj;)V
      intermediary method_54384 Lnet/minecraft/class_7919;method_54384(ZZLnet/minecraft/class_8030;)V
      named render Lnet/minecraft/client/gui/tooltip/Tooltip;render(ZZLnet/minecraft/client/gui/ScreenRect;)V
    • createPositioner

      protected TooltipPositioner createPositioner(boolean hovered, boolean focused, ScreenRect focus)
      Mappings:
      Namespace Name Mixin selector
      official b Leyr;b(ZZLfbj;)Lffu;
      intermediary method_54385 Lnet/minecraft/class_7919;method_54385(ZZLnet/minecraft/class_8030;)Lnet/minecraft/class_8000;
      named createPositioner Lnet/minecraft/client/gui/tooltip/Tooltip;createPositioner(ZZLnet/minecraft/client/gui/ScreenRect;)Lnet/minecraft/client/gui/tooltip/TooltipPositioner;