Interface AdvancementProgress
- 
- All Superinterfaces:
- Progressable
 
 public interface AdvancementProgress extends Progressable Represents the progress of aAdvancement.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description Advancementadvancement()Gets theAdvancement.java.util.Optional<CriterionProgress>get(AdvancementCriterion criterion)Gets theCriterionProgressfor the givenAdvancementCriterionif the specified criterion is present on theAdvancement.java.util.Optional<ScoreCriterionProgress>get(ScoreAdvancementCriterion criterion)Gets theScoreCriterionProgressfor the givenScoreAdvancementCriterionif the specified criterion is present on theAdvancement.CriterionProgressrequire(AdvancementCriterion criterion)Gets theCriterionProgressfor the givenAdvancementCriterion.ScoreCriterionProgressrequire(ScoreAdvancementCriterion criterion)Gets theScoreCriterionProgressfor the givenScoreAdvancementCriterion.- 
Methods inherited from interface org.spongepowered.api.advancement.Progressableachieved, get, grant, revoke
 
- 
 
- 
- 
- 
Method Detail- 
advancementAdvancement advancement() Gets theAdvancement.- Returns:
- The advancement
 
 - 
getjava.util.Optional<CriterionProgress> get(AdvancementCriterion criterion) 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
 
 - 
getjava.util.Optional<ScoreCriterionProgress> get(ScoreAdvancementCriterion criterion) Gets theScoreCriterionProgressfor the givenScoreAdvancementCriterionif the specified criterion is present on theAdvancement.- Parameters:
- criterion- The score criterion
- Returns:
- The score criterion progress
 
 - 
requireCriterionProgress require(AdvancementCriterion criterion) 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
 
 - 
requireScoreCriterionProgress require(ScoreAdvancementCriterion criterion) Gets theScoreCriterionProgressfor the givenScoreAdvancementCriterion.- Parameters:
- criterion- The score criterion
- Returns:
- The score criterion progress
 
 
- 
 
-