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
ConstructorDescriptionTypePatternElement(ClassInfo<?>[] classes, boolean[] isPlural, boolean isNullable, int flagMask, int time, int expressionIndex)
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypePatternElement
fromString(String s, int expressionIndex)
@Nullable MatchResult
match(String expr, MatchResult matchResult)
toString()
Methods inherited from class ch.njol.skript.patterns.PatternElement
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
-