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 fjf
  • 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 Lfjf;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 Lfjf;b:Lwu;
    • 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 Lfjf;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 Lfjf;d:Lts;
    • 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 Lfjf;e:Lwu;
  • 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> Lfjf;<init>(Lwu;Lwu;)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 Lfjf;a(Lwu;Lwu;)Lfjf;
    • 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 Lfjf;a(Lwu;)Lfjf;
    • 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 Lflr;b(Lflq;)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 Lfjf;a(Lffw;)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 Lfjf;a(Lffw;Lwu;)Ljava/util/List;