Class RegistryAccess.RegistryData<E>

java.lang.Object
net.minecraft.core.RegistryAccess.RegistryData<E>
Enclosing class:
RegistryAccess

static final class RegistryAccess.RegistryData<E> extends Object
  • Field Details

    • key

      private final ResourceKey<? 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

    • RegistryData

      public RegistryData(ResourceKey<? extends Registry<E>> p_123105_, com.mojang.serialization.Codec<E> p_123106_, @Nullable com.mojang.serialization.Codec<E> p_123107_)
  • Method Details

    • key

      public ResourceKey<? 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()