Class DynamicRegistryManager.Info<E>

java.lang.Object
net.minecraft.util.registry.DynamicRegistryManager.Info<E>
Enclosing class:
DynamicRegistryManager

static final class DynamicRegistryManager.Info<E>
extends Object
Represents the serialization behavior of the registries, including the id of the registry, the codec for its elements, and whether the registry should be sent to the client.
  • Field Details

    • registry

      private final RegistryKey<? extends Registry<E>> registry
    • entryCodec

      private final com.mojang.serialization.Codec<E> entryCodec
    • networkEntryCodec

      @Nullable private final com.mojang.serialization.Codec<E> networkEntryCodec
  • Constructor Details

    • Info

      public Info​(RegistryKey<? extends Registry<E>> registry, com.mojang.serialization.Codec<E> entryCodec, @Nullable com.mojang.serialization.Codec<E> networkEntryCodec)
  • Method Details

    • getRegistry

      public RegistryKey<? extends Registry<E>> getRegistry()
    • getEntryCodec

      public com.mojang.serialization.Codec<E> getEntryCodec()
    • getNetworkEntryCodec

      @Nullable public com.mojang.serialization.Codec<E> getNetworkEntryCodec()
    • isSynced

      public boolean isSynced()