类 DataPackRegistriesHooks
java.lang.Object
net.neoforged.neoforge.registries.DataPackRegistriesHooks
-
字段概要
字段修饰符和类型字段说明private static final List
<RegistryDataLoader.RegistryData<?>> private static final List
<RegistryDataLoader.RegistryData<?>> private static final List
<RegistryDataLoader.RegistryData<?>> private static final Set
<ResourceKey<? extends Registry<?>>> private static final Set
<ResourceKey<? extends Registry<?>>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) static <T> void
static List
<RegistryDataLoader.RegistryData<?>> 返回 An unmodifiable view of the list of datapack registries。static Stream
<RegistryDataLoader.RegistryData<?>> static Set
<ResourceKey<? extends Registry<?>>> 返回 An unmodifiable view of the set of synced non-vanilla datapack registry IDs。static <T> RegistryDataLoader.RegistryData
<T> getSyncedRegistry
(ResourceKey<? extends Registry<T>> registry) static List
<RegistryDataLoader.RegistryData<?>>
-
字段详细资料
-
NETWORKABLE_REGISTRIES
-
DATA_PACK_REGISTRIES
-
DATA_PACK_REGISTRIES_VIEW
-
SYNCED_CUSTOM_REGISTRIES
-
SYNCED_CUSTOM_REGISTRIES_VIEW
-
-
构造器详细资料
-
DataPackRegistriesHooks
private DataPackRegistriesHooks()
-
-
方法详细资料
-
grabNetworkableRegistries
public static List<RegistryDataLoader.RegistryData<?>> grabNetworkableRegistries(List<RegistryDataLoader.RegistryData<?>> list) -
addRegistryCodec
-
getDataPackRegistries
返回 An unmodifiable view of the list of datapack registries。. These registries are loaded from per-world datapacks on server startup.- 返回:
- An unmodifiable view of the list of datapack registries
-
getDataPackRegistriesWithDimensions
-
getSyncedCustomRegistries
返回 An 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.- 返回:
- An unmodifiable view of the set of synced non-vanilla datapack registry IDs
-
getSyncedRegistry
@Nullable @Internal public static <T> RegistryDataLoader.RegistryData<T> getSyncedRegistry(ResourceKey<? extends Registry<T>> registry)
-