public interface OperatorCriterion extends AdvancementCriterion
AdvancementCriterion.BaseBuilder<T extends AdvancementCriterion,B extends AdvancementCriterion.BaseBuilder<T,B>>, AdvancementCriterion.Builder
DUMMY, EMPTY
Modifier and Type | Method and Description |
---|---|
Collection<AdvancementCriterion> |
find(String name)
Attempts to find all the children
AdvancementCriterion s
with the specified name. |
Optional<AdvancementCriterion> |
findFirst(String name)
Attempts to find the first child
AdvancementCriterion with
the specified name. |
Collection<AdvancementCriterion> |
getCriteria()
Gets the children
AdvancementCriterion s of this
OperatorCriterion . |
Collection<AdvancementCriterion> |
getLeafCriteria()
Gets the leaf
AdvancementCriterion s. |
and, and, builder, getName, getTrigger, or, or
Collection<AdvancementCriterion> find(String name)
AdvancementCriterion
s
with the specified name. The children will be checked recursively.name
- The nameOptional<AdvancementCriterion> findFirst(String name)
AdvancementCriterion
with
the specified name. The children will be checked recursively, but
direct children are prioritized.name
- The nameCollection<AdvancementCriterion> getCriteria()
Collection<AdvancementCriterion> getLeafCriteria()
AdvancementCriterion
s. This means that there will
never be any OperatorCriterion
s in this list.