Interface ScoreAdvancementCriterion
-
- All Superinterfaces:
AdvancementCriterion
,Nameable
public interface ScoreAdvancementCriterion extends AdvancementCriterion
Represents aAdvancementCriterion
that requires a specific score (goal()
) to be achieved.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ScoreAdvancementCriterion.Builder
A builder to createScoreAdvancementCriterion
s.-
Nested classes/interfaces inherited from interface org.spongepowered.api.advancement.criteria.AdvancementCriterion
AdvancementCriterion.BaseBuilder<T extends AdvancementCriterion,B extends AdvancementCriterion.BaseBuilder<T,B>>, AdvancementCriterion.Factory
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ScoreAdvancementCriterion.Builder
builder()
Creates a newScoreAdvancementCriterion.Builder
which can be used to create aScoreAdvancementCriterion
.int
goal()
Gets the goal value.
-
-
-
Method Detail
-
builder
static ScoreAdvancementCriterion.Builder builder()
Creates a newScoreAdvancementCriterion.Builder
which can be used to create aScoreAdvancementCriterion
.- Returns:
- The new builder
-
goal
int goal()
Gets the goal value.- Returns:
- The goal value
-
-