Package net.minecraftforge.registries
Class DataPackRegistriesHooks
java.lang.Object
net.minecraftforge.registries.DataPackRegistriesHooks
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static Map<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>> private static final Set<ResourceKey<? extends Registry<?>>>private static final Set<ResourceKey<? extends Registry<?>>>
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic <T> voidstatic 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_COPYprivate static Map<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>> REGISTRY_ACCESS_REGISTRIES_COPY
- 
SYNCED_CUSTOM_REGISTRIES
- 
SYNCED_CUSTOM_REGISTRIES_VIEW
 
- 
- 
Constructor Details- 
DataPackRegistriesHooksprivate DataPackRegistriesHooks()
 
- 
- 
Method Details- 
grabBuiltinRegistriespublic static Map<ResourceKey<? extends Registry<?>>,RegistryAccess.RegistryData<?>> grabBuiltinRegistries(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistryAccess.RegistryData<?>> builder) 
- 
addRegistryCodec
- 
getSyncedCustomRegistriesReturns 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
 
 
-