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; METHOD (Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)V ARG 1 registryRef 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_29749 of (Lnet/minecraft/class_5321;Lcom/mojang/serialization/Codec;)Lnet/minecraft/class_5381; ARG 0 registryRef