Class AdvancementProvider

java.lang.Object
net.minecraft.data.advancements.AdvancementProvider
net.neoforged.neoforge.common.data.AdvancementProvider
All Implemented Interfaces:
DataProvider
Direct Known Subclasses:
NeoForgeAdvancementProvider

public class AdvancementProvider extends AdvancementProvider
An extension of the vanilla AdvancementProvider to provide a feature-complete experience to generate modded advancements.
  • 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 generator
      registries - a future of a lookup for registries and their objects
      existingFileHelper - a helper used to find whether a file exists
      subProviders - the generators used to create the advancements