Package net.minecraftforge.common.data
Class ForgeAdvancementProvider
java.lang.Object
net.minecraft.data.advancements.AdvancementProvider
net.minecraftforge.common.data.ForgeAdvancementProvider
- All Implemented Interfaces:
DataProvider
An extension of the
AdvancementProvider
to provide a feature-complete
experience to generate modded advancements.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
An interface used to generated modded advancements.Nested classes/interfaces inherited from interface net.minecraft.data.DataProvider
DataProvider.Factory<T extends DataProvider>
-
Field Summary
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR, LOGGER
-
Constructor Summary
ConstructorDescriptionForgeAdvancementProvider
(PackOutput output, CompletableFuture<HolderLookup.Provider> registries, ExistingFileHelper existingFileHelper, List<ForgeAdvancementProvider.AdvancementGenerator> subProviders) Constructs an advancement provider using the generators to write the advancements to a file. -
Method Summary
Methods inherited from class net.minecraft.data.advancements.AdvancementProvider
getName, run
-
Constructor Details
-
ForgeAdvancementProvider
public ForgeAdvancementProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> registries, ExistingFileHelper existingFileHelper, List<ForgeAdvancementProvider.AdvancementGenerator> subProviders) Constructs an advancement provider using the generators to write the advancements to a file.- Parameters:
output
- the target directory of the data generatorregistries
- a future of a lookup for registries and their objectsexistingFileHelper
- a helper used to find whether a file existssubProviders
- the generators used to create the advancements
-