Package net.minecraft.util.registry
Class RegistryLookupCodec<E>
- java.lang.Object
-
- com.mojang.serialization.CompressorHolder
-
- com.mojang.serialization.MapCodec<Registry<E>>
-
- net.minecraft.util.registry.RegistryLookupCodec<E>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mojang.serialization.MapCodec
com.mojang.serialization.MapCodec.MapCodecCodec<A extends java.lang.Object>, com.mojang.serialization.MapCodec.ResultFunction<A extends java.lang.Object>
-
-
Field Summary
Fields Modifier and Type Field Description private RegistryKey<? extends Registry<E>>
registryKey
-
Constructor Summary
Constructors Modifier Constructor Description private
RegistryLookupCodec(RegistryKey<? extends Registry<E>> p_i242091_1_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <E> RegistryLookupCodec<E>
create(RegistryKey<? extends Registry<E>> p_244331_0_)
<T> com.mojang.serialization.DataResult<Registry<E>>
decode(com.mojang.serialization.DynamicOps<T> p_decode_1_, com.mojang.serialization.MapLike<T> p_decode_2_)
<T> com.mojang.serialization.RecordBuilder<T>
encode(Registry<E> p_encode_1_, com.mojang.serialization.DynamicOps<T> p_encode_2_, com.mojang.serialization.RecordBuilder<T> p_encode_3_)
<T> java.util.stream.Stream<T>
keys(com.mojang.serialization.DynamicOps<T> p_keys_1_)
java.lang.String
toString()
-
Methods inherited from class com.mojang.serialization.MapCodec
codec, dependent, deprecated, fieldOf, flatXmap, forGetter, mapResult, of, of, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, setPartial, stable, unit, unit, withLifecycle, xmap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
registryKey
private final RegistryKey<? extends Registry<E>> registryKey
-
-
Constructor Detail
-
RegistryLookupCodec
private RegistryLookupCodec(RegistryKey<? extends Registry<E>> p_i242091_1_)
-
-
Method Detail
-
create
public static <E> RegistryLookupCodec<E> create(RegistryKey<? extends Registry<E>> p_244331_0_)
-
encode
public <T> com.mojang.serialization.RecordBuilder<T> encode(Registry<E> p_encode_1_, com.mojang.serialization.DynamicOps<T> p_encode_2_, com.mojang.serialization.RecordBuilder<T> p_encode_3_)
-
decode
public <T> com.mojang.serialization.DataResult<Registry<E>> decode(com.mojang.serialization.DynamicOps<T> p_decode_1_, com.mojang.serialization.MapLike<T> p_decode_2_)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-