Class 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_)  
    • Field Detail

      • 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

      • codec

        public com.mojang.serialization.Codec<E> codec()
      • networkCodec

        @Nullable
        public com.mojang.serialization.Codec<E> networkCodec()
      • sendToClient

        public boolean sendToClient()