public interface AndCriterion extends OperatorCriterion
AdvancementCriterion that represents an AND operation. All
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 AND operation with the
given
AdvancementCriterions. |
static AdvancementCriterion |
of(Iterable<AdvancementCriterion> criteria)
Attempts to build a new AND 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 AndCriterion,
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 AndCriterion,
this depends on if there are duplicate criteria, AdvancementCriterion.EMPTY
is present, or when no extra criteria are provided.
criteria - The other criteria