Interface AndCriterion
-
- All Superinterfaces:
AdvancementCriterion,Nameable,OperatorCriterion
public interface AndCriterion extends OperatorCriterion
AAdvancementCriterionthat represents an AND operation. All the criteria should betruein order for the final result to betrue.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceAndCriterion.Factory-
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
-
-
Method Summary
Static Methods Modifier and Type Method Description static AdvancementCriterionof(Iterable<AdvancementCriterion> criteria)Attempts to build a new AND operation with the givenAdvancementCriterions.static AdvancementCriterionof(AdvancementCriterion... criteria)Attempts to build a new AND operation with the givenAdvancementCriterions.-
Methods inherited from interface org.spongepowered.api.advancement.criteria.AdvancementCriterion
and, and, or, or, trigger
-
Methods inherited from interface org.spongepowered.api.advancement.criteria.OperatorCriterion
criteria, find, findFirst, leafCriteria
-
-
-
-
Method Detail
-
of
static AdvancementCriterion of(AdvancementCriterion... criteria)
Attempts to build a new AND operation with the givenAdvancementCriterions.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.- Parameters:
criteria- The other criteria- Returns:
- The AND operation
-
of
static AdvancementCriterion of(Iterable<AdvancementCriterion> criteria)
Attempts to build a new AND operation with the givenAdvancementCriterions.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.- Parameters:
criteria- The other criteria- Returns:
- The AND operation
-
-