public interface AdvancementProgress extends Progressable
Advancement
.Modifier and Type | Method and Description |
---|---|
Optional<CriterionProgress> |
get(AdvancementCriterion criterion)
Gets the
CriterionProgress for the given
AdvancementCriterion if the specified criterion is
present on the Advancement . |
Optional<ScoreCriterionProgress> |
get(ScoreAdvancementCriterion criterion)
Gets the
ScoreCriterionProgress for the given
ScoreAdvancementCriterion if the specified criterion is
present on the Advancement . |
Advancement |
getAdvancement()
Gets the
Advancement . |
default CriterionProgress |
require(AdvancementCriterion criterion)
Gets the
CriterionProgress for the
given AdvancementCriterion . |
default ScoreCriterionProgress |
require(ScoreAdvancementCriterion criterion)
Gets the
ScoreCriterionProgress for the
given ScoreAdvancementCriterion . |
achieved, get, grant, revoke
Advancement getAdvancement()
Advancement
.Optional<CriterionProgress> get(AdvancementCriterion criterion)
CriterionProgress
for the given
AdvancementCriterion
if the specified criterion is
present on the Advancement
.
For AND and OR criteria will wrapped CriterionProgress
be
provided that will interact with the CriterionProgress
s
for every child AdvancementCriterion
s.
criterion
- The criterionOptional<ScoreCriterionProgress> get(ScoreAdvancementCriterion criterion)
ScoreCriterionProgress
for the given
ScoreAdvancementCriterion
if the specified criterion is
present on the Advancement
.criterion
- The score criteriondefault CriterionProgress require(AdvancementCriterion criterion)
CriterionProgress
for the
given AdvancementCriterion
.
For AND and OR criteria will wrapped CriterionProgress
be
provided that will interact with the CriterionProgress
s
for every child AdvancementCriterion
s.
criterion
- The criteriondefault ScoreCriterionProgress require(ScoreAdvancementCriterion criterion)
ScoreCriterionProgress
for the
given ScoreAdvancementCriterion
.criterion
- The score criterion