Class DataPackRegistriesHooks

java.lang.Object
net.minecraftforge.registries.DataPackRegistriesHooks

@Internal public final class DataPackRegistriesHooks extends Object
  • Field Details

  • Constructor Details

    • DataPackRegistriesHooks

      private DataPackRegistriesHooks()
  • Method Details

    • grabBuiltinRegistries

      public static Map<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>> grabBuiltinRegistries(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>> builder)
    • addRegistryCodec

      public static <T> void addRegistryCodec(@NotNull RegistryAccess.RegistryData<T> data)
    • getSyncedCustomRegistries

      public static Set<ResourceKey<? extends Registry<?>>> getSyncedCustomRegistries()
      Returns unmodifiable view of the set of synced non-vanilla datapack registry IDs. Clients must have each of a server's synced datapack registries to be able to connect to that server; vanilla clients therefore cannot connect if this list is non-empty on the server.
      Returns:
      unmodifiable view of the set of synced non-vanilla datapack registry IDs