Package net.minecraft.text
Class Texts
java.lang.Object
net.minecraft.text.Texts
- Mappings:
Namespace Name official sy
intermediary net/minecraft/class_2564
named net/minecraft/text/Texts
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MutableText
static MutableText
bracketedCopyable
(String string) static boolean
hasTranslation
(@Nullable Text text) static Text
join
(Collection<? extends Text> texts, Text separator) static <T> Text
join
(Collection<? extends T> elements, Function<T, Text> transformer) static <T> MutableText
join
(Collection<? extends T> elements, Optional<? extends Text> separator, Function<T, Text> transformer) static <T> MutableText
join
(Collection<? extends T> elements, Text separator, Function<T, Text> transformer) static Text
joinOrdered
(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 MutableText
private static Style
parseStyle
(@Nullable ServerCommandSource source, Style style, @Nullable Entity sender, int depth) static MutableText
setStyleIfAbsent
(MutableText text, Style style) static Text
toText
(com.mojang.authlib.GameProfile profile) static Text
toText
(com.mojang.brigadier.Message message)
-
Field Details
-
DEFAULT_SEPARATOR
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lsy;a:Ljava/lang/String;
intermediary field_33536
Lnet/minecraft/class_2564;field_33536:Ljava/lang/String;
named DEFAULT_SEPARATOR
Lnet/minecraft/text/Texts;DEFAULT_SEPARATOR:Ljava/lang/String;
-
GRAY_DEFAULT_SEPARATOR_TEXT
- Mappings:
Namespace Name Mixin selector official b
Lsy;b:Lsw;
intermediary field_33537
Lnet/minecraft/class_2564;field_33537:Lnet/minecraft/class_2561;
named GRAY_DEFAULT_SEPARATOR_TEXT
Lnet/minecraft/text/Texts;GRAY_DEFAULT_SEPARATOR_TEXT:Lnet/minecraft/text/Text;
-
DEFAULT_SEPARATOR_TEXT
- Mappings:
Namespace Name Mixin selector official c
Lsy;c:Lsw;
intermediary field_33538
Lnet/minecraft/class_2564;field_33538:Lnet/minecraft/class_2561;
named DEFAULT_SEPARATOR_TEXT
Lnet/minecraft/text/Texts;DEFAULT_SEPARATOR_TEXT:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
Texts
public Texts()
-
-
Method Details
-
setStyleIfAbsent
- Mappings:
Namespace Name Mixin selector official a
Lsy;a(Ltj;Lts;)Ltj;
intermediary method_10889
Lnet/minecraft/class_2564;method_10889(Lnet/minecraft/class_5250;Lnet/minecraft/class_2583;)Lnet/minecraft/class_5250;
named setStyleIfAbsent
Lnet/minecraft/text/Texts;setStyleIfAbsent(Lnet/minecraft/text/MutableText;Lnet/minecraft/text/Style;)Lnet/minecraft/text/MutableText;
-
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 official a
Lsy;a(Lds;Ljava/util/Optional;Lbfj;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;
named parse
Lnet/minecraft/text/Texts;parse(Lnet/minecraft/server/command/ServerCommandSource;Ljava/util/Optional;Lnet/minecraft/entity/Entity;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 official a
Lsy;a(Lds;Lsw;Lbfj;I)Ltj;
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;
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;
-
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 official a
Lsy;a(Lds;Lts;Lbfj;I)Lts;
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;
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;
-
toText
- Mappings:
Namespace Name Mixin selector official a
Lsy;a(Lcom/mojang/authlib/GameProfile;)Lsw;
intermediary method_10882
Lnet/minecraft/class_2564;method_10882(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_2561;
named toText
Lnet/minecraft/text/Texts;toText(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/text/Text;
-
joinOrdered
- Mappings:
Namespace Name Mixin selector official a
Lsy;a(Ljava/util/Collection;)Lsw;
intermediary method_10888
Lnet/minecraft/class_2564;method_10888(Ljava/util/Collection;)Lnet/minecraft/class_2561;
named joinOrdered
Lnet/minecraft/text/Texts;joinOrdered(Ljava/util/Collection;)Lnet/minecraft/text/Text;
-
joinOrdered
public static <T extends Comparable<T>> Text joinOrdered(Collection<T> elements, Function<T, Text> transformer) - Mappings:
Namespace Name Mixin selector official a
Lsy;a(Ljava/util/Collection;Ljava/util/function/Function;)Lsw;
intermediary method_10887
Lnet/minecraft/class_2564;method_10887(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_2561;
named joinOrdered
Lnet/minecraft/text/Texts;joinOrdered(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/text/Text;
-
join
- Mappings:
Namespace Name Mixin selector official b
Lsy;b(Ljava/util/Collection;Ljava/util/function/Function;)Lsw;
intermediary method_10884
Lnet/minecraft/class_2564;method_10884(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/class_2561;
named join
Lnet/minecraft/text/Texts;join(Ljava/util/Collection;Ljava/util/function/Function;)Lnet/minecraft/text/Text;
-
join
public static <T> MutableText join(Collection<? extends T> elements, Optional<? extends Text> separator, Function<T, Text> transformer) - Mappings:
Namespace Name Mixin selector official a
Lsy;a(Ljava/util/Collection;Ljava/util/Optional;Ljava/util/function/Function;)Ltj;
intermediary method_36331
Lnet/minecraft/class_2564;method_36331(Ljava/util/Collection;Ljava/util/Optional;Ljava/util/function/Function;)Lnet/minecraft/class_5250;
named join
Lnet/minecraft/text/Texts;join(Ljava/util/Collection;Ljava/util/Optional;Ljava/util/function/Function;)Lnet/minecraft/text/MutableText;
-
join
- Mappings:
Namespace Name Mixin selector official a
Lsy;a(Ljava/util/Collection;Lsw;)Lsw;
intermediary method_37112
Lnet/minecraft/class_2564;method_37112(Ljava/util/Collection;Lnet/minecraft/class_2561;)Lnet/minecraft/class_2561;
named join
Lnet/minecraft/text/Texts;join(Ljava/util/Collection;Lnet/minecraft/text/Text;)Lnet/minecraft/text/Text;
-
join
public static <T> MutableText join(Collection<? extends T> elements, Text separator, Function<T, Text> transformer) - Mappings:
Namespace Name Mixin selector official a
Lsy;a(Ljava/util/Collection;Lsw;Ljava/util/function/Function;)Ltj;
intermediary method_36332
Lnet/minecraft/class_2564;method_36332(Ljava/util/Collection;Lnet/minecraft/class_2561;Ljava/util/function/Function;)Lnet/minecraft/class_5250;
named join
Lnet/minecraft/text/Texts;join(Ljava/util/Collection;Lnet/minecraft/text/Text;Ljava/util/function/Function;)Lnet/minecraft/text/MutableText;
-
bracketed
- Mappings:
Namespace Name Mixin selector official a
Lsy;a(Lsw;)Ltj;
intermediary method_10885
Lnet/minecraft/class_2564;method_10885(Lnet/minecraft/class_2561;)Lnet/minecraft/class_5250;
named bracketed
Lnet/minecraft/text/Texts;bracketed(Lnet/minecraft/text/Text;)Lnet/minecraft/text/MutableText;
-
toText
- Mappings:
Namespace Name Mixin selector official a
Lsy;a(Lcom/mojang/brigadier/Message;)Lsw;
intermediary method_10883
Lnet/minecraft/class_2564;method_10883(Lcom/mojang/brigadier/Message;)Lnet/minecraft/class_2561;
named toText
Lnet/minecraft/text/Texts;toText(Lcom/mojang/brigadier/Message;)Lnet/minecraft/text/Text;
-
hasTranslation
- Mappings:
Namespace Name Mixin selector official b
Lsy;b(Lsw;)Z
intermediary method_43476
Lnet/minecraft/class_2564;method_43476(Lnet/minecraft/class_2561;)Z
named hasTranslation
Lnet/minecraft/text/Texts;hasTranslation(Lnet/minecraft/text/Text;)Z
-
bracketedCopyable
- Mappings:
Namespace Name Mixin selector official a
Lsy;a(Ljava/lang/String;)Ltj;
intermediary method_47523
Lnet/minecraft/class_2564;method_47523(Ljava/lang/String;)Lnet/minecraft/class_5250;
named bracketedCopyable
Lnet/minecraft/text/Texts;bracketedCopyable(Ljava/lang/String;)Lnet/minecraft/text/MutableText;
-