Interface OrCriterion
- All Superinterfaces:
AdvancementCriterion
,Nameable
,OperatorCriterion
A
AdvancementCriterion
that represents an OR operation. One the criteria
should be true
in order for the final result to be true
.-
Nested Class Summary
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
Modifier and TypeMethodDescriptionstatic AdvancementCriterion
of
(Iterable<AdvancementCriterion> criteria) Attempts to build a new OR operation with the givenAdvancementCriterion
s.static AdvancementCriterion
of
(AdvancementCriterion... criteria) Attempts to build a new OR operation with the givenAdvancementCriterion
s.Methods inherited from interface org.spongepowered.api.advancement.criteria.AdvancementCriterion
and, and, or, or, trigger, type
Methods inherited from interface org.spongepowered.api.advancement.criteria.OperatorCriterion
criteria, find, findFirst, leafCriteria
-
Method Details
-
of
Attempts to build a new OR operation with the givenAdvancementCriterion
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.- Parameters:
criteria
- The other criteria- Returns:
- The OR operation
-
of
Attempts to build a new OR operation with the givenAdvancementCriterion
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.- Parameters:
criteria
- The other criteria- Returns:
- The OR operation
-