public interface OrCriterion extends OperatorCriterion
AdvancementCriterion
that represents an OR operation. One the criteria
should be true
in order for the final result to be true
.AdvancementCriterion.BaseBuilder<T extends AdvancementCriterion,B extends AdvancementCriterion.BaseBuilder<T,B>>, AdvancementCriterion.Builder
DUMMY, EMPTY
Modifier and Type | Method and Description |
---|---|
static AdvancementCriterion |
of(AdvancementCriterion... criteria)
Attempts to build a new OR operation with the
given
AdvancementCriterion s. |
static AdvancementCriterion |
of(Iterable<AdvancementCriterion> criteria)
Attempts to build a new OR operation with the
given
AdvancementCriterion s. |
find, findFirst, getCriteria, getLeafCriteria
and, and, builder, getName, getTrigger, or, or
static AdvancementCriterion of(AdvancementCriterion... criteria)
AdvancementCriterion
s.
There is no guarantee that the returned extends OrCriterion
,
this depends on if there are duplicate criteria, AdvancementCriterion.EMPTY
is present, or when no extra criteria are provided.
criteria
- The other criteriastatic AdvancementCriterion of(Iterable<AdvancementCriterion> criteria)
AdvancementCriterion
s.
There is no guarantee that the returned extends OrCriterion
,
this depends on if there are duplicate criteria, AdvancementCriterion.EMPTY
is present, or when no extra criteria are provided.
criteria
- The other criteria