Class DynamicRegistriesImpl

java.lang.Object
net.fabricmc.fabric.impl.registry.sync.DynamicRegistriesImpl

public final class DynamicRegistriesImpl extends Object
  • Field Details

    • FABRIC_DYNAMIC_REGISTRY_KEYS

      public static final Set<net.minecraft.resources.ResourceKey<?>> FABRIC_DYNAMIC_REGISTRY_KEYS
    • DYNAMIC_REGISTRY_KEYS

      public static final Set<net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>>> DYNAMIC_REGISTRY_KEYS
    • SKIP_EMPTY_SYNC_REGISTRIES

      public static final Set<net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<?>>> SKIP_EMPTY_SYNC_REGISTRIES
  • Method Details

    • getDynamicRegistries

      public static @Unmodifiable List<net.minecraft.resources.RegistryDataLoader.RegistryData<?>> getDynamicRegistries()
    • register

      public static <T> net.minecraft.resources.RegistryDataLoader.RegistryData<T> register(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key, com.mojang.serialization.Codec<T> serverCodec)
    • addSyncedRegistry

      public static <T> void addSyncedRegistry(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> key, com.mojang.serialization.Codec<T> clientCodec, DynamicRegistries.SyncOption... options)