Interface AdvancementTemplate.Builder
- All Superinterfaces:
AbstractBuilder<AdvancementTemplate>
,Builder<AdvancementTemplate,
,AdvancementTemplate.Builder> ResettableBuilder<AdvancementTemplate,
,AdvancementTemplate.Builder> ResourceKeyedBuilder<AdvancementTemplate,
AdvancementTemplate.Builder>
- All Known Subinterfaces:
AdvancementTemplate.Builder.RootStep
- Enclosing interface:
- AdvancementTemplate
public static interface AdvancementTemplate.Builder
extends ResourceKeyedBuilder<AdvancementTemplate,AdvancementTemplate.Builder>
A builder to create
Advancement
s.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Define root advancement only parameters. -
Method Summary
Modifier and TypeMethodDescriptioncriterion
(AdvancementCriterion criterion) Sets theAdvancementCriterion
that should be used for the advancement.displayInfo
(@Nullable DisplayInfo displayInfo) Sets theDisplayInfo
.parent
(Advancement parent) Sets the parentAdvancement
.root()
Sets this advancement as root.Methods inherited from interface net.kyori.adventure.builder.AbstractBuilder
build
Methods inherited from interface org.spongepowered.api.util.ResourceKeyedBuilder
key
-
Method Details
-
parent
Sets the parentAdvancement
.For the root advancement use
root()
- Parameters:
parent
- The parent advancement- Returns:
- This builder, for chaining
-
root
Sets this advancement as root.- Returns:
- This builder, for chaining
-
criterion
Sets theAdvancementCriterion
that should be used for the advancement. Defaults toAdvancementCriterion.empty()
.- Parameters:
criterion
- The criterion- Returns:
- This builder, for chaining
-
displayInfo
Sets theDisplayInfo
. Defaults to {code null}.- Parameters:
displayInfo
- The display info- Returns:
- This builder, for chaining
-