Class AdvancementProvider
java.lang.Object
net.minecraft.data.advancements.AdvancementProvider
net.neoforged.neoforge.common.data.AdvancementProvider
- All Implemented Interfaces:
DataProvider
An extension of the vanilla
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
ConstructorDescriptionAdvancementProvider
(PackOutput output, CompletableFuture<HolderLookup.Provider> registries, ExistingFileHelper existingFileHelper, List<AdvancementProvider.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
-
AdvancementProvider
public AdvancementProvider(PackOutput output, CompletableFuture<HolderLookup.Provider> registries, ExistingFileHelper existingFileHelper, List<AdvancementProvider.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
-