Package ch.njol.skript.classes
Class AnyInfo<Type extends AnyProvider>
java.lang.Object
ch.njol.skript.classes.ClassInfo<Type>
ch.njol.skript.classes.AnyInfo<Type>
- All Implemented Interfaces:
Debuggable
A special kind of
ClassInfo
for dealing with 'any'-accepting types.
These auto-generate their user patterns (e.g. named
-> any named thing
).- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class ch.njol.skript.classes.ClassInfo
after, after, before, before, changer, clone, cloner, defaultExpression, description, documentationId, examples, getC, getChanger, getCloner, getCodeName, getDefaultExpression, getDescription, getDocName, getDocumentationID, getExamples, getName, getParser, getRequiredPlugins, getSerializeAs, getSerializer, getSince, getSupplier, getUsage, getUserInputPatterns, hasDocs, isValidCodeName, matchesUserInput, name, parser, requiredPlugins, serializeAs, serializer, since, supplier, supplier, toString, toString, toString, usage
-
Constructor Details
-
AnyInfo
- Parameters:
c
- The classcodeName
- The name used in patterns
-
-
Method Details
-
user
- Overrides:
user
in classClassInfo<Type extends AnyProvider>
- Parameters:
userInputPatterns
- Regex patterns to match this class, e.g. in the expressions loop-[type], random [type] out of ..., or as command arguments. These patterns must be english and match singular and plural.- Throws:
PatternSyntaxException
- If any of the patterns' syntaxes is invalid
-