net.minecraft.network.chat

public class ComponentUtils

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

Field summary

Modifier and TypeField
public static final String
a
DEFAULT_SEPARATOR_TEXT
field_33536
DEFAULT_SEPARATOR
public static final Component
b
DEFAULT_SEPARATOR
field_33537
GRAY_DEFAULT_SEPARATOR_TEXT
public static final Component
c
DEFAULT_NO_STYLE_SEPARATOR
field_33538
DEFAULT_SEPARATOR_TEXT

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static MutableComponent
a(yj arg0, ys arg1)
mergeStyles(MutableComponent arg0, Style arg1)
method_10889(class_5250 arg0, class_2583 arg1)
setStyleIfAbsent(MutableText text, Style style)
public static Optional<MutableComponent>
a(ew arg0, Optional<xv> arg1, bvk arg2, int arg3)
updateForEntity(CommandSourceStack arg0, Optional<Component> arg1, Entity arg2, int arg3)
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 MutableComponent
a(ew arg0, xv arg1, bvk arg2, int arg3)
updateForEntity(CommandSourceStack arg0, Component arg1, Entity arg2, int arg3)
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
a(ew arg0, ys arg1, bvk arg2, int arg3)
resolveStyle(CommandSourceStack arg0, Style arg1, Entity arg2, int arg3)
method_27663(class_2168 arg0, class_2583 arg1, class_1297 arg2, int arg3)
parseStyle(ServerCommandSource source, Style style, Entity sender, int depth)
public static Component
a(Collection<String> arg0)
formatList(Collection<String> arg0)
method_10888(Collection<String> arg0)
joinOrdered(Collection<String> strings)
public static <T extends Comparable<T>> Component
a(Collection<T> arg0, Function<T, xv> arg1)
formatAndSortList(Collection<T> arg0, Function<T, Component> arg1)
method_10887(Collection<T> arg0, Function<T, class_2561> arg1)
joinOrdered(Collection<T> elements, Function<T, Text> transformer)
public static <T> Component
b(Collection<? extends T> arg0, Function<T, xv> arg1)
formatList(Collection<? extends T> arg0, Function<T, Component> arg1)
method_10884(Collection<? extends T> arg0, Function<T, class_2561> arg1)
join(Collection<? extends T> elements, Function<T, Text> transformer)
public static <T> MutableComponent
a(Collection<? extends T> arg0, Optional<? extends xv> arg1, Function<T, xv> arg2)
formatList(Collection<? extends T> arg0, Optional<? extends Component> arg1, Function<T, Component> arg2)
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 Component
a(Collection<? extends xv> arg0, xv arg1)
formatList(Collection<? extends Component> arg0, Component arg1)
method_37112(Collection<? extends class_2561> arg0, class_2561 arg1)
join(Collection<? extends Text> texts, Text separator)
public static <T> MutableComponent
a(Collection<? extends T> arg0, xv arg1, Function<T, xv> arg2)
formatList(Collection<? extends T> arg0, Component arg1, Function<T, Component> arg2)
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 MutableComponent
a(xv arg0)
wrapInSquareBrackets(Component arg0)
method_10885(class_2561 arg0)
bracketed(Text text)
public static Component
a(com.mojang.brigadier.Message arg0)
fromMessage(com.mojang.brigadier.Message arg0)
method_10883(com.mojang.brigadier.Message arg0)
toText(com.mojang.brigadier.Message message)
public static boolean
b(xv arg0)
isTranslationResolvable(Component arg0)
method_43476(class_2561 arg0)
hasTranslation(Text text)
public static MutableComponent
a(String arg0)
copyOnClickText(String arg0)
method_47523(String arg0)
bracketedCopyable(String string)