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 TypePatternElement
fromString
(String string, int expressionIndex) getCombinations
(boolean clean) Gets the combinations available to thisPatternElement
.@Nullable MatchResult
match
(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:
match
in classPatternElement
-
toString
- Specified by:
toString
in classPatternElement
-
getExprInfo
-
getCombinations
Gets the combinations available to thisPatternElement
.- Specified by:
getCombinations
in classPatternElement
- Parameters:
clean
- Whether this type should be replaced with%*%
if it's not literal.- Returns:
- The combinations.
-