Package ch.njol.skript.patterns
Class TypePatternElement
java.lang.Object
ch.njol.skript.patterns.PatternElement
ch.njol.skript.patterns.TypePatternElement
A
PatternElement that contains a type to be matched with an expressions, for example %number%.-
Constructor Summary
ConstructorsConstructorDescriptionTypePatternElement(ClassInfo<?>[] classes, boolean[] isPlural, boolean isNullable, int flagMask, int time, int expressionIndex) -
Method Summary
Modifier and TypeMethodDescriptionstatic TypePatternElementfromString(String string, int expressionIndex) getCombinations(boolean clean) Gets the combinations available to thisPatternElement.@Nullable MatchResultmatch(String expr, MatchResult matchResult) toString()Methods inherited from class ch.njol.skript.patterns.PatternElement
getAllCombinations, matchNext, toFullString
-
Constructor Details
-
TypePatternElement
public TypePatternElement(ClassInfo<?>[] classes, boolean[] isPlural, boolean isNullable, int flagMask, int time, int expressionIndex)
-
-
Method Details
-
fromString
-
match
- Specified by:
matchin classPatternElement
-
toString
- Specified by:
toStringin classPatternElement
-
getExprInfo
-
getCombinations
Gets the combinations available to thisPatternElement.- Specified by:
getCombinationsin classPatternElement- Parameters:
clean- Whether this type should be replaced with%*%if it's not literal.- Returns:
- The combinations.
-