net.minecraft.text

public class Texts

net.minecraft.network.chat.ComponentUtils
net.minecraft.class_2564
net.minecraft.text.Texts

Field summary

Modifier and TypeField
public static final String
DEFAULT_SEPARATOR_TEXT
field_33536
DEFAULT_SEPARATOR
public static final Text
DEFAULT_SEPARATOR
field_33537
GRAY_DEFAULT_SEPARATOR_TEXT
public static final Text
DEFAULT_NO_STYLE_SEPARATOR
field_33538
DEFAULT_SEPARATOR_TEXT

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static MutableText
mergeStyles(MutableComponent component, Style style)
method_10889(class_5250 arg0, class_2583 arg1)
setStyleIfAbsent(MutableText text, Style style)
public static Text
mergeStyles(Component component, Style style)
method_75859(class_2561 arg0, class_2583 arg1)
withStyle(Text text, Style style)
public static Optional<MutableText>
updateForEntity(CommandSourceStack source, Optional<Component> component, Entity entity, int recursionDepth)
method_36330(class_2168 arg0, Optional<class_2561> arg1, class_1297 arg2, int arg3)
parse(ServerCommandSource source, Optional<Text> text, Entity sender, int depth)
public static MutableText
updateForEntity(CommandSourceStack source, Component component, Entity entity, int recursionDepth)
method_10881(class_2168 arg0, class_2561 arg1, class_1297 arg2, int arg3)
parse(ServerCommandSource source, Text text, Entity sender, int depth)
private static Style
resolveStyle(CommandSourceStack source, Style style, Entity entity, int recursionDepth)
method_27663(class_2168 arg0, class_2583 arg1, class_1297 arg2, int arg3)
parseStyle(ServerCommandSource source, Style style, Entity sender, int depth)
public static Text
formatList(Collection<String> values)
method_10888(Collection<String> arg0)
joinOrdered(Collection<String> strings)
public static <T extends Comparable<T>> Text
formatAndSortList(Collection<T> values, Function<T, Component> formatter)
method_10887(Collection<T> arg0, Function<T, class_2561> arg1)
joinOrdered(Collection<T> elements, Function<T, Text> transformer)
public static <T> Text
formatList(Collection<? extends T> values, Function<T, Component> formatter)
method_10884(Collection<? extends T> arg0, Function<T, class_2561> arg1)
join(Collection<? extends T> elements, Function<T, Text> transformer)
public static <T> MutableText
formatList(Collection<? extends T> values, Optional<? extends Component> separator, Function<T, Component> formatter)
method_36331(Collection<? extends T> arg0, Optional<? extends class_2561> arg1, Function<T, class_2561> arg2)
join(Collection<? extends T> elements, Optional<? extends Text> separator, Function<T, Text> transformer)
public static Text
formatList(Collection<? extends Component> values, Component separator)
method_37112(Collection<? extends class_2561> arg0, class_2561 arg1)
join(Collection<? extends Text> texts, Text separator)
public static <T> MutableText
formatList(Collection<? extends T> values, Component separator, Function<T, Component> formatter)
method_36332(Collection<? extends T> arg0, class_2561 arg1, Function<T, class_2561> arg2)
join(Collection<? extends T> elements, Text separator, Function<T, Text> transformer)
public static MutableText
wrapInSquareBrackets(Component inner)
method_10885(class_2561 arg0)
bracketed(Text text)
public static Text
fromMessage(com.mojang.brigadier.Message message)
method_10883(com.mojang.brigadier.Message arg0)
toText(com.mojang.brigadier.Message message)
public static boolean
isTranslationResolvable(Component component)
method_43476(class_2561 arg0)
hasTranslation(Text text)
public static MutableText
copyOnClickText(String text)
method_47523(String arg0)
bracketedCopyable(String string)
private static Style
lambda$copyOnClickText$1(String arg0, Style arg1)
method_47524(String arg0, class_2583 arg1)
method_47524(String arg0, Style style)
private static Text
lambda$formatList$0(String arg0)
method_10886(String arg0)
method_10886(String string)