Interface AdvancementProgress
- All Superinterfaces:
Progressable
Represents the progress of a
Advancement.-
Method Summary
Modifier and TypeMethodDescriptionGets theAdvancement.get(AdvancementCriterion criterion) Gets theCriterionProgressfor the givenAdvancementCriterionif the specified criterion is present on theAdvancement.get(ScoreAdvancementCriterion criterion) Gets theScoreCriterionProgressfor the givenScoreAdvancementCriterionif the specified criterion is present on theAdvancement.require(AdvancementCriterion criterion) Gets theCriterionProgressfor the givenAdvancementCriterion.require(ScoreAdvancementCriterion criterion) Gets theScoreCriterionProgressfor 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 theCriterionProgressfor the givenAdvancementCriterionif the specified criterion is present on theAdvancement.For AND and OR criteria will wrapped
CriterionProgressbe provided that will interact with theCriterionProgresss for every childAdvancementCriterions.- Parameters:
criterion- The criterion- Returns:
- The criterion progress
-
get
Gets theScoreCriterionProgressfor the givenScoreAdvancementCriterionif the specified criterion is present on theAdvancement.- Parameters:
criterion- The score criterion- Returns:
- The score criterion progress
-
require
Gets theCriterionProgressfor the givenAdvancementCriterion.For AND and OR criteria will wrapped
CriterionProgressbe provided that will interact with theCriterionProgresss for every childAdvancementCriterions.- Parameters:
criterion- The criterion- Returns:
- The criterion progress
-
require
Gets theScoreCriterionProgressfor the givenScoreAdvancementCriterion.- Parameters:
criterion- The score criterion- Returns:
- The score criterion progress
-