Interface IForgeAdvancementBuilder
- All Known Implementing Classes:
Advancement.Builder
public interface IForgeAdvancementBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondefault Advancementsave(Consumer<Advancement> consumer, ResourceLocation id, ExistingFileHelper fileHelper)save function for theAdvancement.Builderwhich uses theExistingFileHelperto check if the parent is already knownprivate Advancement.Builderself()
-
Method Details
-
self
-
save
default Advancement save(Consumer<Advancement> consumer, ResourceLocation id, ExistingFileHelper fileHelper)save function for theAdvancement.Builderwhich uses theExistingFileHelperto check if the parent is already known- Parameters:
consumer- AConsumerwhich the buildAdvancementis passed toid- TheResourceLocationfor the newAdvancementfileHelper- TheExistingFileHelperwhere all knownAdvancements are registered- Returns:
- The build
Advancement - Throws:
IllegalStateException- is thrown if the parent of theAdvancementis not known
-