Interface IAdvancementBuilderExtension
- All Known Implementing Classes:
Advancement.Builder
public interface IAdvancementBuilderExtension
-
Method Summary
Modifier and TypeMethodDescriptiondefault AdvancementHolder
save
(Consumer<AdvancementHolder> 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 AdvancementHolder save(Consumer<AdvancementHolder> 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
-