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