Package net.minecraft.util.dynamic
Class Codecs
java.lang.Object
net.minecraft.util.dynamic.Codecs
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 axw
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<Integer> static final com.mojang.serialization.Codec
<AxisAngle4f> static final com.mojang.serialization.Codec
<byte[]> static final com.mojang.serialization.Codec
<Object> A passthrough codec for a basic object.static final com.mojang.serialization.Codec
<BitSet> static final com.mojang.serialization.Codec
<Integer> static final com.mojang.serialization.Codec
<String> private static final com.mojang.serialization.MapCodec
<com.mojang.authlib.GameProfile> private static final com.mojang.serialization.Codec
<com.mojang.authlib.properties.Property> static final com.mojang.serialization.Codec
<com.mojang.authlib.properties.PropertyMap> static final com.mojang.serialization.Codec
<com.mojang.authlib.GameProfile> static com.mojang.serialization.Codec
<String> static final com.mojang.serialization.Codec
<Instant> static final com.mojang.serialization.Codec
<JsonElement> static com.mojang.serialization.Codec
<Matrix4f> static final com.mojang.serialization.Codec
<String> static final com.mojang.serialization.Codec
<Integer> static final Function
<OptionalLong, Optional<Long>> static final Function
<Optional<Long>, OptionalLong> static final com.mojang.serialization.Codec
<String> static final com.mojang.serialization.Codec
<Float> static final com.mojang.serialization.Codec
<Integer> static final com.mojang.serialization.Codec
<Quaternionf> static final com.mojang.serialization.Codec
<Pattern> static final com.mojang.serialization.Codec
<Quaternionf> static final com.mojang.serialization.Codec
<Codecs.TagEntryId> static final com.mojang.serialization.Codec
<Integer> static final com.mojang.serialization.Codec
<Vector3f> static final com.mojang.serialization.Codec
<Vector4f> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <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) static <E> com.mojang.serialization.MapCodec
<E> createContextRetrievalCodec
(Function<com.mojang.serialization.DynamicOps<?>, com.mojang.serialization.DataResult<E>> retriever) static <E,
L extends Collection<E>, T>
Function<L, com.mojang.serialization.DataResult<L>> createEqualTypeChecker
(Function<E, T> typeGetter) static <A> com.mojang.serialization.Codec
<A> exceptionCatching
(com.mojang.serialization.Codec<A> codec) static com.mojang.serialization.Codec
<TemporalAccessor> formattedTime
(DateTimeFormatter formatter) static <T> com.mojang.serialization.Codec
<T> fromOps
(com.mojang.serialization.DynamicOps<T> ops) static <K,
V> com.mojang.serialization.Codec <Map<K, V>> static <T> com.mojang.serialization.Codec
<RegistryEntryList<T>> nonEmptyEntryList
(com.mojang.serialization.Codec<RegistryEntryList<T>> originalCodec) static <T> com.mojang.serialization.Codec
<List<T>> nonEmptyList
(com.mojang.serialization.Codec<List<T>> originalCodec) static <T> com.mojang.serialization.Codec
<Object2BooleanMap<T>> object2BooleanMap
(com.mojang.serialization.Codec<T> keyCodec) static <A> com.mojang.serialization.Codec
<Optional<A>> optional
(com.mojang.serialization.Codec<A> codec) static com.mojang.serialization.MapCodec
<OptionalLong> optionalLong
(com.mojang.serialization.MapCodec<Optional<Long>> codec) static <E> com.mojang.serialization.Codec
<E> orCompressed
(com.mojang.serialization.Codec<E> uncompressedCodec, com.mojang.serialization.Codec<E> compressedCodec) static <E> com.mojang.serialization.MapCodec
<E> orCompressed
(com.mojang.serialization.MapCodec<E> uncompressedCodec, com.mojang.serialization.MapCodec<E> compressedCodec) static <A> com.mojang.serialization.Codec.ResultFunction
<A> orElsePartial
(A object) 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.private static com.mojang.serialization.Codec
<Float> rangedFloat
(float min, float max, Function<Float, String> messageFactory) static com.mojang.serialization.Codec
<Integer> rangedInt
(int min, int max) private static com.mojang.serialization.Codec
<Integer> static <E> com.mojang.serialization.Codec
<E> rawIdChecked
(ToIntFunction<E> elementToRawId, IntFunction<E> rawIdToElement, int errorRawId) static <K,
V> Codecs.StrictUnboundedMapCodec <K, V> strictUnboundedMap
(com.mojang.serialization.Codec<K> keyCodec, com.mojang.serialization.Codec<V> elementCodec) static <E> com.mojang.serialization.Codec
<E> withLifecycle
(com.mojang.serialization.Codec<E> originalCodec, Function<E, com.mojang.serialization.Lifecycle> lifecycleGetter) 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)
-
Field Details
-
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
Laxw;a:Lcom/mojang/serialization/Codec;
-
BASIC_OBJECT
A passthrough codec for a basic object. Seeinvalid reference
RuntimeOps
- See Also:
- 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
Laxw;b:Lcom/mojang/serialization/Codec;
-
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
Laxw;c:Lcom/mojang/serialization/Codec;
-
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
Laxw;d:Lcom/mojang/serialization/Codec;
-
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
Laxw;e:Lcom/mojang/serialization/Codec;
-
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
Laxw;f:Lcom/mojang/serialization/Codec;
-
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
Laxw;g:Lcom/mojang/serialization/Codec;
-
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
Laxw;h:Lcom/mojang/serialization/Codec;
-
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
Laxw;i:Lcom/mojang/serialization/Codec;
-
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
Laxw;j:Lcom/mojang/serialization/Codec;
-
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
Laxw;k:Lcom/mojang/serialization/Codec;
-
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
Laxw;l:Lcom/mojang/serialization/Codec;
-
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
Laxw;m:Lcom/mojang/serialization/Codec;
-
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
Laxw;n:Lcom/mojang/serialization/Codec;
-
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
Laxw;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
Laxw;p:Lcom/mojang/serialization/Codec;
-
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
Laxw;q:Lcom/mojang/serialization/Codec;
-
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
Laxw;r:Lcom/mojang/serialization/Codec;
-
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
Laxw;s:Ljava/util/function/Function;
-
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
Laxw;t:Ljava/util/function/Function;
-
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
Laxw;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
Laxw;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
Laxw;v:Lcom/mojang/serialization/Codec;
-
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
Laxw;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
Laxw;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
Laxw;x:Lcom/mojang/serialization/Codec;
-
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
Laxw;y:Lcom/mojang/serialization/Codec;
-
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
Laxw;z:Lcom/mojang/serialization/Codec;
-
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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;b(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Laxw$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
Laxw;a(IILjava/util/function/Function;)Lcom/mojang/serialization/Codec;
-
rangedInt
- 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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;a(Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
-
createEqualTypeChecker
public static <E,L extends Collection<E>, Function<L,T> 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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;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
Laxw;e(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-