Interface OperatorCriterion
-
- All Superinterfaces:
AdvancementCriterion,Nameable
- All Known Subinterfaces:
AndCriterion,OrCriterion
public interface OperatorCriterion extends AdvancementCriterion
-
-
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<AdvancementCriterion>criteria()Gets the childrenAdvancementCriterions of thisOperatorCriterion.Collection<AdvancementCriterion>find(String name)Attempts to find all the childrenAdvancementCriterions with the specified name.Optional<AdvancementCriterion>findFirst(String name)Attempts to find the first childAdvancementCriterionwith the specified name.Collection<AdvancementCriterion>leafCriteria()Gets the leafAdvancementCriterions.
-
-
-
Method Detail
-
find
Collection<AdvancementCriterion> find(String name)
Attempts to find all the childrenAdvancementCriterions with the specified name. The children will be checked recursively.- Parameters:
name- The name- Returns:
- The criteria
-
findFirst
Optional<AdvancementCriterion> findFirst(String name)
Attempts to find the first childAdvancementCriterionwith 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 leafAdvancementCriterions. This means that there will never be anyOperatorCriterions in this list.- Returns:
- The leaf criteria
-
-