net.minecraft.network.chat

public class ComponentSerialization

wr
net.minecraft.network.chat.ComponentSerialization
net.minecraft.class_8824
net.minecraft.text.TextCodecs
net.minecraft.network.chat.ComponentSerialization

Field summary

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

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)
private static MutableComponent
a(List<wp> arg0)
createFromList(List<Component> arg0)
method_54169(List<class_2561> arg0)
combine(List<Text> texts)
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)
private static com.mojang.serialization.Codec<Component>
a(com.mojang.serialization.Codec<wp> arg0)
createCodec(com.mojang.serialization.Codec<Component> arg0)
method_54166(com.mojang.serialization.Codec<class_2561> arg0)
createCodec(com.mojang.serialization.Codec<Text> selfCodec)