Class TextCodecs

java.lang.Object
net.minecraft.text.TextCodecs

public class TextCodecs extends Object
Mappings:
Namespace Name
named net/minecraft/text/TextCodecs
intermediary net/minecraft/class_8824
official xa
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<Text> 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 Lxa;a:Lcom/mojang/serialization/Codec;
    • REGISTRY_PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,Text> 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 Lxa;b:Lyw;
    • OPTIONAL_PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,Optional<Text>> 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 Lxa;c:Lyw;
    • UNLIMITED_REGISTRY_PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,Text> 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 Lxa;d:Lyw;
    • 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 Lxa;e:Lyw;
    • PACKET_CODEC

      public static final PacketCodec<ByteBuf,Text> 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 Lxa;f:Lyw;
    • STRINGIFIED_CODEC

      public static final com.mojang.serialization.Codec<Text> 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 Lxa;g:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • TextCodecs

      public TextCodecs()
  • Method Details

    • codec

      public static com.mojang.serialization.Codec<Text> codec(int maxSerializedLength)
      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 Lxa;a(I)Lcom/mojang/serialization/Codec;
    • combine

      private static MutableText combine(List<Text> texts)
      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 Lxa;a(Ljava/util/List;)Lxm;
    • 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 Lxa;a([Lazj;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 Lxa;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;