public class TextComponentUtils
extends java.lang.Object
Constructor and Description |
---|
TextComponentUtils() |
Modifier and Type | Method and Description |
---|---|
static ITextComponent |
getDisplayName(com.mojang.authlib.GameProfile profile) |
static ITextComponent |
makeGreenSortedList(java.util.Collection<java.lang.String> collection) |
static <T> ITextComponent |
makeList(java.util.Collection<T> collection,
java.util.function.Function<T,ITextComponent> toTextComponent) |
static <T extends java.lang.Comparable<T>> |
makeSortedList(java.util.Collection<T> collection,
java.util.function.Function<T,ITextComponent> toTextComponent) |
static ITextComponent |
mergeStyles(ITextComponent component,
Style styleIn) |
static ITextComponent |
toTextComponent(com.mojang.brigadier.Message message) |
static ITextComponent |
updateForEntity(CommandSource p_197680_0_,
ITextComponent p_197680_1_,
Entity p_197680_2_,
int p_197680_3_) |
static ITextComponent |
wrapInSquareBrackets(ITextComponent component) |
public static ITextComponent mergeStyles(ITextComponent component, Style styleIn)
public static ITextComponent updateForEntity(@Nullable CommandSource p_197680_0_, ITextComponent p_197680_1_, @Nullable Entity p_197680_2_, int p_197680_3_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static ITextComponent getDisplayName(com.mojang.authlib.GameProfile profile)
public static ITextComponent makeGreenSortedList(java.util.Collection<java.lang.String> collection)
public static <T extends java.lang.Comparable<T>> ITextComponent makeSortedList(java.util.Collection<T> collection, java.util.function.Function<T,ITextComponent> toTextComponent)
public static <T> ITextComponent makeList(java.util.Collection<T> collection, java.util.function.Function<T,ITextComponent> toTextComponent)
public static ITextComponent wrapInSquareBrackets(ITextComponent component)
public static ITextComponent toTextComponent(com.mojang.brigadier.Message message)