Interface IAdvancementBuilderExtension
- All Known Implementing Classes:
Advancement.Builder
public interface IAdvancementBuilderExtension
-
Method Summary
Modifier and TypeMethodDescriptiondefault AdvancementHolder
save
(Consumer<AdvancementHolder> saver, ResourceLocation id) Saves this builder with the given id.private Advancement.Builder
self()
-
Method Details
-
self
-
save
Saves this builder with the given id.- Parameters:
saver
- aConsumer
which saves any advancements providedid
- theResourceLocation
id for the new advancement- Returns:
- the built advancement
- Throws:
IllegalStateException
- if the parent of the advancement is not known
-