Interface AdvancementProgress
-
- All Superinterfaces:
Progressable
public interface AdvancementProgress extends Progressable
Represents the progress of aAdvancement.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Advancementadvancement()Gets theAdvancement.Optional<CriterionProgress>get(AdvancementCriterion criterion)Gets theCriterionProgressfor the givenAdvancementCriterionif the specified criterion is present on theAdvancement.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.Progressable
achieved, get, grant, revoke
-
-
-
-
Method Detail
-
advancement
Advancement advancement()
Gets theAdvancement.- Returns:
- The advancement
-
get
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
-
get
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
-
require
CriterionProgress 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
-
require
ScoreCriterionProgress require(ScoreAdvancementCriterion criterion)
Gets theScoreCriterionProgressfor the givenScoreAdvancementCriterion.- Parameters:
criterion- The score criterion- Returns:
- The score criterion progress
-
-