Package net.minecraft.resources
Class RegistryFixedCodec<E>
java.lang.Object
net.minecraft.resources.RegistryFixedCodec<E>
- All Implemented Interfaces:
com.mojang.serialization.Codec<Holder<E>>
,com.mojang.serialization.Decoder<Holder<E>>
,com.mojang.serialization.Encoder<Holder<E>>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mojang.serialization.Codec
com.mojang.serialization.Codec.RecursiveCodec<T>, com.mojang.serialization.Codec.ResultFunction<A>
Nested classes/interfaces inherited from interface com.mojang.serialization.Decoder
com.mojang.serialization.Decoder.Boxed<A>, com.mojang.serialization.Decoder.Simple<A>, com.mojang.serialization.Decoder.Terminal<A>
-
Field Summary
Fields inherited from interface com.mojang.serialization.Codec
BOOL, BYTE, BYTE_BUFFER, DOUBLE, EMPTY, FLOAT, INT, INT_STREAM, LONG, LONG_STREAM, PASSTHROUGH, SHORT, STRING
-
Constructor Summary
ModifierConstructorDescriptionprivate
RegistryFixedCodec
(ResourceKey<? extends Registry<E>> p_206723_) -
Method Summary
Modifier and TypeMethodDescriptionstatic <E> RegistryFixedCodec
<E> create
(ResourceKey<? extends Registry<E>> p_206741_) decode
(com.mojang.serialization.DynamicOps<T> p_206743_, T p_206744_) <T> com.mojang.serialization.DataResult
<T> toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.mojang.serialization.Codec
comapFlatMap, deprecated, dispatch, dispatch, dispatchMap, dispatchMap, dispatchStable, fieldOf, flatComapMap, flatXmap, lenientOptionalFieldOf, lenientOptionalFieldOf, lenientOptionalFieldOf, lenientOptionalFieldOf, listOf, listOf, mapResult, optionalFieldOf, optionalFieldOf, optionalFieldOf, optionalFieldOf, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, partialDispatch, promotePartial, sizeLimitedListOf, stable, validate, withLifecycle, xmap
Methods inherited from interface com.mojang.serialization.Decoder
boxed, decode, flatMap, map, parse, parse, simple, terminal
Methods inherited from interface com.mojang.serialization.Encoder
comap, encodeStart, flatComap
-
Field Details
-
registryKey
-
-
Constructor Details
-
RegistryFixedCodec
-
-
Method Details
-
create
-
encode
public <T> com.mojang.serialization.DataResult<T> encode(Holder<E> p_206729_, com.mojang.serialization.DynamicOps<T> p_206730_, T p_206731_) - Specified by:
encode
in interfacecom.mojang.serialization.Encoder<E>
-
decode
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<Holder<E>,T>> decode(com.mojang.serialization.DynamicOps<T> p_206743_, T p_206744_) - Specified by:
decode
in interfacecom.mojang.serialization.Decoder<E>
-
toString
-