Package net.minecraft.text
Class Texts
java.lang.Object
net.minecraft.text.Texts
- Mappings:
Namespace Name named net/minecraft/text/Textsintermediary net/minecraft/class_2564official xc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MutableTextstatic MutableTextbracketedCopyable(String string) static booleanhasTranslation(@Nullable Text text) static Textjoin(Collection<? extends Text> texts, Text separator) static <T> Textjoin(Collection<? extends T> elements, Function<T, Text> transformer) static <T> MutableTextjoin(Collection<? extends T> elements, Optional<? extends Text> separator, Function<T, Text> transformer) static <T> MutableTextjoin(Collection<? extends T> elements, Text separator, Function<T, Text> transformer) static TextjoinOrdered(Collection<String> strings) static <T extends Comparable<T>>
TextjoinOrdered(Collection<T> elements, Function<T, Text> transformer) static Optional<MutableText> parse(@Nullable ServerCommandSource source, Optional<Text> text, @Nullable Entity sender, int depth) static MutableTextprivate static StyleparseStyle(@Nullable ServerCommandSource source, Style style, @Nullable Entity sender, int depth) static MutableTextsetStyleIfAbsent(MutableText text, Style style) static TexttoText(com.mojang.brigadier.Message message)
-
Field Details
-
DEFAULT_SEPARATOR
- See Also:
- Mappings:
Namespace Name Mixin selector named DEFAULT_SEPARATORLnet/minecraft/text/Texts;DEFAULT_SEPARATOR:Ljava/lang/String;intermediary field_33536Lnet/minecraft/class_2564;field_33536:Ljava/lang/String;official aLxc;a:Ljava/lang/String;
-
GRAY_DEFAULT_SEPARATOR_TEXT
- Mappings:
Namespace Name Mixin selector named GRAY_DEFAULT_SEPARATOR_TEXTLnet/minecraft/text/Texts;GRAY_DEFAULT_SEPARATOR_TEXT:Lnet/minecraft/text/Text;intermediary field_33537Lnet/minecraft/class_2564;field_33537:Lnet/minecraft/class_2561;official bLxc;b:Lwz;
-
DEFAULT_SEPARATOR_TEXT
- Mappings:
Namespace Name Mixin selector named DEFAULT_SEPARATOR_TEXTLnet/minecraft/text/Texts;DEFAULT_SEPARATOR_TEXT:Lnet/minecraft/text/Text;intermediary field_33538Lnet/minecraft/class_2564;field_33538:Lnet/minecraft/class_2561;official cLxc;c:Lwz;
-
-
Constructor Details
-
Texts
public Texts()
-
-
Method Details
-
setStyleIfAbsent
- Mappings:
Namespace Name Mixin selector named setStyleIfAbsentLnet/minecraft/text/Texts;setStyleIfAbsent(Lnet/minecraft/text/MutableText;Lnet/minecraft/text/Style;)Lnet/minecraft/text/MutableText;intermediary method_10889Lnet/minecraft/class_2564;method_10889(Lnet/minecraft/class_5250;Lnet/minecraft/class_2583;)Lnet/minecraft/class_5250;official aLxc;a(Lxn;Lxw;)Lxn;
-
parse
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 parseLnet/minecraft/text/Texts;parse(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Optional;Lnet/minecraft/entity/Entity;I)Ljava/util/Optional;intermediary method_36330Lnet/minecraft/class_2564;method_36330(Lnet/minecraft/class_2168;Ljava/util/Optional;Lnet/minecraft/class_1297;I)Ljava/util/Optional;official aLxc;a(Let;Ljava/util/Optional;Lbsr;I)Ljava/util/Optional;
-
parse
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 parseLnet/minecraft/text/Texts;parse(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/text/Text;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/MutableText;intermediary method_10881Lnet/minecraft/class_2564;method_10881(Lnet/minecraft/class_2168;Lnet/minecraft/class_2561;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_5250;official aLxc;a(Let;Lwz;Lbsr;I)Lxn;
-
parseStyle
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 parseStyleLnet/minecraft/text/Texts;parseStyle(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/text/Style;Lnet/minecraft/entity/Entity;I)Lnet/minecraft/text/Style;intermediary method_27663Lnet/minecraft/class_2564;method_27663(Lnet/minecraft/class_2168;Lnet/minecraft/class_2583;Lnet/minecraft/class_1297;I)Lnet/minecraft/class_2583;official aLxc;a(Let;Lxw;Lbsr;I)Lxw;
-
joinOrdered
- Mappings:
Namespace Name Mixin selector named joinOrderedLnet/minecraft/text/Texts;joinOrdered(Ljava/util/Collection;)Lnet/minecraft/text/Text;intermediary method_10888Lnet/minecraft/class_2564;method_10888(Ljava/util/Collection;)Lnet/minecraft/class_2561;official aLxc;a(Ljava/util/Collection;)Lwz;
-
joinOrdered
public static <T extends Comparable<T>> Text joinOrdered(Collection<T> elements, Function<T, Text> transformer) - Mappings:
Namespace Name Mixin selector named joinOrderedLnet/minecraft/text/Texts;joinOrdered(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/text/Text;intermediary method_10887Lnet/minecraft/class_2564;method_10887(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_2561;official aLxc;a(Ljava/util/Collection;Ljava/util/function/Function;)Lwz;
-
join
- Mappings:
Namespace Name Mixin selector named joinLnet/minecraft/text/Texts;join(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/text/Text;intermediary method_10884Lnet/minecraft/class_2564;method_10884(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_2561;official bLxc;b(Ljava/util/Collection;Ljava/util/function/Function;)Lwz;
-
join
public static <T> MutableText join(Collection<? extends T> elements, Optional<? extends Text> separator, Function<T, Text> transformer) - Mappings:
Namespace Name Mixin selector named joinLnet/minecraft/text/Texts;join(Ljava/util/Collection;Ljava/util/Optional;Ljava/util/function/Function;)Lnet/minecraft/text/MutableText;intermediary method_36331Lnet/minecraft/class_2564;method_36331(Ljava/util/Collection;Ljava/util/Optional;Ljava/util/function/Function;)Lnet/minecraft/class_5250;official aLxc;a(Ljava/util/Collection;Ljava/util/Optional;Ljava/util/function/Function;)Lxn;
-
join
- Mappings:
Namespace Name Mixin selector named joinLnet/minecraft/text/Texts;join(Ljava/util/Collection;Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;intermediary method_37112Lnet/minecraft/class_2564;method_37112(Ljava/util/Collection;Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;official aLxc;a(Ljava/util/Collection;Lwz;)Lwz;
-
join
public static <T> MutableText join(Collection<? extends T> elements, Text separator, Function<T, Text> transformer) - Mappings:
Namespace Name Mixin selector named joinLnet/minecraft/text/Texts;join(Ljava/util/Collection;Lnet/minecraft/text/Text;Ljava/util/function/Function;)Lnet/minecraft/text/MutableText;intermediary method_36332Lnet/minecraft/class_2564;method_36332(Ljava/util/Collection;Lnet/minecraft/class_2561;Ljava/util/function/Function;)Lnet/minecraft/class_5250;official aLxc;a(Ljava/util/Collection;Lwz;Ljava/util/function/Function;)Lxn;
-
bracketed
- Mappings:
Namespace Name Mixin selector named bracketedLnet/minecraft/text/Texts;bracketed(Lnet/minecraft/text/Text;)Lnet/minecraft/text/MutableText;intermediary method_10885Lnet/minecraft/class_2564;method_10885(Lnet/minecraft/class_2561;)Lnet/minecraft/class_5250;official aLxc;a(Lwz;)Lxn;
-
toText
- Mappings:
Namespace Name Mixin selector named toTextLnet/minecraft/text/Texts;toText(Lcom/mojang/brigadier/Message;)Lnet/minecraft/text/Text;intermediary method_10883Lnet/minecraft/class_2564;method_10883(Lcom/mojang/brigadier/Message;)Lnet/minecraft/class_2561;official aLxc;a(Lcom/mojang/brigadier/Message;)Lwz;
-
hasTranslation
- Mappings:
Namespace Name Mixin selector named hasTranslationLnet/minecraft/text/Texts;hasTranslation(Lnet/minecraft/text/Text;)Zintermediary method_43476Lnet/minecraft/class_2564;method_43476(Lnet/minecraft/class_2561;)Zofficial bLxc;b(Lwz;)Z
-
bracketedCopyable
- Mappings:
Namespace Name Mixin selector named bracketedCopyableLnet/minecraft/text/Texts;bracketedCopyable(Ljava/lang/String;)Lnet/minecraft/text/MutableText;intermediary method_47523Lnet/minecraft/class_2564;method_47523(Ljava/lang/String;)Lnet/minecraft/class_5250;official aLxc;a(Ljava/lang/String;)Lxn;
-