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