Class DynamicRegistries.CodecHolder<E>

java.lang.Object
net.minecraft.util.registry.DynamicRegistries.CodecHolder<E>
Enclosing class:
DynamicRegistries

static final class DynamicRegistries.CodecHolder<E> extends Object
  • Field Details

    • 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 Details

    • 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 Details

    • 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()