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
named net/minecraft/client/gui/tooltip/Tooltip
intermediary net/minecraft/class_7919
official fiq
  • Field Details

    • ROW_LENGTH

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

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

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

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

    • Tooltip

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

    • of

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

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

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

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

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