CLASS net/minecraft/class_5381 net/minecraft/util/dynamic/RegistryElementCodec COMMENT A codec for registry elements. Will prefer to encode/decode objects as COMMENT identifiers if they exist in a registry and falls back to full encoding/ COMMENT decoding behavior if it cannot do so. COMMENT COMMENT

The codec's saves and loads {@code Supplier} in order to avoid early COMMENT loading from registry before a registry is fully loaded from a codec. COMMENT COMMENT @param the element type COMMENT @see RegistryCodec COMMENT @see RegistryReadingOps COMMENT @see RegistryOps FIELD field_25507 registryRef Lnet/minecraft/class_5321; FIELD field_25508 elementCodec Lcom/mojang/serialization/Codec; FIELD field_26758 allowInlineDefinitions Z METHOD (Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;Z)V ARG 1 registryRef ARG 2 elementCodec ARG 3 allowInlineDefinitions METHOD decode (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult; ARG 1 ops ARG 2 input METHOD encode (Ljava/lang/Object;Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult; ARG 1 input ARG 2 ops ARG 3 prefix METHOD method_29746 (Lcom/mojang/datafixers/util/Pair;)Lcom/mojang/datafixers/util/Pair; ARG 0 pair METHOD method_29749 of (Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_5381; ARG 0 registryRef ARG 1 elementCodec METHOD method_31192 of (Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;Z)Lnet/minecraft/class_5381; ARG 0 registryRef ARG 1 elementCodec ARG 2 allowInlineDefinitions METHOD method_40391 (Lcom/mojang/datafixers/util/Pair;Lnet/minecraft/class_6880;)Lcom/mojang/datafixers/util/Pair; ARG 1 entry METHOD method_40392 (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;Ljava/lang/Object;)Lcom/mojang/serialization/DataResult; ARG 3 value METHOD method_40393 (Lcom/mojang/serialization/DynamicOps;Ljava/lang/Object;Lnet/minecraft/class_5321;)Lcom/mojang/serialization/DataResult; ARG 2 key METHOD method_40394 (Lcom/mojang/datafixers/util/Pair;)Lcom/mojang/datafixers/util/Pair; ARG 0 pair