Package net.minecraftforge.registries
Class DataPackRegistriesHooks
java.lang.Object
net.minecraftforge.registries.DataPackRegistriesHooks
-
Field Summary
Modifier and TypeFieldDescriptionprivate static Map<ResourceKey<? extends Registry<?>>,
RegistryAccess.RegistryData<?>> private static final Set<ResourceKey<? extends Registry<?>>>
private static final Set<ResourceKey<? extends Registry<?>>>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> void
static Set<ResourceKey<? extends Registry<?>>>
Returns unmodifiable view of the set of synced non-vanilla datapack registry IDs.static Map<ResourceKey<? extends Registry<?>>,
RegistryAccess.RegistryData<?>> grabBuiltinRegistries
(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistryAccess.RegistryData<?>> builder)
-
Field Details
-
REGISTRY_ACCESS_REGISTRIES_COPY
private static Map<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>> REGISTRY_ACCESS_REGISTRIES_COPY -
SYNCED_CUSTOM_REGISTRIES
-
SYNCED_CUSTOM_REGISTRIES_VIEW
-
-
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
-
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
-