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