Package ch.njol.skript.patterns
Class ChoicePatternElement
java.lang.Object
ch.njol.skript.patterns.PatternElement
ch.njol.skript.patterns.ChoicePatternElement
A
PatternElement that has multiple options, for example hello|world.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(PatternElement patternElement) getCombinations(boolean clean) Gets the combinations available to thisPatternElement.getLast()@Nullable MatchResultmatch(String expr, MatchResult matchResult) voidsetLast(PatternElement patternElement) toString()Methods inherited from class ch.njol.skript.patterns.PatternElement
getAllCombinations, matchNext, toFullString
-
Constructor Details
-
ChoicePatternElement
public ChoicePatternElement()
-
-
Method Details
-
add
-
getLast
-
setLast
-
getPatternElements
-
match
- Specified by:
matchin classPatternElement
-
toString
- Specified by:
toStringin classPatternElement
-
getCombinations
Description copied from class:PatternElementGets the combinations available to thisPatternElement.- Specified by:
getCombinationsin classPatternElement- Parameters:
clean- Whether unnecessary data, determined by each implementation, should be excluded from the combinations.- Returns:
- The combinations.
-