Package net.minecraft.registry.entry
Class RegistryFixedCodec<E>
java.lang.Object
net.minecraft.registry.entry.RegistryFixedCodec<E>
- All Implemented Interfaces:
com.mojang.serialization.Codec<RegistryEntry<E>>
,com.mojang.serialization.Decoder<RegistryEntry<E>>
,com.mojang.serialization.Encoder<RegistryEntry<E>>
public final class RegistryFixedCodec<E>
extends Object
implements com.mojang.serialization.Codec<RegistryEntry<E>>
- Mappings:
Namespace Name named net/minecraft/registry/entry/RegistryFixedCodec
intermediary net/minecraft/class_6899
official alw
-
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
(RegistryKey<? extends Registry<E>> registry) -
Method Summary
Modifier and TypeMethodDescription<T> com.mojang.serialization.DataResult
<com.mojang.datafixers.util.Pair<RegistryEntry<E>, T>> decode
(com.mojang.serialization.DynamicOps<T> ops, T input) <T> com.mojang.serialization.DataResult
<T> encode
(RegistryEntry<E> registryEntry, com.mojang.serialization.DynamicOps<T> dynamicOps, T t) static <E> RegistryFixedCodec
<E> of
(RegistryKey<? extends Registry<E>> registry) 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
-
registry
- Mappings:
Namespace Name Mixin selector named registry
Lnet/minecraft/registry/entry/RegistryFixedCodec;registry:Lnet/minecraft/registry/RegistryKey;
intermediary field_36484
Lnet/minecraft/class_6899;field_36484:Lnet/minecraft/class_5321;
official a
Lalw;a:Laly;
-
-
Constructor Details
-
RegistryFixedCodec
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/registry/entry/RegistryFixedCodec;<init>(Lnet/minecraft/registry/RegistryKey;)V
intermediary <init>
Lnet/minecraft/class_6899;<init>(Lnet/minecraft/class_5321;)V
official <init>
Lalw;<init>(Laly;)V
-
-
Method Details
-
of
- Mappings:
Namespace Name Mixin selector named of
Lnet/minecraft/registry/entry/RegistryFixedCodec;of(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryFixedCodec;
intermediary method_40400
Lnet/minecraft/class_6899;method_40400(Lnet/minecraft/class_5321;)Lnet/minecraft/class_6899;
official a
Lalw;a(Laly;)Lalw;
-
encode
public <T> com.mojang.serialization.DataResult<T> encode(RegistryEntry<E> registryEntry, com.mojang.serialization.DynamicOps<T> dynamicOps, T t) - Specified by:
encode
in interfacecom.mojang.serialization.Encoder<E>
- Mappings:
Namespace Name Mixin selector named encode
Lnet/minecraft/registry/entry/RegistryFixedCodec;encode(Lnet/minecraft/registry/entry/RegistryEntry;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary method_40396
Lnet/minecraft/class_6899;method_40396(Lnet/minecraft/class_6880;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
official a
Lalw;a(Ljq;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
decode
public <T> com.mojang.serialization.DataResult<com.mojang.datafixers.util.Pair<RegistryEntry<E>,T>> decode(com.mojang.serialization.DynamicOps<T> ops, T input) - Specified by:
decode
in interfacecom.mojang.serialization.Decoder<E>
- Mappings:
Namespace Name Mixin selector named decode
Lnet/minecraft/registry/entry/RegistryFixedCodec;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
intermediary decode
Lnet/minecraft/class_6899;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
official decode
Lalw;decode(Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult;
-
toString
-