Package net.minecraft.text
Class Texts
java.lang.Object
net.minecraft.text.Texts
public class Texts extends Object
-
Constructor Summary
Constructors Constructor Description Texts() -
Method Summary
Modifier and Type Method Description static MutableTextbracketed(Text text)static <T> MutableTextjoin(Collection<T> elements, Function<T,Text> transformer)static TextjoinOrdered(Collection<String> strings)static <T extends Comparable<T>>
TextjoinOrdered(Collection<T> elements, Function<T,Text> transformer)private static Stylemethod_27663(ServerCommandSource serverCommandSource, Style style, Entity entity, int int2)static MutableTextparse(ServerCommandSource source, Text text, Entity sender, int depth)static MutableTextsetStyleIfAbsent(MutableText text, Style style)static TexttoText(com.mojang.authlib.GameProfile profile)static TexttoText(com.mojang.brigadier.Message message)
-
Constructor Details
-
Texts
public Texts()
-
-
Method Details
-
setStyleIfAbsent
-
parse
public static MutableText parse(@Nullable ServerCommandSource source, Text text, @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
method_27663
private static Style method_27663(@Nullable ServerCommandSource serverCommandSource, Style style, @Nullable Entity entity, int int2) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
toText
-
joinOrdered
-
joinOrdered
public static <T extends Comparable<T>> Text joinOrdered(Collection<T> elements, Function<T,Text> transformer) -
join
-
bracketed
-
toText
-