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 fpq
  • 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 Lfpq;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 Lfpq;b:Lxv;
    • 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 Lfpq;c:Ljava/util/List;
    • language

      @Nullable private @Nullable Language language
      Mappings:
      Namespace Name Mixin selector
      named language Lnet/minecraft/client/gui/tooltip/Tooltip;language:Lnet/minecraft/util/Language;
      intermediary field_51822 Lnet/minecraft/class_7919;field_51822:Lnet/minecraft/class_2477;
      official d Lfpq;d:Lus;
    • 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 e Lfpq;e:Lxv;
  • 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> Lfpq;<init>(Lxv;Lxv;)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 Lfpq;a(Lxv;Lxv;)Lfpq;
    • 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 Lfpq;a(Lxv;)Lfpq;
    • 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 Lfsd;b(Lfsc;)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 Lfpq;a(Lfmf;)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 Lfpq;a(Lfmf;Lxv;)Ljava/util/List;