com.mojang.serialization.MapCodec.MapCodecCodec<A>, com.mojang.serialization.MapCodec.ResultFunction<A>
Modifier and Type | Field and Description |
---|---|
private RegistryKey<? extends Registry<E>> |
registryKey |
Modifier | Constructor and Description |
---|---|
private |
RegistryLookupCodec(RegistryKey<? extends Registry<E>> registryKey) |
Modifier and Type | Method and Description |
---|---|
<T> com.mojang.serialization.DataResult<Registry<E>> |
decode(com.mojang.serialization.DynamicOps<T> dynamicOps,
com.mojang.serialization.MapLike<T> mapLike) |
<T> com.mojang.serialization.RecordBuilder<T> |
encode(Registry<E> registry,
com.mojang.serialization.DynamicOps<T> dynamicOps,
com.mojang.serialization.RecordBuilder<T> recordBuilder) |
<T> Stream<T> |
keys(com.mojang.serialization.DynamicOps<T> dynamicOps) |
static <E> RegistryLookupCodec<E> |
of(RegistryKey<? extends Registry<E>> registryKey) |
String |
toString() |
codec, dependent, deprecated, fieldOf, flatXmap, forGetter, mapResult, of, of, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, setPartial, stable, unit, unit, withLifecycle, xmap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
ap, compressedDecode, compressor, decoder, flatMap, map
private final RegistryKey<? extends Registry<E>> registryKey
private RegistryLookupCodec(RegistryKey<? extends Registry<E>> registryKey)
public static <E> RegistryLookupCodec<E> of(RegistryKey<? extends Registry<E>> registryKey)
public <T> com.mojang.serialization.RecordBuilder<T> encode(Registry<E> registry, com.mojang.serialization.DynamicOps<T> dynamicOps, com.mojang.serialization.RecordBuilder<T> recordBuilder)
public <T> com.mojang.serialization.DataResult<Registry<E>> decode(com.mojang.serialization.DynamicOps<T> dynamicOps, com.mojang.serialization.MapLike<T> mapLike)