Class TextCodecs

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

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

    • CODEC

      public static final com.mojang.serialization.Codec<Text> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Lvh;a:Lcom/mojang/serialization/Codec;
      intermediary field_46597 Lnet/minecraft/class_8824;field_46597:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/text/TextCodecs;CODEC:Lcom/mojang/serialization/Codec;
    • STRINGIFIED_CODEC

      public static final com.mojang.serialization.Codec<Text> STRINGIFIED_CODEC
      Mappings:
      Namespace Name Mixin selector
      official b Lvh;b:Lcom/mojang/serialization/Codec;
      intermediary field_46598 Lnet/minecraft/class_8824;field_46598:Lcom/mojang/serialization/Codec;
      named STRINGIFIED_CODEC Lnet/minecraft/text/TextCodecs;STRINGIFIED_CODEC:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • TextCodecs

      public TextCodecs()
  • Method Details

    • combine

      private static MutableText combine(List<Text> texts)
      Mappings:
      Namespace Name Mixin selector
      official a Lvh;a(Ljava/util/List;)Lvt;
      intermediary method_54169 Lnet/minecraft/class_8824;method_54169(Ljava/util/List;)Lnet/minecraft/class_5250;
      named combine Lnet/minecraft/text/TextCodecs;combine(Ljava/util/List;)Lnet/minecraft/text/MutableText;
    • 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
      official a Lvh;a([Lavk;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;
      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;
    • createCodec

      private static com.mojang.serialization.Codec<Text> createCodec(com.mojang.serialization.Codec<Text> selfCodec)
      Mappings:
      Namespace Name Mixin selector
      official a Lvh;a(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;
      named createCodec Lnet/minecraft/text/TextCodecs;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;