Interface AdvancementProgress
- All Superinterfaces:
Progressable
Represents the progress of a
Advancement
.-
Method Summary
Modifier and TypeMethodDescriptionGets theAdvancement
.get
(AdvancementCriterion criterion) Gets theCriterionProgress
for the givenAdvancementCriterion
if the specified criterion is present on theAdvancement
.get
(ScoreAdvancementCriterion criterion) Gets theScoreCriterionProgress
for the givenScoreAdvancementCriterion
if the specified criterion is present on theAdvancement
.require
(AdvancementCriterion criterion) Gets theCriterionProgress
for the givenAdvancementCriterion
.require
(ScoreAdvancementCriterion criterion) Gets theScoreCriterionProgress
for the givenScoreAdvancementCriterion
.Methods inherited from interface org.spongepowered.api.advancement.Progressable
achieved, get, grant, revoke
-
Method Details
-
advancement
Advancement advancement()Gets theAdvancement
.- Returns:
- The advancement
-
get
Gets theCriterionProgress
for the givenAdvancementCriterion
if the specified criterion is present on theAdvancement
.For AND and OR criteria will wrapped
CriterionProgress
be provided that will interact with theCriterionProgress
s for every childAdvancementCriterion
s.- Parameters:
criterion
- The criterion- Returns:
- The criterion progress
-
get
Gets theScoreCriterionProgress
for the givenScoreAdvancementCriterion
if the specified criterion is present on theAdvancement
.- Parameters:
criterion
- The score criterion- Returns:
- The score criterion progress
-
require
Gets theCriterionProgress
for the givenAdvancementCriterion
.For AND and OR criteria will wrapped
CriterionProgress
be provided that will interact with theCriterionProgress
s for every childAdvancementCriterion
s.- Parameters:
criterion
- The criterion- Returns:
- The criterion progress
-
require
Gets theScoreCriterionProgress
for the givenScoreAdvancementCriterion
.- Parameters:
criterion
- The score criterion- Returns:
- The score criterion progress
-