Class SkriptRegistration.SyntaxRegistrar<C extends SyntaxElement>
java.lang.Object
io.github.syst3ms.skriptparser.registration.SkriptRegistration.SyntaxRegistrar<C>
- All Implemented Interfaces:
SkriptRegistration.Registrar
- Direct Known Subclasses:
SkriptRegistration.EffectRegistrar, SkriptRegistration.EventRegistrar, SkriptRegistration.ExpressionRegistrar, SkriptRegistration.SectionRegistrar
- Enclosing class:
SkriptRegistration
public abstract class SkriptRegistration.SyntaxRegistrar<C extends SyntaxElement>
extends Object
implements SkriptRegistration.Registrar
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddPatterns(String... patterns) Adds patterns to the current syntaxdescription(String... description) noDoc()protected List<PatternElement> setPriority(int priority) Sets the priority of the current syntax.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SkriptRegistration.Registrar
register
-
Field Details
-
c
-
patterns
-
priority
protected int priority -
data
-
documentation
-
-
Method Details
-
addPatterns
Adds patterns to the current syntax- Parameters:
patterns- the patterns to add- Returns:
- the registrar
-
noDoc
-
name
-
description
-
examples
-
since
-
setPriority
Sets the priority of the current syntax. Default is 5.- Parameters:
priority- the priority- Returns:
- the registrar
-
addData
-
parsePatterns
-