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 s, int expressionIndex)@Nullable MatchResultmatch(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:
matchin classPatternElement
-
toString
- Specified by:
toStringin classPatternElement
-