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 java.util.Collection<AdvancementCriterion>
criteria()
Gets the childrenAdvancementCriterion
s of thisOperatorCriterion
.java.util.Collection<AdvancementCriterion>
find(java.lang.String name)
Attempts to find all the childrenAdvancementCriterion
s with the specified name.java.util.Optional<AdvancementCriterion>
findFirst(java.lang.String name)
Attempts to find the first childAdvancementCriterion
with the specified name.java.util.Collection<AdvancementCriterion>
leafCriteria()
Gets the leafAdvancementCriterion
s.
-
-
-
Method Detail
-
find
java.util.Collection<AdvancementCriterion> find(java.lang.String name)
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
java.util.Optional<AdvancementCriterion> findFirst(java.lang.String name)
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
java.util.Collection<AdvancementCriterion> criteria()
- Returns:
- The criteria
-
leafCriteria
java.util.Collection<AdvancementCriterion> leafCriteria()
Gets the leafAdvancementCriterion
s. This means that there will never be anyOperatorCriterion
s in this list.- Returns:
- The leaf criteria
-
-