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