类 DataPackRegistriesHooks
java.lang.Object
net.minecraftforge.registries.DataPackRegistriesHooks
-
字段概要
字段修饰符和类型字段说明private static final Set
<ResourceKey<? extends Registry<?>>> private static final List
<RegistryDataLoader.RegistryData<?>> private static final Set
<ResourceKey<? extends Registry<?>>> private static final Set
<ResourceKey<? extends Registry<?>>> private static final List
<RegistryDataLoader.RegistryData<?>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明(专用程序包) static <T> void
static Set
<ResourceKey<? extends Registry<?>>> 返回 An unmodifiable view of the set of synced non-vanilla datapack registry IDs。static Set
<ResourceKey<? extends Registry<?>>> grabNetworkableRegistries
(Supplier<Set<ResourceKey<? extends Registry<?>>>> vanilla) Captures a mutable view ofRegistrySynchronization.NETWORKABLE_REGISTRIES
so that we can register modded entries during the registry event.static List
<RegistryDataLoader.RegistryData<?>> grabSynchronizedRegistries
(RegistryDataLoader.RegistryData<?>... vanilla) static List
<RegistryDataLoader.RegistryData<?>> grabWorldgenRegistries
(RegistryDataLoader.RegistryData<?>... vanilla) Captures a mutable view ofRegistryDataLoader.WORLDGEN_REGISTRIES
so that we can register modded entries during the registry event.
-
字段详细资料
-
SYNCHRONIZED_REGISTRIES
-
WORLDGEN_REGISTRIES
-
NETWORKABLE_REGISTRIES
-
SYNCHRONIZED_REGISTRIES_CUSTOM
-
SYNCHRONIZED_REGISTRIESD_CUSTOM_VIEW
-
-
构造器详细资料
-
DataPackRegistriesHooks
private DataPackRegistriesHooks()
-
-
方法详细资料
-
grabSynchronizedRegistries
public static List<RegistryDataLoader.RegistryData<?>> grabSynchronizedRegistries(RegistryDataLoader.RegistryData<?>... vanilla) -
addRegistryCodec
-
grabWorldgenRegistries
public static List<RegistryDataLoader.RegistryData<?>> grabWorldgenRegistries(RegistryDataLoader.RegistryData<?>... vanilla) Captures a mutable view ofRegistryDataLoader.WORLDGEN_REGISTRIES
so that we can register modded entries during the registry event. All uses should use that field instead of this class.- 参数:
vanilla
- The vanilla worldgen registries- 返回:
- An unmodifiable list of worldgen registries
-
grabNetworkableRegistries
public static Set<ResourceKey<? extends Registry<?>>> grabNetworkableRegistries(Supplier<Set<ResourceKey<? extends Registry<?>>>> vanilla) Captures a mutable view ofRegistrySynchronization.NETWORKABLE_REGISTRIES
so that we can register modded entries during the registry event. All users should use that field instead of this class.- 参数:
vanilla
- Supplier for the default vanilla values- 返回:
- An unmodifiable set of networksable registry names
-
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
-