类 DatapackBuiltinEntriesProvider
java.lang.Object
net.minecraft.data.registries.RegistriesDatapackGenerator
net.minecraftforge.common.data.DatapackBuiltinEntriesProvider
- 所有已实现的接口:
DataProvider
An extension of the
RegistriesDatapackGenerator
which properly handles
referencing existing dynamic registry objects within another dynamic registry
object.-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
字段概要
字段从接口继承的字段 net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
-
构造器概要
构造器构造器说明DatapackBuiltinEntriesProvider
(PackOutput output, CompletableFuture<HolderLookup.Provider> registries, RegistrySetBuilder registryBuilder, Set<String> modIds) Constructs a new datapack provider which generates all registry objects from the provided mods using the holder.DatapackBuiltinEntriesProvider
(PackOutput output, CompletableFuture<RegistrySetBuilder.PatchedRegistries> registries, Set<String> modIds) Constructs a new datapack provider which generates all registry objects from the provided mods using the holder. -
方法概要
修饰符和类型方法说明Gets the future of the full registry lookup containing all added elements.
The returned full registry lookup can also be used for other data providers.从类继承的方法 net.minecraft.data.registries.RegistriesDatapackGenerator
getName, getRegistryProvider, run
-
字段详细资料
-
fullRegistries
-
-
构造器详细资料
-
DatapackBuiltinEntriesProvider
public DatapackBuiltinEntriesProvider(PackOutput output, CompletableFuture<RegistrySetBuilder.PatchedRegistries> registries, Set<String> modIds) Constructs a new datapack provider which generates all registry objects from the provided mods using the holder.- 参数:
output
- the target directory of the data generatorregistries
- a future of patched registriesmodIds
- a set of mod ids to generate the dynamic registry objects of
-
DatapackBuiltinEntriesProvider
public DatapackBuiltinEntriesProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> registries, RegistrySetBuilder registryBuilder, Set<String> modIds) Constructs a new datapack provider which generates all registry objects from the provided mods using the holder. All entries that need to be bootstrapped are provided within theRegistrySetBuilder
.- 参数:
output
- the target directory of the data generatorregistries
- a future of a lookup for registries and their objectsregistryBuilder
- a builder containing the dynamic registry objects added by this providermodIds
- a set of mod ids to generate the dynamic registry objects of
-
-
方法详细资料
-
getFullRegistries
Gets the future of the full registry lookup containing all added elements.
The returned full registry lookup can also be used for other data providers.
An example use case is thevar provider = new DatapackBuiltinEntriesProvider(generator.getPackOutput(), event.getLookupProvider(), new RegistrySetBuilder(), Set.of("example_mod"));
TagsProvider
.- 返回:
- the future of the full registry lookup
-