net.minecraft.text

public class TextCodecs

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

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<Text>
CODEC
CODEC
field_46597
CODEC
public static final PacketCodec<RegistryByteBuf, Text>
STREAM_CODEC
STREAM_CODEC
field_48540
REGISTRY_PACKET_CODEC
public static final PacketCodec<RegistryByteBuf, Optional<Text>>
OPTIONAL_STREAM_CODEC
OPTIONAL_STREAM_CODEC
field_48985
OPTIONAL_PACKET_CODEC
public static final PacketCodec<RegistryByteBuf, Text>
TRUSTED_STREAM_CODEC
TRUSTED_STREAM_CODEC
field_49666
UNLIMITED_REGISTRY_PACKET_CODEC
public static final PacketCodec<RegistryByteBuf, Optional<Text>>
TRUSTED_OPTIONAL_STREAM_CODEC
TRUSTED_OPTIONAL_STREAM_CODEC
field_49667
OPTIONAL_UNLIMITED_REGISTRY_PACKET_CODEC
public static final PacketCodec<io.netty.buffer.ByteBuf, Text>
TRUSTED_CONTEXT_FREE_STREAM_CODEC
TRUSTED_CONTEXT_FREE_STREAM_CODEC
field_49668
PACKET_CODEC

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static com.mojang.serialization.Codec<Text>
flatRestrictedCodec(int maxFlatSize)
flatRestrictedCodec(int maxFlatSize)
method_66572(int arg0)
withJsonLengthLimit(int maxLength)
private static MutableText
createFromList(List<Component> list)
createFromList(List<Component> list)
method_54169(List<class_2561> arg0)
combine(List<Text> texts)
public static <T> com.mojang.serialization.MapCodec<T>
createLegacyComponentMatcher(ExtraCodecs$LateBoundIdMapper<String, com.mojang.serialization.MapCodec<? extends T>> types, Function<T, com.mojang.serialization.MapCodec<? extends T>> codecGetter, String typeFieldName)
createLegacyComponentMatcher(ExtraCodecs$LateBoundIdMapper<String, com.mojang.serialization.MapCodec<? extends T>> types, Function<T, com.mojang.serialization.MapCodec<? extends T>> codecGetter, String typeFieldName)
method_54174(class_5699$class_10388<String, com.mojang.serialization.MapCodec<? extends T>> arg0, Function<T, com.mojang.serialization.MapCodec<? extends T>> arg1, String arg2)
dispatchingCodec(Codecs$IdMapper<String, com.mojang.serialization.MapCodec<? extends T>> idMapper, Function<T, com.mojang.serialization.MapCodec<? extends T>> typeToCodec, String typeKey)
private static com.mojang.serialization.Codec<Text>
createCodec(com.mojang.serialization.Codec<Component> topSerializer)
createCodec(com.mojang.serialization.Codec<Component> topSerializer)
method_54166(com.mojang.serialization.Codec<class_2561> arg0)
createCodec(com.mojang.serialization.Codec<Text> selfCodec)
private static void
bootstrap(ExtraCodecs$LateBoundIdMapper<String, com.mojang.serialization.MapCodec<? extends ComponentContents>> contentTypes)
bootstrap(ExtraCodecs$LateBoundIdMapper<String, com.mojang.serialization.MapCodec<? extends ComponentContents>> contentTypes)
method_74064(class_5699$class_10388<String, com.mojang.serialization.MapCodec<? extends class_7417>> arg0)
registerTypes(Codecs$IdMapper<String, com.mojang.serialization.MapCodec<? extends TextContent>> idMapper)