Class Texts

java.lang.Object
net.minecraft.text.Texts

public class Texts extends Object
Mappings:
Namespace Name
named net/minecraft/text/Texts
intermediary net/minecraft/class_2564
official ws
  • Field Details Link icon

    • DEFAULT_SEPARATOR Link icon

      public static final String DEFAULT_SEPARATOR
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_SEPARATOR Lnet/minecraft/text/Texts;DEFAULT_SEPARATOR:Ljava/lang/String;
      intermediary field_33536 Lnet/minecraft/class_2564;field_33536:Ljava/lang/String;
      official a Lws;a:Ljava/lang/String;
    • GRAY_DEFAULT_SEPARATOR_TEXT Link icon

      public static final Text GRAY_DEFAULT_SEPARATOR_TEXT
      Mappings:
      Namespace Name Mixin selector
      named GRAY_DEFAULT_SEPARATOR_TEXT Lnet/minecraft/text/Texts;GRAY_DEFAULT_SEPARATOR_TEXT:Lnet/minecraft/text/Text;
      intermediary field_33537 Lnet/minecraft/class_2564;field_33537:Lnet/minecraft/class_2561;
      official b Lws;b:Lwp;
    • DEFAULT_SEPARATOR_TEXT Link icon

      public static final Text DEFAULT_SEPARATOR_TEXT
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_SEPARATOR_TEXT Lnet/minecraft/text/Texts;DEFAULT_SEPARATOR_TEXT:Lnet/minecraft/text/Text;
      intermediary field_33538 Lnet/minecraft/class_2564;field_33538:Lnet/minecraft/class_2561;
      official c Lws;c:Lwp;
  • Constructor Details Link icon

    • Texts Link icon

      public Texts()
  • Method Details Link icon

    • setStyleIfAbsent Link icon

      public static MutableText setStyleIfAbsent(MutableText text, Style style)
      Mappings:
      Namespace Name Mixin selector
      named setStyleIfAbsent Lnet/minecraft/text/Texts;setStyleIfAbsent(Lnet/minecraft/text/MutableText;Lnet/minecraft/text/Style;)Lnet/minecraft/text/MutableText;
      intermediary method_10889 Lnet/minecraft/class_2564;method_10889(Lnet/minecraft/class_5250;Lnet/minecraft/class_2583;)Lnet/minecraft/class_5250;
      official a Lws;a(Lxd;Lxm;)Lxd;
    • parse Link icon

      public static Optional<MutableText> parse(@Nullable @Nullable ServerCommandSource source, Optional<Text> text, @Nullable @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/text/Texts;parse(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Optional;Lnet/minecraft/entity/Entity;I)Ljava/util/Optional;
      intermediary method_36330 Lnet/minecraft/class_2564;method_36330(Lnet/minecraft/class_2168;Ljava/util/Optional;Lnet/minecraft/class_1297;I)Ljava/util/Optional;
      official a Lws;a(Lex;Ljava/util/Optional;Lbum;I)Ljava/util/Optional;
    • parse Link icon

      public static MutableText parse(@Nullable @Nullable ServerCommandSource source, Text text, @Nullable @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parse Lnet/minecraft/text/Texts;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/text/Text;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;
      intermediary method_10881 Lnet/minecraft/class_2564;method_10881(Lnet/minecraft/class_2168;Lnet/minecraft/class_2561;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;
      official a Lws;a(Lex;Lwp;Lbum;I)Lxd;
    • parseStyle Link icon

      private static Style parseStyle(@Nullable @Nullable ServerCommandSource source, Style style, @Nullable @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named parseStyle Lnet/minecraft/text/Texts;parseStyle(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/text/Style;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/Style;
      intermediary method_27663 Lnet/minecraft/class_2564;method_27663(Lnet/minecraft/class_2168;Lnet/minecraft/class_2583;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_2583;
      official a Lws;a(Lex;Lxm;Lbum;I)Lxm;
    • joinOrdered Link icon

      public static Text joinOrdered(Collection<String> strings)
      Mappings:
      Namespace Name Mixin selector
      named joinOrdered Lnet/minecraft/text/Texts;joinOrdered(Ljava/util/Collection;)Lnet/minecraft/text/Text;
      intermediary method_10888 Lnet/minecraft/class_2564;method_10888(Ljava/util/Collection;)Lnet/minecraft/class_2561;
      official a Lws;a(Ljava/util/Collection;)Lwp;
    • joinOrdered Link icon

      public static <T extends Comparable<T>> Text joinOrdered(Collection<T> elements, Function<T,Text> transformer)
      Mappings:
      Namespace Name Mixin selector
      named joinOrdered Lnet/minecraft/text/Texts;joinOrdered(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/text/Text;
      intermediary method_10887 Lnet/minecraft/class_2564;method_10887(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_2561;
      official a Lws;a(Ljava/util/Collection;Ljava/util/function/Function;)Lwp;
    • join Link icon

      public static <T> Text join(Collection<? extends T> elements, Function<T,Text> transformer)
      Mappings:
      Namespace Name Mixin selector
      named join Lnet/minecraft/text/Texts;join(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/text/Text;
      intermediary method_10884 Lnet/minecraft/class_2564;method_10884(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_2561;
      official b Lws;b(Ljava/util/Collection;Ljava/util/function/Function;)Lwp;
    • join Link icon

      public static <T> MutableText join(Collection<? extends T> elements, Optional<? extends Text> separator, Function<T,Text> transformer)
      Mappings:
      Namespace Name Mixin selector
      named join Lnet/minecraft/text/Texts;join(Ljava/util/Collection;Ljava/util/Optional;Ljava/util/function/Function;)Lnet/minecraft/text/MutableText;
      intermediary method_36331 Lnet/minecraft/class_2564;method_36331(Ljava/util/Collection;Ljava/util/Optional;Ljava/util/function/Function;)Lnet/minecraft/class_5250;
      official a Lws;a(Ljava/util/Collection;Ljava/util/Optional;Ljava/util/function/Function;)Lxd;
    • join Link icon

      public static Text join(Collection<? extends Text> texts, Text separator)
      Mappings:
      Namespace Name Mixin selector
      named join Lnet/minecraft/text/Texts;join(Ljava/util/Collection;Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
      intermediary method_37112 Lnet/minecraft/class_2564;method_37112(Ljava/util/Collection;Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;
      official a Lws;a(Ljava/util/Collection;Lwp;)Lwp;
    • join Link icon

      public static <T> MutableText join(Collection<? extends T> elements, Text separator, Function<T,Text> transformer)
      Mappings:
      Namespace Name Mixin selector
      named join Lnet/minecraft/text/Texts;join(Ljava/util/Collection;Lnet/minecraft/text/Text;Ljava/util/function/Function;)Lnet/minecraft/text/MutableText;
      intermediary method_36332 Lnet/minecraft/class_2564;method_36332(Ljava/util/Collection;Lnet/minecraft/class_2561;Ljava/util/function/Function;)Lnet/minecraft/class_5250;
      official a Lws;a(Ljava/util/Collection;Lwp;Ljava/util/function/Function;)Lxd;
    • bracketed Link icon

      public static MutableText bracketed(Text text)
      Mappings:
      Namespace Name Mixin selector
      named bracketed Lnet/minecraft/text/Texts;bracketed(Lnet/minecraft/text/Text;)Lnet/minecraft/text/MutableText;
      intermediary method_10885 Lnet/minecraft/class_2564;method_10885(Lnet/minecraft/class_2561;)Lnet/minecraft/class_5250;
      official a Lws;a(Lwp;)Lxd;
    • toText Link icon

      public static Text toText(com.mojang.brigadier.Message message)
      Mappings:
      Namespace Name Mixin selector
      named toText Lnet/minecraft/text/Texts;toText(Lcom/mojang/brigadier/Message;)Lnet/minecraft/text/Text;
      intermediary method_10883 Lnet/minecraft/class_2564;method_10883(Lcom/mojang/brigadier/Message;)Lnet/minecraft/class_2561;
      official a Lws;a(Lcom/mojang/brigadier/Message;)Lwp;
    • hasTranslation Link icon

      public static boolean hasTranslation(@Nullable @Nullable Text text)
      Mappings:
      Namespace Name Mixin selector
      named hasTranslation Lnet/minecraft/text/Texts;hasTranslation(Lnet/minecraft/text/Text;)Z
      intermediary method_43476 Lnet/minecraft/class_2564;method_43476(Lnet/minecraft/class_2561;)Z
      official b Lws;b(Lwp;)Z
    • bracketedCopyable Link icon

      public static MutableText bracketedCopyable(String string)
      Mappings:
      Namespace Name Mixin selector
      named bracketedCopyable Lnet/minecraft/text/Texts;bracketedCopyable(Ljava/lang/String;)Lnet/minecraft/text/MutableText;
      intermediary method_47523 Lnet/minecraft/class_2564;method_47523(Ljava/lang/String;)Lnet/minecraft/class_5250;
      official a Lws;a(Ljava/lang/String;)Lxd;