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 official atw
intermediary net/minecraft/class_5699
named net/minecraft/util/dynamic/Codecs
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
private static class
private static final class
static final record
static final record
private static final record
Codecs.Xor<F,
S> An xor codec that only permits exactly one of the two data choices to be present. -
Field Summary
Modifier and TypeFieldDescriptionstatic 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<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<JsonElement>
static final com.mojang.serialization.Codec<Codecs.TagEntryId>
static final com.mojang.serialization.Codec<Vector3f>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.Codec<T>
alternatively
(com.mojang.serialization.Codec<T> a, com.mojang.serialization.Codec<? extends T> b) 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) 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>
createLazy
(Supplier<com.mojang.serialization.Codec<A>> supplier) static <T> com.mojang.serialization.Codec<T>
createRecursive
(String name, Function<com.mojang.serialization.Codec<T>, com.mojang.serialization.Codec<T>> codecFunction) static <A> com.mojang.serialization.MapCodec<Optional<A>>
createStrictOptionalFieldCodec
(com.mojang.serialization.Codec<A> codec, String field) static <A> com.mojang.serialization.MapCodec<A>
createStrictOptionalFieldCodec
(com.mojang.serialization.Codec<A> codec, String field, A fallback) static <F,
S> Codecs.Either<F, S> either
(com.mojang.serialization.Codec<F> first, com.mojang.serialization.Codec<S> second) static <T,
U> com.mojang.serialization.Codec<T> either
(com.mojang.serialization.Codec<T> serialized, com.mojang.serialization.Codec<U> alternative, Function<U, T> alternativeMapper) 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 <E> com.mojang.serialization.Codec<E>
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 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 com.mojang.serialization.Codec<String>
string
(int minLength, int maxLength) static <T> com.mojang.serialization.Codec<T>
validate
(com.mojang.serialization.Codec<T> codec, Function<T, com.mojang.serialization.DataResult<T>> validator) static <T> com.mojang.serialization.MapCodec<T>
validate
(com.mojang.serialization.MapCodec<T> codec, Function<T, com.mojang.serialization.DataResult<T>> validator) 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) static <F,
S> com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<F, S>> xor
(com.mojang.serialization.Codec<F> first, com.mojang.serialization.Codec<S> second) Returns an exclusive-or codec forCodecs.Either
instances.
-
Field Details
-
JSON_ELEMENT
- Mappings:
Namespace Name Mixin selector official a
Latw;a:Lcom/mojang/serialization/Codec;
intermediary field_40721
Lnet/minecraft/class_5699;field_40721:Lcom/mojang/serialization/Codec;
named JSON_ELEMENT
Lnet/minecraft/util/dynamic/Codecs;JSON_ELEMENT:Lcom/mojang/serialization/Codec;
-
BASIC_OBJECT
A passthrough codec for a basic object. SeeRuntimeOps
for types of objects this can "serialize".- See Also:
- Mappings:
Namespace Name Mixin selector official b
Latw;b:Lcom/mojang/serialization/Codec;
intermediary field_46236
Lnet/minecraft/class_5699;field_46236:Lcom/mojang/serialization/Codec;
named BASIC_OBJECT
Lnet/minecraft/util/dynamic/Codecs;BASIC_OBJECT:Lcom/mojang/serialization/Codec;
-
STRINGIFIED_TEXT
- Mappings:
Namespace Name Mixin selector official c
Latw;c:Lcom/mojang/serialization/Codec;
intermediary field_43173
Lnet/minecraft/class_5699;field_43173:Lcom/mojang/serialization/Codec;
named STRINGIFIED_TEXT
Lnet/minecraft/util/dynamic/Codecs;STRINGIFIED_TEXT:Lcom/mojang/serialization/Codec;
-
VECTOR_3F
- Mappings:
Namespace Name Mixin selector official d
Latw;d:Lcom/mojang/serialization/Codec;
intermediary field_40723
Lnet/minecraft/class_5699;field_40723:Lcom/mojang/serialization/Codec;
named VECTOR_3F
Lnet/minecraft/util/dynamic/Codecs;VECTOR_3F:Lcom/mojang/serialization/Codec;
-
QUATERNIONF
- Mappings:
Namespace Name Mixin selector official e
Latw;e:Lcom/mojang/serialization/Codec;
intermediary field_42265
Lnet/minecraft/class_5699;field_42265:Lcom/mojang/serialization/Codec;
named QUATERNIONF
Lnet/minecraft/util/dynamic/Codecs;QUATERNIONF:Lcom/mojang/serialization/Codec;
-
AXIS_ANGLE4F
- Mappings:
Namespace Name Mixin selector official f
Latw;f:Lcom/mojang/serialization/Codec;
intermediary field_42266
Lnet/minecraft/class_5699;field_42266:Lcom/mojang/serialization/Codec;
named AXIS_ANGLE4F
Lnet/minecraft/util/dynamic/Codecs;AXIS_ANGLE4F:Lcom/mojang/serialization/Codec;
-
ROTATION
- Mappings:
Namespace Name Mixin selector official g
Latw;g:Lcom/mojang/serialization/Codec;
intermediary field_42267
Lnet/minecraft/class_5699;field_42267:Lcom/mojang/serialization/Codec;
named ROTATION
Lnet/minecraft/util/dynamic/Codecs;ROTATION:Lcom/mojang/serialization/Codec;
-
MATRIX4F
- Mappings:
Namespace Name Mixin selector official h
Latw;h:Lcom/mojang/serialization/Codec;
intermediary field_42268
Lnet/minecraft/class_5699;field_42268:Lcom/mojang/serialization/Codec;
named MATRIX4F
Lnet/minecraft/util/dynamic/Codecs;MATRIX4F:Lcom/mojang/serialization/Codec;
-
NONNEGATIVE_INT
- Mappings:
Namespace Name Mixin selector official i
Latw;i:Lcom/mojang/serialization/Codec;
intermediary field_33441
Lnet/minecraft/class_5699;field_33441:Lcom/mojang/serialization/Codec;
named NONNEGATIVE_INT
Lnet/minecraft/util/dynamic/Codecs;NONNEGATIVE_INT:Lcom/mojang/serialization/Codec;
-
POSITIVE_INT
- Mappings:
Namespace Name Mixin selector official j
Latw;j:Lcom/mojang/serialization/Codec;
intermediary field_33442
Lnet/minecraft/class_5699;field_33442:Lcom/mojang/serialization/Codec;
named POSITIVE_INT
Lnet/minecraft/util/dynamic/Codecs;POSITIVE_INT:Lcom/mojang/serialization/Codec;
-
POSITIVE_FLOAT
- Mappings:
Namespace Name Mixin selector official k
Latw;k:Lcom/mojang/serialization/Codec;
intermediary field_34387
Lnet/minecraft/class_5699;field_34387:Lcom/mojang/serialization/Codec;
named POSITIVE_FLOAT
Lnet/minecraft/util/dynamic/Codecs;POSITIVE_FLOAT:Lcom/mojang/serialization/Codec;
-
REGULAR_EXPRESSION
- Mappings:
Namespace Name Mixin selector official l
Latw;l:Lcom/mojang/serialization/Codec;
intermediary field_37408
Lnet/minecraft/class_5699;field_37408:Lcom/mojang/serialization/Codec;
named REGULAR_EXPRESSION
Lnet/minecraft/util/dynamic/Codecs;REGULAR_EXPRESSION:Lcom/mojang/serialization/Codec;
-
INSTANT
- Mappings:
Namespace Name Mixin selector official m
Latw;m:Lcom/mojang/serialization/Codec;
intermediary field_39042
Lnet/minecraft/class_5699;field_39042:Lcom/mojang/serialization/Codec;
named INSTANT
Lnet/minecraft/util/dynamic/Codecs;INSTANT:Lcom/mojang/serialization/Codec;
-
BASE_64
public static final com.mojang.serialization.Codec<byte[]> BASE_64- Mappings:
Namespace Name Mixin selector official n
Latw;n:Lcom/mojang/serialization/Codec;
intermediary field_39273
Lnet/minecraft/class_5699;field_39273:Lcom/mojang/serialization/Codec;
named BASE_64
Lnet/minecraft/util/dynamic/Codecs;BASE_64:Lcom/mojang/serialization/Codec;
-
ESCAPED_STRING
- Mappings:
Namespace Name Mixin selector official o
Latw;o:Lcom/mojang/serialization/Codec;
intermediary field_46165
Lnet/minecraft/class_5699;field_46165:Lcom/mojang/serialization/Codec;
named ESCAPED_STRING
Lnet/minecraft/util/dynamic/Codecs;ESCAPED_STRING:Lcom/mojang/serialization/Codec;
-
TAG_ENTRY_ID
- Mappings:
Namespace Name Mixin selector official p
Latw;p:Lcom/mojang/serialization/Codec;
intermediary field_39274
Lnet/minecraft/class_5699;field_39274:Lcom/mojang/serialization/Codec;
named TAG_ENTRY_ID
Lnet/minecraft/util/dynamic/Codecs;TAG_ENTRY_ID:Lcom/mojang/serialization/Codec;
-
OPTIONAL_OF_LONG_TO_OPTIONAL_LONG
- Mappings:
Namespace Name Mixin selector official q
Latw;q:Ljava/util/function/Function;
intermediary field_39395
Lnet/minecraft/class_5699;field_39395:Ljava/util/function/Function;
named OPTIONAL_OF_LONG_TO_OPTIONAL_LONG
Lnet/minecraft/util/dynamic/Codecs;OPTIONAL_OF_LONG_TO_OPTIONAL_LONG:Ljava/util/function/Function;
-
OPTIONAL_LONG_TO_OPTIONAL_OF_LONG
- Mappings:
Namespace Name Mixin selector official r
Latw;r:Ljava/util/function/Function;
intermediary field_39396
Lnet/minecraft/class_5699;field_39396:Ljava/util/function/Function;
named OPTIONAL_LONG_TO_OPTIONAL_OF_LONG
Lnet/minecraft/util/dynamic/Codecs;OPTIONAL_LONG_TO_OPTIONAL_OF_LONG:Ljava/util/function/Function;
-
BIT_SET
- Mappings:
Namespace Name Mixin selector official s
Latw;s:Lcom/mojang/serialization/Codec;
intermediary field_40724
Lnet/minecraft/class_5699;field_40724:Lcom/mojang/serialization/Codec;
named BIT_SET
Lnet/minecraft/util/dynamic/Codecs;BIT_SET: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 official y
Latw;y:Lcom/mojang/serialization/Codec;
intermediary field_40727
Lnet/minecraft/class_5699;field_40727:Lcom/mojang/serialization/Codec;
named GAME_PROFILE_PROPERTY
Lnet/minecraft/util/dynamic/Codecs;GAME_PROFILE_PROPERTY: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 official t
Latw;t:Lcom/mojang/serialization/Codec;
intermediary field_40725
Lnet/minecraft/class_5699;field_40725:Lcom/mojang/serialization/Codec;
named GAME_PROFILE_PROPERTY_MAP
Lnet/minecraft/util/dynamic/Codecs;GAME_PROFILE_PROPERTY_MAP:Lcom/mojang/serialization/Codec;
-
GAME_PROFILE
private static final com.mojang.serialization.MapCodec<com.mojang.authlib.GameProfile> GAME_PROFILE- Mappings:
Namespace Name Mixin selector official z
Latw;z:Lcom/mojang/serialization/MapCodec;
intermediary field_45076
Lnet/minecraft/class_5699;field_45076:Lcom/mojang/serialization/MapCodec;
named GAME_PROFILE
Lnet/minecraft/util/dynamic/Codecs;GAME_PROFILE: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 official u
Latw;u:Lcom/mojang/serialization/Codec;
intermediary field_40726
Lnet/minecraft/class_5699;field_40726:Lcom/mojang/serialization/Codec;
named GAME_PROFILE_WITH_PROPERTIES
Lnet/minecraft/util/dynamic/Codecs;GAME_PROFILE_WITH_PROPERTIES:Lcom/mojang/serialization/Codec;
-
NON_EMPTY_STRING
- Mappings:
Namespace Name Mixin selector official v
Latw;v:Lcom/mojang/serialization/Codec;
intermediary field_41759
Lnet/minecraft/class_5699;field_41759:Lcom/mojang/serialization/Codec;
named NON_EMPTY_STRING
Lnet/minecraft/util/dynamic/Codecs;NON_EMPTY_STRING:Lcom/mojang/serialization/Codec;
-
CODEPOINT
- Mappings:
Namespace Name Mixin selector official w
Latw;w:Lcom/mojang/serialization/Codec;
intermediary field_44703
Lnet/minecraft/class_5699;field_44703:Lcom/mojang/serialization/Codec;
named CODEPOINT
Lnet/minecraft/util/dynamic/Codecs;CODEPOINT:Lcom/mojang/serialization/Codec;
-
IDENTIFIER_PATH
- Mappings:
Namespace Name Mixin selector official x
Latw;x:Lcom/mojang/serialization/Codec;
intermediary field_45075
Lnet/minecraft/class_5699;field_45075:Lcom/mojang/serialization/Codec;
named IDENTIFIER_PATH
Lnet/minecraft/util/dynamic/Codecs;IDENTIFIER_PATH: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 official a
Latw;a(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;
named fromOps
Lnet/minecraft/util/dynamic/Codecs;fromOps(Lcom/mojang/serialization/DynamicOps;)Lcom/mojang/serialization/Codec;
-
xor
public static <F,S> com.mojang.serialization.Codec<com.mojang.datafixers.util.Either<F,S>> xor(com.mojang.serialization.Codec<F> first, com.mojang.serialization.Codec<S> second) Returns an exclusive-or codec forCodecs.Either
instances.This returned codec fails if both the
first
andsecond
codecs can decode the input, while DFU'sEitherCodec
will always take the first decoded result when it is available.Otherwise, this behaves the same as the either codec.
- Type Parameters:
F
- the first typeS
- the second type- Parameters:
first
- the first codecsecond
- the second codec- Returns:
- the xor codec for the two codecs
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Latw;a(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_33817
Lnet/minecraft/class_5699;method_33817(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
named xor
Lnet/minecraft/util/dynamic/Codecs;xor(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)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 official a
Latw;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;
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;
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;
-
orElsePartial
public static <A> com.mojang.serialization.Codec.ResultFunction<A> orElsePartial(A object) - Mappings:
Namespace Name Mixin selector official a
Latw;a(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;
named orElsePartial
Lnet/minecraft/util/dynamic/Codecs;orElsePartial(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 official a
Latw;a(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;
named rawIdChecked
Lnet/minecraft/util/dynamic/Codecs;rawIdChecked(Ljava/util/function/ToIntFunction;Ljava/util/function/IntFunction;I)Lcom/mojang/serialization/Codec;
-
idChecked
public static <E> com.mojang.serialization.Codec<E> idChecked(Function<E, String> elementToId, Function<String, E> idToElement) - Mappings:
Namespace Name Mixin selector official a
Latw;a(Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
intermediary method_39508
Lnet/minecraft/class_5699;method_39508(Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
named idChecked
Lnet/minecraft/util/dynamic/Codecs;idChecked(Ljava/util/function/Function;Ljava/util/function/Function;)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 official b
Latw;b(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;
named orCompressed
Lnet/minecraft/util/dynamic/Codecs;orCompressed(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 official a
Latw;a(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;
named orCompressed
Lnet/minecraft/util/dynamic/Codecs;orCompressed(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 official a
Latw;a(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;
named withLifecycle
Lnet/minecraft/util/dynamic/Codecs;withLifecycle(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
-
either
public static <F,S> Codecs.Either<F,S> either(com.mojang.serialization.Codec<F> first, com.mojang.serialization.Codec<S> second) - Mappings:
Namespace Name Mixin selector official c
Latw;c(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Latw$b;
intermediary method_53702
Lnet/minecraft/class_5699;method_53702(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_5699$class_6495;
named either
Lnet/minecraft/util/dynamic/Codecs;either(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/util/dynamic/Codecs$Either;
-
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 official d
Latw;d(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Latw$e;
intermediary method_53703
Lnet/minecraft/class_5699;method_53703(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_5699$class_8783;
named strictUnboundedMap
Lnet/minecraft/util/dynamic/Codecs;strictUnboundedMap(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lnet/minecraft/util/dynamic/Codecs$StrictUnboundedMapCodec;
-
validate
public static <T> com.mojang.serialization.Codec<T> validate(com.mojang.serialization.Codec<T> codec, Function<T, com.mojang.serialization.DataResult<T>> validator) - Mappings:
Namespace Name Mixin selector official a
Latw;a(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
intermediary method_48112
Lnet/minecraft/class_5699;method_48112(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
named validate
Lnet/minecraft/util/dynamic/Codecs;validate(Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
-
validate
public static <T> com.mojang.serialization.MapCodec<T> validate(com.mojang.serialization.MapCodec<T> codec, Function<T, com.mojang.serialization.DataResult<T>> validator) - Mappings:
Namespace Name Mixin selector official a
Latw;a(Lcom/mojang/serialization/MapCodec;Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
intermediary method_51699
Lnet/minecraft/class_5699;method_51699(Lcom/mojang/serialization/MapCodec;Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
named validate
Lnet/minecraft/util/dynamic/Codecs;validate(Lcom/mojang/serialization/MapCodec;Ljava/util/function/Function;)Lcom/mojang/serialization/MapCodec;
-
rangedInt
private static com.mojang.serialization.Codec<Integer> rangedInt(int min, int max, Function<Integer, String> messageFactory) - Mappings:
Namespace Name Mixin selector official a
Latw;a(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;
named rangedInt
Lnet/minecraft/util/dynamic/Codecs;rangedInt(IILjava/util/function/Function;)Lcom/mojang/serialization/Codec;
-
rangedInt
- Mappings:
Namespace Name Mixin selector official a
Latw;a(II)Lcom/mojang/serialization/Codec;
intermediary method_48766
Lnet/minecraft/class_5699;method_48766(II)Lcom/mojang/serialization/Codec;
named rangedInt
Lnet/minecraft/util/dynamic/Codecs;rangedInt(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 official a
Latw;a(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;
named rangedFloat
Lnet/minecraft/util/dynamic/Codecs;rangedFloat(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 official a
Latw;a(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;
named nonEmptyList
Lnet/minecraft/util/dynamic/Codecs;nonEmptyList(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 official b
Latw;b(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;
named nonEmptyEntryList
Lnet/minecraft/util/dynamic/Codecs;nonEmptyEntryList(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
createRecursive
public static <T> com.mojang.serialization.Codec<T> createRecursive(String name, Function<com.mojang.serialization.Codec<T>, com.mojang.serialization.Codec<T>> codecFunction) - Mappings:
Namespace Name Mixin selector official a
Latw;a(Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
intermediary method_53052
Lnet/minecraft/class_5699;method_53052(Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
named createRecursive
Lnet/minecraft/util/dynamic/Codecs;createRecursive(Ljava/lang/String;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
-
createLazy
public static <A> com.mojang.serialization.Codec<A> createLazy(Supplier<com.mojang.serialization.Codec<A>> supplier) - Mappings:
Namespace Name Mixin selector official a
Latw;a(Ljava/util/function/Supplier;)Lcom/mojang/serialization/Codec;
intermediary method_39240
Lnet/minecraft/class_5699;method_39240(Ljava/util/function/Supplier;)Lcom/mojang/serialization/Codec;
named createLazy
Lnet/minecraft/util/dynamic/Codecs;createLazy(Ljava/util/function/Supplier;)Lcom/mojang/serialization/Codec;
-
createStrictOptionalFieldCodec
public static <A> com.mojang.serialization.MapCodec<Optional<A>> createStrictOptionalFieldCodec(com.mojang.serialization.Codec<A> codec, String field) - Mappings:
Namespace Name Mixin selector official a
Latw;a(Lcom/mojang/serialization/Codec;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
intermediary method_53048
Lnet/minecraft/class_5699;method_53048(Lcom/mojang/serialization/Codec;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
named createStrictOptionalFieldCodec
Lnet/minecraft/util/dynamic/Codecs;createStrictOptionalFieldCodec(Lcom/mojang/serialization/Codec;Ljava/lang/String;)Lcom/mojang/serialization/MapCodec;
-
createStrictOptionalFieldCodec
public static <A> com.mojang.serialization.MapCodec<A> createStrictOptionalFieldCodec(com.mojang.serialization.Codec<A> codec, String field, A fallback) - Mappings:
Namespace Name Mixin selector official a
Latw;a(Lcom/mojang/serialization/Codec;Ljava/lang/String;Ljava/lang/Object;)Lcom/mojang/serialization/MapCodec;
intermediary method_53049
Lnet/minecraft/class_5699;method_53049(Lcom/mojang/serialization/Codec;Ljava/lang/String;Ljava/lang/Object;)Lcom/mojang/serialization/MapCodec;
named createStrictOptionalFieldCodec
Lnet/minecraft/util/dynamic/Codecs;createStrictOptionalFieldCodec(Lcom/mojang/serialization/Codec;Ljava/lang/String;Ljava/lang/Object;)Lcom/mojang/serialization/MapCodec;
-
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 official a
Latw;a(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;
named createContextRetrievalCodec
Lnet/minecraft/util/dynamic/Codecs;createContextRetrievalCodec(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 official b
Latw;b(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;
named createEqualTypeChecker
Lnet/minecraft/util/dynamic/Codecs;createEqualTypeChecker(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 official c
Latw;c(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;
named exceptionCatching
Lnet/minecraft/util/dynamic/Codecs;exceptionCatching(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
formattedTime
public static com.mojang.serialization.Codec<TemporalAccessor> formattedTime(DateTimeFormatter formatter) - Mappings:
Namespace Name Mixin selector official a
Latw;a(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;
named formattedTime
Lnet/minecraft/util/dynamic/Codecs;formattedTime(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 official a
Latw;a(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;
named optionalLong
Lnet/minecraft/util/dynamic/Codecs;optionalLong(Lcom/mojang/serialization/MapCodec;)Lcom/mojang/serialization/MapCodec;
-
string
- Mappings:
Namespace Name Mixin selector official b
Latw;b(II)Lcom/mojang/serialization/Codec;
intermediary method_48109
Lnet/minecraft/class_5699;method_48109(II)Lcom/mojang/serialization/Codec;
named string
Lnet/minecraft/util/dynamic/Codecs;string(II)Lcom/mojang/serialization/Codec;
-
alternatively
public static <T> com.mojang.serialization.Codec<T> alternatively(com.mojang.serialization.Codec<T> a, com.mojang.serialization.Codec<? extends T> b) - Mappings:
Namespace Name Mixin selector official e
Latw;e(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
intermediary method_52465
Lnet/minecraft/class_5699;method_52465(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
named alternatively
Lnet/minecraft/util/dynamic/Codecs;alternatively(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/Codec;
-
either
public static <T,U> com.mojang.serialization.Codec<T> either(com.mojang.serialization.Codec<T> serialized, com.mojang.serialization.Codec<U> alternative, Function<U, T> alternativeMapper) - Mappings:
Namespace Name Mixin selector official a
Latw;a(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
intermediary method_52458
Lnet/minecraft/class_5699;method_52458(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)Lcom/mojang/serialization/Codec;
named either
Lnet/minecraft/util/dynamic/Codecs;either(Lcom/mojang/serialization/Codec;Lcom/mojang/serialization/Codec;Ljava/util/function/Function;)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 official d
Latw;d(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;
named object2BooleanMap
Lnet/minecraft/util/dynamic/Codecs;object2BooleanMap(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 official a
Latw;a(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;
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;
-