net.minecraft.util

public class ExtraCodecs

ayh
net.minecraft.util.ExtraCodecs
net.minecraft.class_5699
net.minecraft.util.dynamic.Codecs
net.minecraft.src.C_140989_
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
f_252400_
public static final com.mojang.serialization.Codec<Object>
b
JAVA
field_46236
BASIC_OBJECT
f_302296_
public static final com.mojang.serialization.Codec<org.joml.Vector3f>
c
VECTOR3F
field_40723
VECTOR_3F
f_252432_
public static final com.mojang.serialization.Codec<org.joml.Vector4f>
d
VECTOR4F
field_51364
VECTOR_4F
f_314547_
public static final com.mojang.serialization.Codec<org.joml.Quaternionf>
e
QUATERNIONF_COMPONENTS
field_42265
QUATERNIONF
f_268572_
public static final com.mojang.serialization.Codec<org.joml.AxisAngle4f>
f
AXISANGLE4F
field_42266
AXIS_ANGLE4F
f_268751_
public static final com.mojang.serialization.Codec<org.joml.Quaternionf>
g
QUATERNIONF
field_42267
ROTATION
f_268538_
public static com.mojang.serialization.Codec<org.joml.Matrix4f>
h
MATRIX4F
field_42268
MATRIX4F
f_268748_
public static final com.mojang.serialization.Codec<Integer>
i
ARGB_COLOR_CODEC
field_51365
ARGB
f_315502_
public static final com.mojang.serialization.Codec<Integer>
j
UNSIGNED_BYTE
field_49012
UNSIGNED_BYTE
f_316863_
public static final com.mojang.serialization.Codec<Integer>
k
NON_NEGATIVE_INT
field_33441
NONNEGATIVE_INT
f_144628_
public static final com.mojang.serialization.Codec<Integer>
l
POSITIVE_INT
field_33442
POSITIVE_INT
f_144629_
public static final com.mojang.serialization.Codec<Float>
m
POSITIVE_FLOAT
field_34387
POSITIVE_FLOAT
f_184349_
public static final com.mojang.serialization.Codec<Pattern>
n
PATTERN
field_37408
REGULAR_EXPRESSION
f_216158_
public static final com.mojang.serialization.Codec<Instant>
o
INSTANT_ISO8601
field_39042
INSTANT
f_216159_
public static final com.mojang.serialization.Codec<byte[]>
p
BASE64_STRING
field_39273
BASE_64
f_216160_
public static final com.mojang.serialization.Codec<String>
q
ESCAPED_STRING
field_46165
ESCAPED_STRING
f_291683_
public static final com.mojang.serialization.Codec<ExtraCodecs$TagOrElementLocation>
r
TAG_OR_ELEMENT_ID
field_39274
TAG_ENTRY_ID
f_216161_
public static final Function<Optional<Long>, OptionalLong>
s
toOptionalLong
field_39395
OPTIONAL_OF_LONG_TO_OPTIONAL_LONG
f_216162_
public static final Function<OptionalLong, Optional<Long>>
t
fromOptionalLong
field_39396
OPTIONAL_LONG_TO_OPTIONAL_OF_LONG
f_216163_
public static final com.mojang.serialization.Codec<BitSet>
u
BIT_SET
field_40724
BIT_SET
f_252419_
private static final com.mojang.serialization.Codec<com.mojang.authlib.properties.Property>
B
PROPERTY
field_40727
GAME_PROFILE_PROPERTY
f_252501_
public static final com.mojang.serialization.Codec<com.mojang.authlib.properties.PropertyMap>
v
PROPERTY_MAP
field_40725
GAME_PROFILE_PROPERTY_MAP
f_252500_
public static final com.mojang.serialization.Codec<String>
w
PLAYER_NAME
field_49183
PLAYER_NAME
f_316749_
private static final com.mojang.serialization.MapCodec<com.mojang.authlib.GameProfile>
C
GAME_PROFILE_WITHOUT_PROPERTIES
field_45076
GAME_PROFILE
f_291490_
public static final com.mojang.serialization.Codec<com.mojang.authlib.GameProfile>
x
GAME_PROFILE
field_40726
GAME_PROFILE_WITH_PROPERTIES
f_252453_
public static final com.mojang.serialization.Codec<String>
y
NON_EMPTY_STRING
field_41759
NON_EMPTY_STRING
f_263723_
public static final com.mojang.serialization.Codec<Integer>
z
CODEPOINT
field_44703
CODEPOINT
f_283896_
public static com.mojang.serialization.Codec<String>
A
RESOURCE_PATH_CODEC
field_45075
IDENTIFIER_PATH
f_291300_

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)
m_306780_(com.mojang.serialization.DynamicOps<T> p_310943_)
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)
m_184361_(com.mojang.serialization.Codec<P> p_184362_, String p_184363_, String p_184364_, BiFunction<P, P, com.mojang.serialization.DataResult<I>> p_184365_, Function<I, P> p_184366_, Function<I, P> p_184367_)
public static <A> com.mojang.serialization.Codec$ResultFunction<A>
a(A arg0)
orElsePartial(A arg0)
method_39028(A arg0)
orElsePartial(A object)
m_184381_(A p_184382_)
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)
m_184421_(ToIntFunction<E> p_184422_, IntFunction<E> p_184423_, int p_184424_)
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)
m_184425_(com.mojang.serialization.Codec<E> p_184426_, com.mojang.serialization.Codec<E> p_184427_)
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)
m_307667_(com.mojang.serialization.MapCodec<E> p_311419_, com.mojang.serialization.MapCodec<E> p_312369_)
public static <E> com.mojang.serialization.Codec<E>
a(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)
m_184368_(com.mojang.serialization.Codec<E> p_184369_, Function<E, com.mojang.serialization.Lifecycle> p_184370_, Function<E, com.mojang.serialization.Lifecycle> p_184371_)
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)
m_322767_(com.mojang.serialization.Codec<E> p_331277_, Function<E, com.mojang.serialization.Lifecycle> p_331041_)
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)
m_295464_(com.mojang.serialization.Codec<K> p_298880_, com.mojang.serialization.Codec<V> p_297369_)
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)
m_144633_(int p_144634_, int p_144635_, Function<Integer, String> p_144636_)
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)
m_269197_(int p_270883_, int p_270323_)
private static com.mojang.serialization.Codec<Float>
a(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 min, float max, Function<Float, String> messageFactory)
m_184350_(float p_184351_, float p_184352_, Function<Float, String> p_184353_)
public static <T> com.mojang.serialization.Codec<List<T>>
a(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)
m_144637_(com.mojang.serialization.Codec<List<T>> p_144638_)
public static <T> com.mojang.serialization.Codec<HolderSet<T>>
b(com.mojang.serialization.Codec<jm<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)
m_203982_(com.mojang.serialization.Codec<C_203233_<T>> p_203983_)
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)
m_203976_(Function<com.mojang.serialization.DynamicOps<?>, com.mojang.serialization.DataResult<E>> p_203977_)
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)
m_203984_(Function<E, T> p_203985_)
public static <A> com.mojang.serialization.Codec<A>
c(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)
m_216185_(com.mojang.serialization.Codec<A> p_216186_)
public static com.mojang.serialization.Codec<TemporalAccessor>
a(DateTimeFormatter arg0)
temporalCodec(DateTimeFormatter arg0)
method_53700(DateTimeFormatter arg0)
formattedTime(DateTimeFormatter formatter)
m_216170_(DateTimeFormatter p_216171_)
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)
m_216166_(com.mojang.serialization.MapCodec<Optional<Long>> p_216167_)
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)
m_324898_(com.mojang.serialization.Codec<Map<K, V>> p_331930_, int p_328430_)
public static <T> com.mojang.serialization.Codec<it.unimi.dsi.fastutil.objects.Object2BooleanMap<T>>
d(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)
m_293159_(com.mojang.serialization.Codec<T> p_300841_)
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)
m_306181_(String p_311089_, String p_310965_, com.mojang.serialization.Codec<K> p_310912_, Function<? super V, ? extends K> p_311760_, Function<? super K, ? extends com.mojang.serialization.Codec<? extends V>> p_312960_)
public static <A> com.mojang.serialization.Codec<Optional<A>>
e(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)
m_319082_(com.mojang.serialization.Codec<A> p_329455_)