Interface IForgeAdvancementBuilder
- All Known Implementing Classes:
Advancement.Builder
public interface IForgeAdvancementBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondefault Advancement
save
(Consumer<Advancement> saver, ResourceLocation id, ExistingFileHelper fileHelper) Saves this builder with the given id using theExistingFileHelper
to check if the parent is already known.private Advancement.Builder
self()
-
Method Details
-
self
-
save
default Advancement save(Consumer<Advancement> saver, ResourceLocation id, ExistingFileHelper fileHelper) Saves this builder with the given id using theExistingFileHelper
to check if the parent is already known.- Parameters:
saver
- aConsumer
which saves any advancements providedid
- theResourceLocation
id for the new advancementfileHelper
- theExistingFileHelper
where all known advancements are registered- Returns:
- the built advancement
- Throws:
IllegalStateException
- if the parent of the advancement is not known
-