net.minecraft.util

public class ExtraCodecs

ayi
net.minecraft.util.ExtraCodecs
net.minecraft.class_5699
net.minecraft.util.dynamic.Codecs
net.minecraft.util.ExtraCodecs

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<com.google.gson.JsonElement>
a
JSON
field_40721
JSON_ELEMENT
public static final com.mojang.serialization.Codec<Object>
b
JAVA
field_46236
BASIC_OBJECT
public static final com.mojang.serialization.Codec<org.joml.Vector3f>
c
VECTOR3F
field_40723
VECTOR_3F
public static final com.mojang.serialization.Codec<org.joml.Vector4f>
d
VECTOR4F
field_51364
VECTOR_4F
public static final com.mojang.serialization.Codec<org.joml.Quaternionf>
e
QUATERNIONF_COMPONENTS
field_42265
QUATERNION_F
public static final com.mojang.serialization.Codec<org.joml.AxisAngle4f>
f
AXISANGLE4F
field_42266
AXIS_ANGLE_4F
public static final com.mojang.serialization.Codec<org.joml.Quaternionf>
g
QUATERNIONF
field_42267
ROTATION
public static final com.mojang.serialization.Codec<org.joml.Matrix4f>
h
MATRIX4F
field_42268
MATRIX_4F
public static final com.mojang.serialization.Codec<Integer>
i
RGB_COLOR_CODEC
field_54067
RGB
public static final com.mojang.serialization.Codec<Integer>
j
ARGB_COLOR_CODEC
field_51365
ARGB
public static final com.mojang.serialization.Codec<Integer>
k
UNSIGNED_BYTE
field_49012
UNSIGNED_BYTE
public static final com.mojang.serialization.Codec<Integer>
l
NON_NEGATIVE_INT
field_33441
NON_NEGATIVE_INT
public static final com.mojang.serialization.Codec<Integer>
m
POSITIVE_INT
field_33442
POSITIVE_INT
public static final com.mojang.serialization.Codec<Float>
n
NON_NEGATIVE_FLOAT
field_53754
NON_NEGATIVE_FLOAT
public static final com.mojang.serialization.Codec<Float>
o
POSITIVE_FLOAT
field_34387
POSITIVE_FLOAT
public static final com.mojang.serialization.Codec<Pattern>
p
PATTERN
field_37408
REGULAR_EXPRESSION
public static final com.mojang.serialization.Codec<Instant>
q
INSTANT_ISO8601
field_39042
INSTANT
public static final com.mojang.serialization.Codec<byte[]>
r
BASE64_STRING
field_39273
BASE_64
public static final com.mojang.serialization.Codec<String>
s
ESCAPED_STRING
field_46165
ESCAPED_STRING
public static final com.mojang.serialization.Codec<ExtraCodecs$TagOrElementLocation>
t
TAG_OR_ELEMENT_ID
field_39274
TAG_ENTRY_ID
public static final Function<Optional<Long>, OptionalLong>
u
toOptionalLong
field_39395
OPTIONAL_OF_LONG_TO_OPTIONAL_LONG
public static final Function<OptionalLong, Optional<Long>>
v
fromOptionalLong
field_39396
OPTIONAL_LONG_TO_OPTIONAL_OF_LONG
public static final com.mojang.serialization.Codec<BitSet>
w
BIT_SET
field_40724
BIT_SET
private static final com.mojang.serialization.Codec<com.mojang.authlib.properties.Property>
D
PROPERTY
field_40727
GAME_PROFILE_PROPERTY
public static final com.mojang.serialization.Codec<com.mojang.authlib.properties.PropertyMap>
x
PROPERTY_MAP
field_40725
GAME_PROFILE_PROPERTY_MAP
public static final com.mojang.serialization.Codec<String>
y
PLAYER_NAME
field_49183
PLAYER_NAME
private static final com.mojang.serialization.MapCodec<com.mojang.authlib.GameProfile>
E
GAME_PROFILE_WITHOUT_PROPERTIES
field_45076
GAME_PROFILE
public static final com.mojang.serialization.Codec<com.mojang.authlib.GameProfile>
z
GAME_PROFILE
field_40726
GAME_PROFILE_WITH_PROPERTIES
public static final com.mojang.serialization.Codec<String>
A
NON_EMPTY_STRING
field_41759
NON_EMPTY_STRING
public static final com.mojang.serialization.Codec<Integer>
B
CODEPOINT
field_44703
CODEPOINT
public static final com.mojang.serialization.Codec<String>
C
RESOURCE_PATH_CODEC
field_45075
IDENTIFIER_PATH

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<T>
a(com.mojang.serialization.DynamicOps<T> arg0)
converter(com.mojang.serialization.DynamicOps<T> arg0)
method_53918(com.mojang.serialization.DynamicOps<T> arg0)
fromOps(com.mojang.serialization.DynamicOps<T> ops)
public static <P, I> com.mojang.serialization.Codec<I>
a(com.mojang.serialization.Codec<P> arg0, String arg1, String arg2, BiFunction<P, P, com.mojang.serialization.DataResult<I>> arg3, Function<I, P> arg4, Function<I, P> arg5)
intervalCodec(com.mojang.serialization.Codec<P> arg0, String arg1, String arg2, BiFunction<P, P, com.mojang.serialization.DataResult<I>> arg3, Function<I, P> arg4, Function<I, P> arg5)
method_37931(com.mojang.serialization.Codec<P> arg0, String arg1, String arg2, BiFunction<P, P, com.mojang.serialization.DataResult<I>> arg3, Function<I, P> arg4, Function<I, P> arg5)
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)
public static <A> com.mojang.serialization.Codec$ResultFunction<A>
a(A arg0)
orElsePartial(A arg0)
method_39028(A arg0)
orElsePartial(A object)
public static <E> com.mojang.serialization.Codec<E>
a(ToIntFunction<E> arg0, IntFunction<E> arg1, int arg2)
idResolverCodec(ToIntFunction<E> arg0, IntFunction<E> arg1, int arg2)
method_39511(ToIntFunction<E> arg0, IntFunction<E> arg1, int arg2)
rawIdChecked(ToIntFunction<E> elementToRawId, IntFunction<E> rawIdToElement, int errorRawId)
public static <I, E> com.mojang.serialization.Codec<E>
a(com.mojang.serialization.Codec<I> arg0, Function<I, E> arg1, Function<E, I> arg2)
idResolverCodec(com.mojang.serialization.Codec<I> arg0, Function<I, E> arg1, Function<E, I> arg2)
method_65314(com.mojang.serialization.Codec<I> arg0, Function<I, E> arg1, Function<E, I> arg2)
idChecked(com.mojang.serialization.Codec<I> idCodec, Function<I, E> idToElement, Function<E, I> elementToId)
public static <E> com.mojang.serialization.Codec<E>
a(com.mojang.serialization.Codec<E> arg0, com.mojang.serialization.Codec<E> arg1)
orCompressed(com.mojang.serialization.Codec<E> arg0, com.mojang.serialization.Codec<E> arg1)
method_39512(com.mojang.serialization.Codec<E> arg0, com.mojang.serialization.Codec<E> arg1)
orCompressed(com.mojang.serialization.Codec<E> uncompressedCodec, com.mojang.serialization.Codec<E> compressedCodec)
public static <E> com.mojang.serialization.MapCodec<E>
a(com.mojang.serialization.MapCodec<E> arg0, com.mojang.serialization.MapCodec<E> arg1)
orCompressed(com.mojang.serialization.MapCodec<E> arg0, com.mojang.serialization.MapCodec<E> arg1)
method_53921(com.mojang.serialization.MapCodec<E> arg0, com.mojang.serialization.MapCodec<E> arg1)
orCompressed(com.mojang.serialization.MapCodec<E> uncompressedCodec, com.mojang.serialization.MapCodec<E> compressedCodec)
public static <E> com.mojang.serialization.Codec<E>
b(com.mojang.serialization.Codec<E> arg0, Function<E, com.mojang.serialization.Lifecycle> arg1, Function<E, com.mojang.serialization.Lifecycle> arg2)
overrideLifecycle(com.mojang.serialization.Codec<E> arg0, Function<E, com.mojang.serialization.Lifecycle> arg1, Function<E, com.mojang.serialization.Lifecycle> arg2)
method_39504(com.mojang.serialization.Codec<E> arg0, Function<E, com.mojang.serialization.Lifecycle> arg1, Function<E, com.mojang.serialization.Lifecycle> arg2)
withLifecycle(com.mojang.serialization.Codec<E> originalCodec, Function<E, com.mojang.serialization.Lifecycle> entryLifecycleGetter, Function<E, com.mojang.serialization.Lifecycle> lifecycleGetter)
public static <E> com.mojang.serialization.Codec<E>
a(com.mojang.serialization.Codec<E> arg0, Function<E, com.mojang.serialization.Lifecycle> arg1)
overrideLifecycle(com.mojang.serialization.Codec<E> arg0, Function<E, com.mojang.serialization.Lifecycle> arg1)
method_56942(com.mojang.serialization.Codec<E> arg0, Function<E, com.mojang.serialization.Lifecycle> arg1)
withLifecycle(com.mojang.serialization.Codec<E> originalCodec, Function<E, com.mojang.serialization.Lifecycle> lifecycleGetter)
public static <K, V> ExtraCodecs$StrictUnboundedMapCodec<K, V>
b(com.mojang.serialization.Codec<K> arg0, com.mojang.serialization.Codec<V> arg1)
strictUnboundedMap(com.mojang.serialization.Codec<K> arg0, com.mojang.serialization.Codec<V> arg1)
method_53703(com.mojang.serialization.Codec<K> arg0, com.mojang.serialization.Codec<V> arg1)
strictUnboundedMap(com.mojang.serialization.Codec<K> keyCodec, com.mojang.serialization.Codec<V> elementCodec)
public static <E> com.mojang.serialization.Codec<List<E>>
a(com.mojang.serialization.Codec<E> arg0)
compactListCodec(com.mojang.serialization.Codec<E> arg0)
method_65313(com.mojang.serialization.Codec<E> arg0)
listOrSingle(com.mojang.serialization.Codec<E> entryCodec)
public static <E> com.mojang.serialization.Codec<List<E>>
c(com.mojang.serialization.Codec<E> arg0, com.mojang.serialization.Codec<List<E>> arg1)
compactListCodec(com.mojang.serialization.Codec<E> arg0, com.mojang.serialization.Codec<List<E>> arg1)
method_65320(com.mojang.serialization.Codec<E> arg0, com.mojang.serialization.Codec<List<E>> arg1)
listOrSingle(com.mojang.serialization.Codec<E> entryCodec, com.mojang.serialization.Codec<List<E>> listCodec)
private static com.mojang.serialization.Codec<Integer>
a(int arg0, int arg1, Function<Integer, String> arg2)
intRangeWithMessage(int arg0, int arg1, Function<Integer, String> arg2)
method_36241(int arg0, int arg1, Function<Integer, String> arg2)
rangedInt(int min, int max, Function<Integer, String> messageFactory)
public static com.mojang.serialization.Codec<Integer>
a(int arg0, int arg1)
intRange(int arg0, int arg1)
method_48766(int arg0, int arg1)
rangedInt(int min, int max)
private static com.mojang.serialization.Codec<Float>
a(float arg0, float arg1, Function<Float, String> arg2)
floatRangeMinInclusiveWithMessage(float arg0, float arg1, Function<Float, String> arg2)
method_62812(float arg0, float arg1, Function<Float, String> arg2)
rangedInclusiveFloat(float minInclusive, float maxInclusive, Function<Float, String> messageFactory)
private static com.mojang.serialization.Codec<Float>
b(float arg0, float arg1, Function<Float, String> arg2)
floatRangeMinExclusiveWithMessage(float arg0, float arg1, Function<Float, String> arg2)
method_37928(float arg0, float arg1, Function<Float, String> arg2)
rangedFloat(float minExclusive, float maxInclusive, Function<Float, String> messageFactory)
public static com.mojang.serialization.Codec<Float>
a(float arg0, float arg1)
floatRange(float arg0, float arg1)
method_65311(float arg0, float arg1)
rangedInclusiveFloat(float minInclusive, float maxInclusive)
public static <T> com.mojang.serialization.Codec<List<T>>
b(com.mojang.serialization.Codec<List<T>> arg0)
nonEmptyList(com.mojang.serialization.Codec<List<T>> arg0)
method_36973(com.mojang.serialization.Codec<List<T>> arg0)
nonEmptyList(com.mojang.serialization.Codec<List<T>> originalCodec)
public static <T> com.mojang.serialization.Codec<HolderSet<T>>
c(com.mojang.serialization.Codec<jv<T>> arg0)
nonEmptyHolderSet(com.mojang.serialization.Codec<HolderSet<T>> arg0)
method_40113(com.mojang.serialization.Codec<class_6885<T>> arg0)
nonEmptyEntryList(com.mojang.serialization.Codec<RegistryEntryList<T>> originalCodec)
public static <M extends Map<?, ?>> com.mojang.serialization.Codec<M>
d(com.mojang.serialization.Codec<M> arg0)
nonEmptyMap(com.mojang.serialization.Codec<M> arg0)
method_63572(com.mojang.serialization.Codec<M> arg0)
nonEmptyMap(com.mojang.serialization.Codec<M> originalCodec)
public static <E> com.mojang.serialization.MapCodec<E>
a(Function<com.mojang.serialization.DynamicOps<?>, com.mojang.serialization.DataResult<E>> arg0)
retrieveContext(Function<com.mojang.serialization.DynamicOps<?>, com.mojang.serialization.DataResult<E>> arg0)
method_40110(Function<com.mojang.serialization.DynamicOps<?>, com.mojang.serialization.DataResult<E>> arg0)
createContextRetrievalCodec(Function<com.mojang.serialization.DynamicOps<?>, com.mojang.serialization.DataResult<E>> retriever)
public static <E, L extends Collection<E>, T> Function<L, com.mojang.serialization.DataResult<L>>
b(Function<E, T> arg0)
ensureHomogenous(Function<E, T> arg0)
method_40114(Function<E, T> arg0)
createEqualTypeChecker(Function<E, T> typeGetter)
public static <A> com.mojang.serialization.Codec<A>
e(com.mojang.serialization.Codec<A> arg0)
catchDecoderException(com.mojang.serialization.Codec<A> arg0)
method_42114(com.mojang.serialization.Codec<A> arg0)
exceptionCatching(com.mojang.serialization.Codec<A> codec)
public static com.mojang.serialization.Codec<TemporalAccessor>
a(DateTimeFormatter arg0)
temporalCodec(DateTimeFormatter arg0)
method_53700(DateTimeFormatter arg0)
formattedTime(DateTimeFormatter formatter)
public static com.mojang.serialization.MapCodec<OptionalLong>
a(com.mojang.serialization.MapCodec<Optional<Long>> arg0)
asOptionalLong(com.mojang.serialization.MapCodec<Optional<Long>> arg0)
method_44167(com.mojang.serialization.MapCodec<Optional<Long>> arg0)
optionalLong(com.mojang.serialization.MapCodec<Optional<Long>> codec)
public static <K, V> com.mojang.serialization.Codec<Map<K, V>>
a(com.mojang.serialization.Codec<Map<K, V>> arg0, int arg1)
sizeLimitedMap(com.mojang.serialization.Codec<Map<K, V>> arg0, int arg1)
method_57153(com.mojang.serialization.Codec<Map<K, V>> arg0, int arg1)
map(com.mojang.serialization.Codec<Map<K, V>> codec, int maxLength)
public static <T> com.mojang.serialization.Codec<it.unimi.dsi.fastutil.objects.Object2BooleanMap<T>>
f(com.mojang.serialization.Codec<T> arg0)
object2BooleanMap(com.mojang.serialization.Codec<T> arg0)
method_53058(com.mojang.serialization.Codec<T> arg0)
object2BooleanMap(com.mojang.serialization.Codec<T> keyCodec)
public static <K, V> com.mojang.serialization.MapCodec<V>
a(String arg0, String arg1, com.mojang.serialization.Codec<K> arg2, Function<? super V, ? extends K> arg3, Function<? super K, ? extends com.mojang.serialization.Codec<? extends V>> arg4)
dispatchOptionalValue(String arg0, String arg1, com.mojang.serialization.Codec<K> arg2, Function<? super V, ? extends K> arg3, Function<? super K, ? extends com.mojang.serialization.Codec<? extends V>> arg4)
method_54941(String arg0, String arg1, com.mojang.serialization.Codec<K> arg2, Function<? super V, ? extends K> arg3, Function<? super K, ? extends com.mojang.serialization.Codec<? extends V>> arg4)
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)
public static <A> com.mojang.serialization.Codec<Optional<A>>
g(com.mojang.serialization.Codec<A> arg0)
optionalEmptyMap(com.mojang.serialization.Codec<A> arg0)
method_57155(com.mojang.serialization.Codec<A> arg0)
optional(com.mojang.serialization.Codec<A> codec)