Package net.minecraft.util.registry
Class DynamicRegistries.CodecHolder<E>
- java.lang.Object
-
- net.minecraft.util.registry.DynamicRegistries.CodecHolder<E>
-
- Enclosing class:
- DynamicRegistries
static final class DynamicRegistries.CodecHolder<E> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.serialization.Codec<E>
codec
private RegistryKey<? extends Registry<E>>
key
private com.mojang.serialization.Codec<E>
networkCodec
-
Constructor Summary
Constructors Constructor Description CodecHolder(RegistryKey<? extends Registry<E>> p_i242073_1_, com.mojang.serialization.Codec<E> p_i242073_2_, com.mojang.serialization.Codec<E> p_i242073_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.mojang.serialization.Codec<E>
codec()
RegistryKey<? extends Registry<E>>
key()
com.mojang.serialization.Codec<E>
networkCodec()
boolean
sendToClient()
-
-
-
Field Detail
-
key
private final RegistryKey<? extends Registry<E>> key
-
codec
private final com.mojang.serialization.Codec<E> codec
-
networkCodec
@Nullable private final com.mojang.serialization.Codec<E> networkCodec
-
-
Constructor Detail
-
CodecHolder
public CodecHolder(RegistryKey<? extends Registry<E>> p_i242073_1_, com.mojang.serialization.Codec<E> p_i242073_2_, @Nullable com.mojang.serialization.Codec<E> p_i242073_3_)
-
-
Method Detail
-
key
public RegistryKey<? extends Registry<E>> key()
-
codec
public com.mojang.serialization.Codec<E> codec()
-
networkCodec
@Nullable public com.mojang.serialization.Codec<E> networkCodec()
-
sendToClient
public boolean sendToClient()
-
-