类 DataPackRegistriesHooks
java.lang.Object
net.minecraftforge.registries.DataPackRegistriesHooks
-
字段概要
字段修饰符和类型字段说明private static final List<RegistryDataLoader.RegistryData<?>>
private static final List<RegistryDataLoader.RegistryData<?>>
private static final Map<ResourceKey<? extends Registry<?>>,
RegistrySynchronization.NetworkedRegistryData<?>> 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 Map<ResourceKey<? extends Registry<?>>,
RegistrySynchronization.NetworkedRegistryData<?>> grabNetworkableRegistries
(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistrySynchronization.NetworkedRegistryData<?>> builder)
-
字段详细资料
-
NETWORKABLE_REGISTRIES
private static final Map<ResourceKey<? extends Registry<?>>,RegistrySynchronization.NetworkedRegistryData<?>> NETWORKABLE_REGISTRIES -
DATA_PACK_REGISTRIES
-
DATA_PACK_REGISTRIES_VIEW
-
SYNCED_CUSTOM_REGISTRIES
-
SYNCED_CUSTOM_REGISTRIES_VIEW
-
-
构造器详细资料
-
DataPackRegistriesHooks
private DataPackRegistriesHooks()
-
-
方法详细资料
-
grabNetworkableRegistries
public static Map<ResourceKey<? extends Registry<?>>,RegistrySynchronization.NetworkedRegistryData<?>> grabNetworkableRegistries(com.google.common.collect.ImmutableMap.Builder<ResourceKey<? extends Registry<?>>, RegistrySynchronization.NetworkedRegistryData<?>> builder) -
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
-