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.BuilderDUMMY, EMPTY| Modifier and Type | Method and Description |
|---|---|
static AdvancementCriterion |
of(AdvancementCriterion... criteria)
Attempts to build a new OR operation with the
given
AdvancementCriterions. |
static AdvancementCriterion |
of(Iterable<AdvancementCriterion> criteria)
Attempts to build a new OR operation with the
given
AdvancementCriterions. |
find, findFirst, getCriteria, getLeafCriteriaand, and, builder, getName, getTrigger, or, orstatic AdvancementCriterion of(AdvancementCriterion... criteria)
AdvancementCriterions.
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)
AdvancementCriterions.
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