Class Codecs

java.lang.Object
net.minecraft.util.dynamic.Codecs

public class Codecs extends Object
A few extensions for Codec or DynamicOps.

It has a few methods to create checkers for Codec.flatXmap to add extra value validation to encoding and decoding. See the implementation of nonEmptyList(Codec).

Mappings:
Namespace Name
named net/minecraft/util/dynamic/Codecs
intermediary net/minecraft/class_5699
official ayh
  • Field Details

    • JSON_ELEMENT

      public static final com.mojang.serialization.Codec<JsonElement> JSON_ELEMENT
      Mappings:
      Namespace Name Mixin selector
      named JSON_ELEMENT Lnet/minecraft/util/dynamic/Codecs;JSON_ELEMENT:Lcom/mojang/serialization/Codec;
      intermediary field_40721 Lnet/minecraft/class_5699;field_40721:Lcom/mojang/serialization/Codec;
      official a Layh;a:Lcom/mojang/serialization/Codec;
    • BASIC_OBJECT

      public static final com.mojang.serialization.Codec<Object> BASIC_OBJECT
      A passthrough codec for a basic object. See
      invalid reference
      RuntimeOps
      for types of objects this can "serialize".
      See Also:
      • invalid reference
        RuntimeOps
      Mappings:
      Namespace Name Mixin selector
      named BASIC_OBJECT Lnet/minecraft/util/dynamic/Codecs;BASIC_OBJECT:Lcom/mojang/serialization/Codec;
      intermediary field_46236 Lnet/minecraft/class_5699;field_46236:Lcom/mojang/serialization/Codec;
      official b Layh;b:Lcom/mojang/serialization/Codec;
    • VECTOR_3F

      public static final com.mojang.serialization.Codec<Vector3f> VECTOR_3F
      Mappings:
      Namespace Name Mixin selector
      named VECTOR_3F Lnet/minecraft/util/dynamic/Codecs;VECTOR_3F:Lcom/mojang/serialization/Codec;
      intermediary field_40723 Lnet/minecraft/class_5699;field_40723:Lcom/mojang/serialization/Codec;
      official c Layh;c:Lcom/mojang/serialization/Codec;
    • VECTOR_4F

      public static final com.mojang.serialization.Codec<Vector4f> VECTOR_4F
      Mappings:
      Namespace Name Mixin selector
      named VECTOR_4F Lnet/minecraft/util/dynamic/Codecs;VECTOR_4F:Lcom/mojang/serialization/Codec;
      intermediary field_51364 Lnet/minecraft/class_5699;field_51364:Lcom/mojang/serialization/Codec;
      official d Layh;d:Lcom/mojang/serialization/Codec;
    • QUATERNIONF

      public static final com.mojang.serialization.Codec<Quaternionf> QUATERNIONF
      Mappings:
      Namespace Name Mixin selector
      named QUATERNIONF Lnet/minecraft/util/dynamic/Codecs;QUATERNIONF:Lcom/mojang/serialization/Codec;
      intermediary field_42265 Lnet/minecraft/class_5699;field_42265:Lcom/mojang/serialization/Codec;
      official e Layh;e:Lcom/mojang/serialization/Codec;
    • AXIS_ANGLE4F

      public static final com.mojang.serialization.Codec<AxisAngle4f> AXIS_ANGLE4F
      Mappings:
      Namespace Name Mixin selector
      named AXIS_ANGLE4F Lnet/minecraft/util/dynamic/Codecs;AXIS_ANGLE4F:Lcom/mojang/serialization/Codec;
      intermediary field_42266 Lnet/minecraft/class_5699;field_42266:Lcom/mojang/serialization/Codec;
      official f Layh;f:Lcom/mojang/serialization/Codec;
    • ROTATION

      public static final com.mojang.serialization.Codec<Quaternionf> ROTATION
      Mappings:
      Namespace Name Mixin selector
      named ROTATION Lnet/minecraft/util/dynamic/Codecs;ROTATION:Lcom/mojang/serialization/Codec;
      intermediary field_42267 Lnet/minecraft/class_5699;field_42267:Lcom/mojang/serialization/Codec;
      official g Layh;g:Lcom/mojang/serialization/Codec;
    • MATRIX4F

      public static com.mojang.serialization.Codec<Matrix4f> MATRIX4F
      Mappings:
      Namespace Name Mixin selector
      named MATRIX4F Lnet/minecraft/util/dynamic/Codecs;MATRIX4F:Lcom/mojang/serialization/Codec;
      intermediary field_42268 Lnet/minecraft/class_5699;field_42268:Lcom/mojang/serialization/Codec;
      official h Layh;h:Lcom/mojang/serialization/Codec;
    • ARGB

      public static final com.mojang.serialization.Codec<Integer> ARGB
      Mappings:
      Namespace Name Mixin selector
      named ARGB Lnet/minecraft/util/dynamic/Codecs;ARGB:Lcom/mojang/serialization/Codec;
      intermediary field_51365 Lnet/minecraft/class_5699;field_51365:Lcom/mojang/serialization/Codec;
      official i Layh;i:Lcom/mojang/serialization/Codec;
    • UNSIGNED_BYTE

      public static final com.mojang.serialization.Codec<Integer> UNSIGNED_BYTE
      Mappings:
      Namespace Name Mixin selector
      named UNSIGNED_BYTE Lnet/minecraft/util/dynamic/Codecs;UNSIGNED_BYTE:Lcom/mojang/serialization/Codec;
      intermediary field_49012 Lnet/minecraft/class_5699;field_49012:Lcom/mojang/serialization/Codec;
      official j Layh;j:Lcom/mojang/serialization/Codec;
    • NONNEGATIVE_INT

      public static final com.mojang.serialization.Codec<Integer> NONNEGATIVE_INT
      Mappings:
      Namespace Name Mixin selector
      named NONNEGATIVE_INT Lnet/minecraft/util/dynamic/Codecs;NONNEGATIVE_INT:Lcom/mojang/serialization/Codec;
      intermediary field_33441 Lnet/minecraft/class_5699;field_33441:Lcom/mojang/serialization/Codec;
      official k Layh;k:Lcom/mojang/serialization/Codec;
    • POSITIVE_INT

      public static final com.mojang.serialization.Codec<Integer> POSITIVE_INT
      Mappings:
      Namespace Name Mixin selector
      named POSITIVE_INT Lnet/minecraft/util/dynamic/Codecs;POSITIVE_INT:Lcom/mojang/serialization/Codec;
      intermediary field_33442 Lnet/minecraft/class_5699;field_33442:Lcom/mojang/serialization/Codec;
      official l Layh;l:Lcom/mojang/serialization/Codec;
    • POSITIVE_FLOAT

      public static final com.mojang.serialization.Codec<Float> POSITIVE_FLOAT
      Mappings:
      Namespace Name Mixin selector
      named POSITIVE_FLOAT Lnet/minecraft/util/dynamic/Codecs;POSITIVE_FLOAT:Lcom/mojang/serialization/Codec;
      intermediary field_34387 Lnet/minecraft/class_5699;field_34387:Lcom/mojang/serialization/Codec;
      official m Layh;m:Lcom/mojang/serialization/Codec;
    • REGULAR_EXPRESSION

      public static final com.mojang.serialization.Codec<Pattern> REGULAR_EXPRESSION
      Mappings:
      Namespace Name Mixin selector
      named REGULAR_EXPRESSION Lnet/minecraft/util/dynamic/Codecs;REGULAR_EXPRESSION:Lcom/mojang/serialization/Codec;
      intermediary field_37408 Lnet/minecraft/class_5699;field_37408:Lcom/mojang/serialization/Codec;
      official n Layh;n:Lcom/mojang/serialization/Codec;
    • INSTANT

      public static final com.mojang.serialization.Codec<Instant> INSTANT
      Mappings:
      Namespace Name Mixin selector
      named INSTANT Lnet/minecraft/util/dynamic/Codecs;INSTANT:Lcom/mojang/serialization/Codec;
      intermediary field_39042 Lnet/minecraft/class_5699;field_39042:Lcom/mojang/serialization/Codec;
      official o Layh;o:Lcom/mojang/serialization/Codec;
    • BASE_64

      public static final com.mojang.serialization.Codec<byte[]> BASE_64
      Mappings:
      Namespace Name Mixin selector
      named BASE_64 Lnet/minecraft/util/dynamic/Codecs;BASE_64:Lcom/mojang/serialization/Codec;
      intermediary field_39273 Lnet/minecraft/class_5699;field_39273:Lcom/mojang/serialization/Codec;
      official p Layh;p:Lcom/mojang/serialization/Codec;
    • ESCAPED_STRING

      public static final com.mojang.serialization.Codec<String> ESCAPED_STRING
      Mappings:
      Namespace Name Mixin selector
      named ESCAPED_STRING Lnet/minecraft/util/dynamic/Codecs;ESCAPED_STRING:Lcom/mojang/serialization/Codec;
      intermediary field_46165 Lnet/minecraft/class_5699;field_46165:Lcom/mojang/serialization/Codec;
      official q Layh;q:Lcom/mojang/serialization/Codec;
    • TAG_ENTRY_ID

      public static final com.mojang.serialization.Codec<Codecs.TagEntryId> TAG_ENTRY_ID
      Mappings:
      Namespace Name Mixin selector
      named TAG_ENTRY_ID Lnet/minecraft/util/dynamic/Codecs;TAG_ENTRY_ID:Lcom/mojang/serialization/Codec;
      intermediary field_39274 Lnet/minecraft/class_5699;field_39274:Lcom/mojang/serialization/Codec;
      official r Layh;r:Lcom/mojang/serialization/Codec;
    • OPTIONAL_OF_LONG_TO_OPTIONAL_LONG

      public static final Function<Optional<Long>,OptionalLong> OPTIONAL_OF_LONG_TO_OPTIONAL_LONG
      Mappings:
      Namespace Name Mixin selector
      named OPTIONAL_OF_LONG_TO_OPTIONAL_LONG Lnet/minecraft/util/dynamic/Codecs;OPTIONAL_OF_LONG_TO_OPTIONAL_LONG:Ljava/util/function/Function;
      intermediary field_39395 Lnet/minecraft/class_5699;field_39395:Ljava/util/function/Function;
      official s Layh;s:Ljava/util/function/Function;
    • OPTIONAL_LONG_TO_OPTIONAL_OF_LONG

      public static final Function<OptionalLong,Optional<Long>> OPTIONAL_LONG_TO_OPTIONAL_OF_LONG
      Mappings:
      Namespace Name Mixin selector
      named OPTIONAL_LONG_TO_OPTIONAL_OF_LONG Lnet/minecraft/util/dynamic/Codecs;OPTIONAL_LONG_TO_OPTIONAL_OF_LONG:Ljava/util/function/Function;
      intermediary field_39396 Lnet/minecraft/class_5699;field_39396:Ljava/util/function/Function;
      official t Layh;t:Ljava/util/function/Function;
    • BIT_SET

      public static final com.mojang.serialization.Codec<BitSet> BIT_SET
      Mappings:
      Namespace Name Mixin selector
      named BIT_SET Lnet/minecraft/util/dynamic/Codecs;BIT_SET:Lcom/mojang/serialization/Codec;
      intermediary field_40724 Lnet/minecraft/class_5699;field_40724:Lcom/mojang/serialization/Codec;
      official u Layh;u:Lcom/mojang/serialization/Codec;
    • GAME_PROFILE_PROPERTY

      private static final com.mojang.serialization.Codec<com.mojang.authlib.properties.Property> GAME_PROFILE_PROPERTY
      Mappings:
      Namespace Name Mixin selector
      named GAME_PROFILE_PROPERTY Lnet/minecraft/util/dynamic/Codecs;GAME_PROFILE_PROPERTY:Lcom/mojang/serialization/Codec;
      intermediary field_40727 Lnet/minecraft/class_5699;field_40727:Lcom/mojang/serialization/Codec;
      official B Layh;B:Lcom/mojang/serialization/Codec;
    • GAME_PROFILE_PROPERTY_MAP

      public static final com.mojang.serialization.Codec<com.mojang.authlib.properties.PropertyMap> GAME_PROFILE_PROPERTY_MAP
      Mappings:
      Namespace Name Mixin selector
      named GAME_PROFILE_PROPERTY_MAP Lnet/minecraft/util/dynamic/Codecs;GAME_PROFILE_PROPERTY_MAP:Lcom/mojang/serialization/Codec;
      intermediary field_40725 Lnet/minecraft/class_5699;field_40725:Lcom/mojang/serialization/Codec;
      official v Layh;v:Lcom/mojang/serialization/Codec;
    • PLAYER_NAME

      public static final com.mojang.serialization.Codec<String> PLAYER_NAME
      Mappings:
      Namespace Name Mixin selector
      named PLAYER_NAME Lnet/minecraft/util/dynamic/Codecs;PLAYER_NAME:Lcom/mojang/serialization/Codec;
      intermediary field_49183 Lnet/minecraft/class_5699;field_49183:Lcom/mojang/serialization/Codec;
      official w Layh;w:Lcom/mojang/serialization/Codec;
    • GAME_PROFILE

      private static final com.mojang.serialization.MapCodec<com.mojang.authlib.GameProfile> GAME_PROFILE
      Mappings:
      Namespace Name Mixin selector
      named GAME_PROFILE Lnet/minecraft/util/dynamic/Codecs;GAME_PROFILE:Lcom/mojang/serialization/MapCodec;
      intermediary field_45076 Lnet/minecraft/class_5699;field_45076:Lcom/mojang/serialization/MapCodec;
      official C Layh;C:Lcom/mojang/serialization/MapCodec;
    • GAME_PROFILE_WITH_PROPERTIES

      public static final com.mojang.serialization.Codec<com.mojang.authlib.GameProfile> GAME_PROFILE_WITH_PROPERTIES
      Mappings:
      Namespace Name Mixin selector
      named GAME_PROFILE_WITH_PROPERTIES Lnet/minecraft/util/dynamic/Codecs;GAME_PROFILE_WITH_PROPERTIES:Lcom/mojang/serialization/Codec;
      intermediary field_40726 Lnet/minecraft/class_5699;field_40726:Lcom/mojang/serialization/Codec;
      official x Layh;x:Lcom/mojang/serialization/Codec;
    • NON_EMPTY_STRING

      public static final com.mojang.serialization.Codec<String> NON_EMPTY_STRING
      Mappings:
      Namespace Name Mixin selector
      named NON_EMPTY_STRING Lnet/minecraft/util/dynamic/Codecs;NON_EMPTY_STRING:Lcom/mojang/serialization/Codec;
      intermediary field_41759 Lnet/minecraft/class_5699;field_41759:Lcom/mojang/serialization/Codec;
      official y Layh;y:Lcom/mojang/serialization/Codec;
    • CODEPOINT

      public static final com.mojang.serialization.Codec<Integer> CODEPOINT
      Mappings:
      Namespace Name Mixin selector
      named CODEPOINT Lnet/minecraft/util/dynamic/Codecs;CODEPOINT:Lcom/mojang/serialization/Codec;
      intermediary field_44703 Lnet/minecraft/class_5699;field_44703:Lcom/mojang/serialization/Codec;
      official z Layh;z:Lcom/mojang/serialization/Codec;
    • IDENTIFIER_PATH

      public static com.mojang.serialization.Codec<String> IDENTIFIER_PATH
      Mappings:
      Namespace Name Mixin selector
      named IDENTIFIER_PATH Lnet/minecraft/util/dynamic/Codecs;IDENTIFIER_PATH:Lcom/mojang/serialization/Codec;
      intermediary field_45075 Lnet/minecraft/class_5699;field_45075:Lcom/mojang/serialization/Codec;
      official A Layh;A:Lcom/mojang/serialization/Codec;
  • Constructor Details

    • Codecs

      public Codecs()
  • Method Details

    • fromOps

      public static <T> com.mojang.serialization.Codec<T> fromOps(com.mojang.serialization.DynamicOps<T> ops)
      Mappings:
      Namespace Name Mixin selector
      named fromOps Lnet/minecraft/util/dynamic/Codecs;fromOps(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Codec;
      intermediary method_53918 Lnet/minecraft/class_5699;method_53918(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Codec;
      official a Layh;a(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Codec;
    • createCodecForPairObject

      public static <P, I> com.mojang.serialization.Codec<I> createCodecForPairObject(com.mojang.serialization.Codec<P> codec, String leftFieldName, String rightFieldName, BiFunction<P,P,com.mojang.serialization.DataResult<I>> combineFunction, Function<I,P> leftFunction, Function<I,P> rightFunction)
      Mappings:
      Namespace Name Mixin selector
      named createCodecForPairObject Lnet/minecraft/util/dynamic/Codecs;createCodecForPairObject(Lcom/mojang/serialization/Codec;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/BiFunction;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
      intermediary method_37931 Lnet/minecraft/class_5699;method_37931(Lcom/mojang/serialization/Codec;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/BiFunction;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
      official a Layh;a(Lcom/mojang/serialization/Codec;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/BiFunction;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
    • orElsePartial

      public static <A> com.mojang.serialization.Codec.ResultFunction<A> orElsePartial(A object)
      Mappings:
      Namespace Name Mixin selector
      named orElsePartial Lnet/minecraft/util/dynamic/Codecs;orElsePartial(Ljava/lang/Object;)Lcom/mojang/serialization/Codec$ResultFunction;
      intermediary method_39028 Lnet/minecraft/class_5699;method_39028(Ljava/lang/Object;)Lcom/mojang/serialization/Codec$ResultFunction;
      official a Layh;a(Ljava/lang/Object;)Lcom/mojang/serialization/Codec$ResultFunction;
    • rawIdChecked

      public static <E> com.mojang.serialization.Codec<E> rawIdChecked(ToIntFunction<E> elementToRawId, IntFunction<E> rawIdToElement, int errorRawId)
      Mappings:
      Namespace Name Mixin selector
      named rawIdChecked Lnet/minecraft/util/dynamic/Codecs;rawIdChecked(Ljava/util/function/ToIntFunction;Ljava/util/function/IntFunction;I)Lcom/mojang/serialization/Codec;
      intermediary method_39511 Lnet/minecraft/class_5699;method_39511(Ljava/util/function/ToIntFunction;Ljava/util/function/IntFunction;I)Lcom/mojang/serialization/Codec;
      official a Layh;a(Ljava/util/function/ToIntFunction;Ljava/util/function/IntFunction;I)Lcom/mojang/serialization/Codec;
    • orCompressed

      public static <E> com.mojang.serialization.Codec<E> orCompressed(com.mojang.serialization.Codec<E> uncompressedCodec, com.mojang.serialization.Codec<E> compressedCodec)
      Mappings:
      Namespace Name Mixin selector
      named orCompressed Lnet/minecraft/util/dynamic/Codecs;orCompressed(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_39512 Lnet/minecraft/class_5699;method_39512(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official a Layh;a(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • orCompressed

      public static <E> com.mojang.serialization.MapCodec<E> orCompressed(com.mojang.serialization.MapCodec<E> uncompressedCodec, com.mojang.serialization.MapCodec<E> compressedCodec)
      Mappings:
      Namespace Name Mixin selector
      named orCompressed Lnet/minecraft/util/dynamic/Codecs;orCompressed(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/MapCodec;
      intermediary method_53921 Lnet/minecraft/class_5699;method_53921(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/MapCodec;
      official a Layh;a(Lcom/mojang/serialization/MapCodec;Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/MapCodec;
    • withLifecycle

      public static <E> com.mojang.serialization.Codec<E> withLifecycle(com.mojang.serialization.Codec<E> originalCodec, Function<E,com.mojang.serialization.Lifecycle> entryLifecycleGetter, Function<E,com.mojang.serialization.Lifecycle> lifecycleGetter)
      Mappings:
      Namespace Name Mixin selector
      named withLifecycle Lnet/minecraft/util/dynamic/Codecs;withLifecycle(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
      intermediary method_39504 Lnet/minecraft/class_5699;method_39504(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
      official a Layh;a(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
    • withLifecycle

      public static <E> com.mojang.serialization.Codec<E> withLifecycle(com.mojang.serialization.Codec<E> originalCodec, Function<E,com.mojang.serialization.Lifecycle> lifecycleGetter)
      Mappings:
      Namespace Name Mixin selector
      named withLifecycle Lnet/minecraft/util/dynamic/Codecs;withLifecycle(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
      intermediary method_56942 Lnet/minecraft/class_5699;method_56942(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
      official a Layh;a(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
    • strictUnboundedMap

      public static <K, V> Codecs.StrictUnboundedMapCodec<K,V> strictUnboundedMap(com.mojang.serialization.Codec<K> keyCodec, com.mojang.serialization.Codec<V> elementCodec)
      Mappings:
      Namespace Name Mixin selector
      named strictUnboundedMap Lnet/minecraft/util/dynamic/Codecs;strictUnboundedMap(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/util/dynamic/Codecs$StrictUnboundedMapCodec;
      intermediary method_53703 Lnet/minecraft/class_5699;method_53703(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_5699$class_8783;
      official b Layh;b(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Layh$b;
    • rangedInt

      private static com.mojang.serialization.Codec<Integer> rangedInt(int min, int max, Function<Integer,String> messageFactory)
      Mappings:
      Namespace Name Mixin selector
      named rangedInt Lnet/minecraft/util/dynamic/Codecs;rangedInt(IILjava/util/function/Function;)Lcom/mojang/serialization/Codec;
      intermediary method_36241 Lnet/minecraft/class_5699;method_36241(IILjava/util/function/Function;)Lcom/mojang/serialization/Codec;
      official a Layh;a(IILjava/util/function/Function;)Lcom/mojang/serialization/Codec;
    • rangedInt

      public static com.mojang.serialization.Codec<Integer> rangedInt(int min, int max)
      Mappings:
      Namespace Name Mixin selector
      named rangedInt Lnet/minecraft/util/dynamic/Codecs;rangedInt(II)Lcom/mojang/serialization/Codec;
      intermediary method_48766 Lnet/minecraft/class_5699;method_48766(II)Lcom/mojang/serialization/Codec;
      official a Layh;a(II)Lcom/mojang/serialization/Codec;
    • rangedFloat

      private static com.mojang.serialization.Codec<Float> rangedFloat(float min, float max, Function<Float,String> messageFactory)
      Mappings:
      Namespace Name Mixin selector
      named rangedFloat Lnet/minecraft/util/dynamic/Codecs;rangedFloat(FFLjava/util/function/Function;)Lcom/mojang/serialization/Codec;
      intermediary method_37928 Lnet/minecraft/class_5699;method_37928(FFLjava/util/function/Function;)Lcom/mojang/serialization/Codec;
      official a Layh;a(FFLjava/util/function/Function;)Lcom/mojang/serialization/Codec;
    • nonEmptyList

      public static <T> com.mojang.serialization.Codec<List<T>> nonEmptyList(com.mojang.serialization.Codec<List<T>> originalCodec)
      Mappings:
      Namespace Name Mixin selector
      named nonEmptyList Lnet/minecraft/util/dynamic/Codecs;nonEmptyList(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_36973 Lnet/minecraft/class_5699;method_36973(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official a Layh;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • nonEmptyEntryList

      public static <T> com.mojang.serialization.Codec<RegistryEntryList<T>> nonEmptyEntryList(com.mojang.serialization.Codec<RegistryEntryList<T>> originalCodec)
      Mappings:
      Namespace Name Mixin selector
      named nonEmptyEntryList Lnet/minecraft/util/dynamic/Codecs;nonEmptyEntryList(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_40113 Lnet/minecraft/class_5699;method_40113(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official b Layh;b(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • createContextRetrievalCodec

      public static <E> com.mojang.serialization.MapCodec<E> createContextRetrievalCodec(Function<com.mojang.serialization.DynamicOps<?>,com.mojang.serialization.DataResult<E>> retriever)
      Mappings:
      Namespace Name Mixin selector
      named createContextRetrievalCodec Lnet/minecraft/util/dynamic/Codecs;createContextRetrievalCodec(Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
      intermediary method_40110 Lnet/minecraft/class_5699;method_40110(Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
      official a Layh;a(Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
    • createEqualTypeChecker

      public static <E, L extends Collection<E>, T> Function<L,com.mojang.serialization.DataResult<L>> createEqualTypeChecker(Function<E,T> typeGetter)
      Mappings:
      Namespace Name Mixin selector
      named createEqualTypeChecker Lnet/minecraft/util/dynamic/Codecs;createEqualTypeChecker(Ljava/util/function/Function;)Ljava/util/function/Function;
      intermediary method_40114 Lnet/minecraft/class_5699;method_40114(Ljava/util/function/Function;)Ljava/util/function/Function;
      official b Layh;b(Ljava/util/function/Function;)Ljava/util/function/Function;
    • exceptionCatching

      public static <A> com.mojang.serialization.Codec<A> exceptionCatching(com.mojang.serialization.Codec<A> codec)
      Mappings:
      Namespace Name Mixin selector
      named exceptionCatching Lnet/minecraft/util/dynamic/Codecs;exceptionCatching(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_42114 Lnet/minecraft/class_5699;method_42114(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official c Layh;c(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • formattedTime

      public static com.mojang.serialization.Codec<TemporalAccessor> formattedTime(DateTimeFormatter formatter)
      Mappings:
      Namespace Name Mixin selector
      named formattedTime Lnet/minecraft/util/dynamic/Codecs;formattedTime(Ljava/time/format/DateTimeFormatter;)Lcom/mojang/serialization/Codec;
      intermediary method_53700 Lnet/minecraft/class_5699;method_53700(Ljava/time/format/DateTimeFormatter;)Lcom/mojang/serialization/Codec;
      official a Layh;a(Ljava/time/format/DateTimeFormatter;)Lcom/mojang/serialization/Codec;
    • optionalLong

      public static com.mojang.serialization.MapCodec<OptionalLong> optionalLong(com.mojang.serialization.MapCodec<Optional<Long>> codec)
      Mappings:
      Namespace Name Mixin selector
      named optionalLong Lnet/minecraft/util/dynamic/Codecs;optionalLong(Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/MapCodec;
      intermediary method_44167 Lnet/minecraft/class_5699;method_44167(Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/MapCodec;
      official a Layh;a(Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/MapCodec;
    • map

      public static <K, V> com.mojang.serialization.Codec<Map<K,V>> map(com.mojang.serialization.Codec<Map<K,V>> codec, int maxLength)
      Mappings:
      Namespace Name Mixin selector
      named map Lnet/minecraft/util/dynamic/Codecs;map(Lcom/mojang/serialization/Codec;I)Lcom/mojang/serialization/Codec;
      intermediary method_57153 Lnet/minecraft/class_5699;method_57153(Lcom/mojang/serialization/Codec;I)Lcom/mojang/serialization/Codec;
      official a Layh;a(Lcom/mojang/serialization/Codec;I)Lcom/mojang/serialization/Codec;
    • object2BooleanMap

      public static <T> com.mojang.serialization.Codec<Object2BooleanMap<T>> object2BooleanMap(com.mojang.serialization.Codec<T> keyCodec)
      Mappings:
      Namespace Name Mixin selector
      named object2BooleanMap Lnet/minecraft/util/dynamic/Codecs;object2BooleanMap(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_53058 Lnet/minecraft/class_5699;method_53058(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official d Layh;d(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
    • parameters

      @Deprecated public static <K, V> com.mojang.serialization.MapCodec<V> parameters(String typeKey, String parametersKey, com.mojang.serialization.Codec<K> typeCodec, Function<? super V,? extends K> typeGetter, Function<? super K,? extends com.mojang.serialization.Codec<? extends V>> parametersCodecGetter)
      Deprecated.
      Mappings:
      Namespace Name Mixin selector
      named parameters Lnet/minecraft/util/dynamic/Codecs;parameters(Ljava/lang/String;Ljava/lang/String;Lcom/mojang/serialization/Codec;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
      intermediary method_54941 Lnet/minecraft/class_5699;method_54941(Ljava/lang/String;Ljava/lang/String;Lcom/mojang/serialization/Codec;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
      official a Layh;a(Ljava/lang/String;Ljava/lang/String;Lcom/mojang/serialization/Codec;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
    • optional

      public static <A> com.mojang.serialization.Codec<Optional<A>> optional(com.mojang.serialization.Codec<A> codec)
      Mappings:
      Namespace Name Mixin selector
      named optional Lnet/minecraft/util/dynamic/Codecs;optional(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      intermediary method_57155 Lnet/minecraft/class_5699;method_57155(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
      official e Layh;e(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;