public class Texts extends Object
Constructor and Description |
---|
Texts() |
Modifier and Type | Method and Description |
---|---|
static MutableText |
bracketed(Text text) |
static <T> MutableText |
join(Collection<T> elements,
Function<T,Text> transformer) |
static Text |
joinOrdered(Collection<String> strings) |
static <T extends Comparable<T>> |
joinOrdered(Collection<T> elements,
Function<T,Text> transformer) |
private static Style |
method_27663(ServerCommandSource serverCommandSource,
Style style,
Entity entity,
int int2) |
static MutableText |
parse(ServerCommandSource source,
Text text,
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) |
public static MutableText setStyleIfAbsent(MutableText text, Style style)
public static MutableText parse(@Nullable ServerCommandSource source, Text text, @Nullable Entity sender, int depth) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static Style method_27663(@Nullable ServerCommandSource serverCommandSource, Style style, @Nullable Entity entity, int int2) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static Text toText(com.mojang.authlib.GameProfile profile)
public static Text joinOrdered(Collection<String> strings)
public static <T extends Comparable<T>> Text joinOrdered(Collection<T> elements, Function<T,Text> transformer)
public static <T> MutableText join(Collection<T> elements, Function<T,Text> transformer)
public static MutableText bracketed(Text text)
public static Text toText(com.mojang.brigadier.Message message)