Package net.minecraft.data.advancements
Class AdvancementProvider
java.lang.Object
net.minecraft.data.advancements.AdvancementProvider
- All Implemented Interfaces:
DataProvider
- Direct Known Subclasses:
DataGeneratorTest.Advancements
-
Field Summary
Modifier and TypeFieldDescriptionprotected ExistingFileHelper
private static final org.slf4j.Logger
private final DataGenerator.PathProvider
private final List<Consumer<Consumer<Advancement>>>
Fields inherited from interface net.minecraft.data.DataProvider
FIXED_ORDER_FIELDS, KEY_COMPARATOR
-
Constructor Summary
ConstructorDescriptionAdvancementProvider
(DataGenerator p_123966_) Deprecated.AdvancementProvider
(DataGenerator generatorIn, ExistingFileHelper fileHelperIn) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
protected void
registerAdvancements
(Consumer<Advancement> consumer, ExistingFileHelper fileHelper) This method registers alladvancements
.void
run
(CachedOutput p_236158_)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
pathProvider
-
tabs
-
fileHelper
-
-
Constructor Details
-
AdvancementProvider
Deprecated. -
AdvancementProvider
-
-
Method Details
-
run
- Specified by:
run
in interfaceDataProvider
-
registerAdvancements
This method registers alladvancements
. Mods can override this method to register their own custom advancements.- Parameters:
consumer
- aConsumer
which saves any advancements providedfileHelper
- the existing file helper to check for the existence of files like parent advancements- See Also:
-
getName
- Specified by:
getName
in interfaceDataProvider
-