Package net.minecraft.text
Class TextCodecs
java.lang.Object
net.minecraft.text.TextCodecs
- Mappings:
Namespace Name named net/minecraft/text/TextCodecs
intermediary net/minecraft/class_8824
official xx
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Text> static final PacketCodec
<RegistryByteBuf, Optional<Text>> static final PacketCodec
<RegistryByteBuf, Optional<Text>> static final PacketCodec
<ByteBuf, Text> static final PacketCodec
<RegistryByteBuf, Text> static final com.mojang.serialization.Codec
<Text> static final PacketCodec
<RegistryByteBuf, Text> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec
<Text> codec
(int maxSerializedLength) private static MutableText
private static com.mojang.serialization.Codec
<Text> createCodec
(com.mojang.serialization.Codec<Text> selfCodec) static <T extends StringIdentifiable,
E>
com.mojang.serialization.MapCodec<E> dispatchingCodec
(T[] types, Function<T, com.mojang.serialization.MapCodec<? extends E>> typeToCodec, Function<E, T> valueToType, String dispatchingKey)
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/text/TextCodecs;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_46597
Lnet/minecraft/class_8824;field_46597:Lcom/mojang/serialization/Codec;
official a
Lxx;a:Lcom/mojang/serialization/Codec;
-
REGISTRY_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named REGISTRY_PACKET_CODEC
Lnet/minecraft/text/TextCodecs;REGISTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48540
Lnet/minecraft/class_8824;field_48540:Lnet/minecraft/class_9139;
official b
Lxx;b:Lzt;
-
OPTIONAL_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named OPTIONAL_PACKET_CODEC
Lnet/minecraft/text/TextCodecs;OPTIONAL_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_48985
Lnet/minecraft/class_8824;field_48985:Lnet/minecraft/class_9139;
official c
Lxx;c:Lzt;
-
UNLIMITED_REGISTRY_PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named UNLIMITED_REGISTRY_PACKET_CODEC
Lnet/minecraft/text/TextCodecs;UNLIMITED_REGISTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49666
Lnet/minecraft/class_8824;field_49666:Lnet/minecraft/class_9139;
official d
Lxx;d:Lzt;
-
OPTIONAL_UNLIMITED_REGISTRY_PACKET_CODEC
public static final PacketCodec<RegistryByteBuf,Optional<Text>> OPTIONAL_UNLIMITED_REGISTRY_PACKET_CODEC- Mappings:
Namespace Name Mixin selector named OPTIONAL_UNLIMITED_REGISTRY_PACKET_CODEC
Lnet/minecraft/text/TextCodecs;OPTIONAL_UNLIMITED_REGISTRY_PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49667
Lnet/minecraft/class_8824;field_49667:Lnet/minecraft/class_9139;
official e
Lxx;e:Lzt;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/text/TextCodecs;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_49668
Lnet/minecraft/class_8824;field_49668:Lnet/minecraft/class_9139;
official f
Lxx;f:Lzt;
-
STRINGIFIED_CODEC
- Mappings:
Namespace Name Mixin selector named STRINGIFIED_CODEC
Lnet/minecraft/text/TextCodecs;STRINGIFIED_CODEC:Lcom/mojang/serialization/Codec;
intermediary field_46598
Lnet/minecraft/class_8824;field_46598:Lcom/mojang/serialization/Codec;
official g
Lxx;g:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
TextCodecs
public TextCodecs()
-
-
Method Details
-
codec
- Mappings:
Namespace Name Mixin selector named codec
Lnet/minecraft/text/TextCodecs;codec(I)Lcom/mojang/serialization/Codec;
intermediary method_57973
Lnet/minecraft/class_8824;method_57973(I)Lcom/mojang/serialization/Codec;
official a
Lxx;a(I)Lcom/mojang/serialization/Codec;
-
combine
- Mappings:
Namespace Name Mixin selector named combine
Lnet/minecraft/text/TextCodecs;combine(Ljava/util/List;)Lnet/minecraft/text/MutableText;
intermediary method_54169
Lnet/minecraft/class_8824;method_54169(Ljava/util/List;)Lnet/minecraft/class_5250;
official a
Lxx;a(Ljava/util/List;)Lyj;
-
dispatchingCodec
public static <T extends StringIdentifiable,E> com.mojang.serialization.MapCodec<E> dispatchingCodec(T[] types, Function<T, com.mojang.serialization.MapCodec<? extends E>> typeToCodec, Function<E, T> valueToType, String dispatchingKey) - Mappings:
Namespace Name Mixin selector named dispatchingCodec
Lnet/minecraft/text/TextCodecs;dispatchingCodec([Lnet/minecraft/util/StringIdentifiable;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
intermediary method_54174
Lnet/minecraft/class_8824;method_54174([Lnet/minecraft/class_3542;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
official a
Lxx;a([Lbba;Ljava/util/function/Function;Ljava/util/function/Function;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
-
createCodec
private static com.mojang.serialization.Codec<Text> createCodec(com.mojang.serialization.Codec<Text> selfCodec) - Mappings:
Namespace Name Mixin selector named createCodec
Lnet/minecraft/text/TextCodecs;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_54166
Lnet/minecraft/class_8824;method_54166(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
official a
Lxx;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-