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 eqp
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 Leqp;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 Leqp;b:Lsw;
      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 Leqp;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 Leqp;d:Lsw;
      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;
  • Constructor Details

    • Tooltip

      private Tooltip(Text content, @Nullable @Nullable Text narration)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leqp;<init>(Lsw;Lsw;)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

    • of

      public static Tooltip of(Text content, @Nullable @Nullable Text narration)
      Mappings:
      Namespace Name Mixin selector
      official a Leqp;a(Lsw;Lsw;)Leqp;
      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 Leqp;a(Lsw;)Leqp;
      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 Lesq;b(Lesp;)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 Leqp;a(Lenn;)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 Leqp;a(Lenn;Lsw;)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;