Interface OperatorCriterion
- All Superinterfaces:
AdvancementCriterion
,Nameable
- All Known Subinterfaces:
AndCriterion
,OrCriterion
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.advancement.criteria.AdvancementCriterion
AdvancementCriterion.BaseBuilder<T extends AdvancementCriterion,
B extends AdvancementCriterion.BaseBuilder<T, B>>, AdvancementCriterion.Builder, AdvancementCriterion.Factory -
Method Summary
Modifier and TypeMethodDescriptioncriteria()
Gets the childrenAdvancementCriterion
s of thisOperatorCriterion
.Attempts to find all the childrenAdvancementCriterion
s with the specified name.Attempts to find the first childAdvancementCriterion
with the specified name.Gets the leafAdvancementCriterion
s.
-
Method Details
-
find
Attempts to find all the childrenAdvancementCriterion
s with the specified name. The children will be checked recursively.- Parameters:
name
- The name- Returns:
- The criteria
-
findFirst
Attempts to find the first childAdvancementCriterion
with the specified name. The children will be checked recursively, but direct children are prioritized.- Parameters:
name
- The name- Returns:
- The criterion
-
criteria
Collection<AdvancementCriterion> criteria()- Returns:
- The criteria
-
leafCriteria
Collection<AdvancementCriterion> leafCriteria()Gets the leafAdvancementCriterion
s. This means that there will never be anyOperatorCriterion
s in this list.- Returns:
- The leaf criteria
-