net.minecraft.network.chat

public class ComponentSerialization

xr
net.minecraft.network.chat.ComponentSerialization
net.minecraft.class_8824
net.minecraft.text.TextCodecs
net.minecraft.src.C_302096_
net.minecraft.network.chat.ComponentSerialization

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Component>
a
CODEC
field_46597
CODEC
f_303288_
public static final StreamCodec<RegistryFriendlyByteBuf, Component>
b
STREAM_CODEC
field_48540
REGISTRY_PACKET_CODEC
f_315335_
public static final StreamCodec<RegistryFriendlyByteBuf, Optional<Component>>
c
OPTIONAL_STREAM_CODEC
field_48985
OPTIONAL_PACKET_CODEC
f_315970_
public static final StreamCodec<RegistryFriendlyByteBuf, Component>
d
TRUSTED_STREAM_CODEC
field_49666
UNLIMITED_REGISTRY_PACKET_CODEC
f_316335_
public static final StreamCodec<RegistryFriendlyByteBuf, Optional<Component>>
e
TRUSTED_OPTIONAL_STREAM_CODEC
field_49667
OPTIONAL_UNLIMITED_REGISTRY_PACKET_CODEC
f_316844_
public static final StreamCodec<io.netty.buffer.ByteBuf, Component>
f
TRUSTED_CONTEXT_FREE_STREAM_CODEC
field_49668
PACKET_CODEC
f_314039_
public static final com.mojang.serialization.Codec<Component>
g
FLAT_CODEC
field_46598
STRINGIFIED_CODEC
f_303675_

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static com.mojang.serialization.Codec<Component>
a(int arg0)
flatCodec(int arg0)
method_57973(int arg0)
codec(int maxSerializedLength)
m_324597_(int p_330224_)
private static MutableComponent
a(List<xp> arg0)
createFromList(List<Component> arg0)
method_54169(List<class_2561> arg0)
combine(List<Text> texts)
m_304932_(List<C_4996_> p_312708_)
public static <T extends StringRepresentable, E> com.mojang.serialization.MapCodec<E>
a(T[] arg0, Function<T, com.mojang.serialization.MapCodec<? extends E>> arg1, Function<E, T> arg2, String arg3)
createLegacyComponentMatcher(T[] arg0, Function<T, com.mojang.serialization.MapCodec<? extends E>> arg1, Function<E, T> arg2, String arg3)
method_54174(T[] arg0, Function<T, com.mojang.serialization.MapCodec<? extends E>> arg1, Function<E, T> arg2, String arg3)
dispatchingCodec(T[] types, Function<T, com.mojang.serialization.MapCodec<? extends E>> typeToCodec, Function<E, T> valueToType, String dispatchingKey)
m_306757_(T[] p_312620_, Function<T, com.mojang.serialization.MapCodec<? extends E>> p_312447_, Function<E, T> p_309774_, String p_311665_)
private static com.mojang.serialization.Codec<Component>
a(com.mojang.serialization.Codec<xp> arg0)
createCodec(com.mojang.serialization.Codec<Component> arg0)
method_54166(com.mojang.serialization.Codec<class_2561> arg0)
createCodec(com.mojang.serialization.Codec<Text> selfCodec)
m_305392_(com.mojang.serialization.Codec<C_4996_> p_310353_)