net.minecraft.network.chat

public class ComponentUtils

ot
net.minecraft.network.chat.ComponentUtils
net.minecraft.class_2564
net.minecraft.text.Texts
net.minecraft.src.C_4998_
net.minecraft.network.chat.ChatComponentUtils

Field summary

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

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static MutableComponent
a(oy arg0, pc arg1)
mergeStyles(MutableComponent arg0, Style arg1)
method_10889(class_5250 arg0, class_2583 arg1)
setStyleIfAbsent(MutableText text, Style style)
m_130750_(C_5012_ p_130751_, C_5020_ p_130752_)
public static Optional<MutableComponent>
a(dl arg0, Optional<os> arg1, atg 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)
m_178424_(C_2969_ p_178425_, Optional<C_4996_> p_178426_, C_507_ p_178427_, int p_178428_)
public static MutableComponent
a(dl arg0, os arg1, atg 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)
m_130731_(C_2969_ p_130732_, C_4996_ p_130733_, C_507_ p_130734_, int p_130735_)
filterForDisplay(CommandListenerWrapper arg0, IChatBaseComponent arg1, Entity arg2, int arg3)
private static Style
a(dl arg0, pc arg1, atg 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)
m_130736_(C_2969_ p_130737_, C_5020_ p_130738_, C_507_ p_130739_, int p_130740_)
public static Component
a(com.mojang.authlib.GameProfile arg0)
getDisplayName(com.mojang.authlib.GameProfile arg0)
method_10882(com.mojang.authlib.GameProfile arg0)
toText(com.mojang.authlib.GameProfile profile)
m_130727_(com.mojang.authlib.GameProfile p_130728_)
public static Component
a(Collection<String> arg0)
formatList(Collection<String> arg0)
method_10888(Collection<String> arg0)
joinOrdered(Collection<String> strings)
m_130743_(Collection<String> p_130744_)
public static <T extends Comparable<T>> Component
a(Collection<T> arg0, Function<T, os> 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)
m_130745_(Collection<T> p_130746_, Function<T, C_4996_> p_130747_)
public static <T> Component
b(Collection<? extends T> arg0, Function<T, os> 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)
m_178440_(Collection<? extends T> p_178441_, Function<T, C_4996_> p_178442_)
public static <T> MutableComponent
a(Collection<? extends T> arg0, Optional<? extends os> arg1, Function<T, os> 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)
m_178429_(Collection<? extends T> p_178430_, Optional<? extends C_4996_> p_178431_, Function<T, C_4996_> p_178432_)
public static Component
a(Collection<? extends os> arg0, os 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)
m_178433_(Collection<? extends C_4996_> p_178434_, C_4996_ p_178435_)
public static <T> MutableComponent
a(Collection<? extends T> arg0, os arg1, Function<T, os> 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)
m_178436_(Collection<? extends T> p_178437_, C_4996_ p_178438_, Function<T, C_4996_> p_178439_)
public static MutableComponent
a(os arg0)
wrapInSquareBrackets(Component arg0)
method_10885(class_2561 arg0)
bracketed(Text text)
m_130748_(C_4996_ p_130749_)
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)
m_130729_(com.mojang.brigadier.Message p_130730_)