Class SkriptRegistration.StructureRegistrar<T extends Structure>
java.lang.Object
io.github.syst3ms.skriptparser.registration.SkriptRegistration.SyntaxRegistrar<T>
io.github.syst3ms.skriptparser.registration.SkriptRegistration.StructureRegistrar<T>
- All Implemented Interfaces:
SkriptRegistration.Registrar
- Enclosing class:
SkriptRegistration
public class SkriptRegistration.StructureRegistrar<T extends Structure>
extends SkriptRegistration.SyntaxRegistrar<T>
-
Field Summary
Fields inherited from class SkriptRegistration.SyntaxRegistrar
c, data, patterns, priority -
Method Summary
Modifier and TypeMethodDescriptiondescription(String... description) The description of this structure for documentation.Examples of this structure for documentation.Mark this structure as experimental for documentation.experimental(String message) Mark this structure as experimental with a custom message for documentation.The name of this structure for documentation.noDoc()Prevent documentation generation for this structure.voidregister()Adds this structure to the list of currently registered syntaxessetHandledContexts(Class<? extends TriggerContext>... contexts) Set the contexts this structure can handleThe version this was added in for documentation.Methods inherited from class SkriptRegistration.SyntaxRegistrar
addData, addPatterns, parsePatterns, setPriority
-
Method Details
-
setHandledContexts
@SafeVarargs public final SkriptRegistration.StructureRegistrar<T> setHandledContexts(Class<? extends TriggerContext>... contexts) Set the contexts this structure can handle- Parameters:
contexts- the contexts- Returns:
- The registrar
-
noDoc
Prevent documentation generation for this structure.- Overrides:
noDocin classSkriptRegistration.SyntaxRegistrar<T extends Structure>- Returns:
- The registrar
-
experimental
Mark this structure as experimental for documentation.- Overrides:
experimentalin classSkriptRegistration.SyntaxRegistrar<T extends Structure>- Returns:
- The registrar
-
experimental
Mark this structure as experimental with a custom message for documentation.- Overrides:
experimentalin classSkriptRegistration.SyntaxRegistrar<T extends Structure>- Parameters:
message- The custom message- Returns:
- The registrar
-
name
The name of this structure for documentation.- Overrides:
namein classSkriptRegistration.SyntaxRegistrar<T extends Structure>- Parameters:
name- Name of the structure- Returns:
- The registrar
-
description
The description of this structure for documentation.- Overrides:
descriptionin classSkriptRegistration.SyntaxRegistrar<T extends Structure>- Parameters:
description- The description of the structure- Returns:
- The registrar
-
examples
Examples of this structure for documentation.- Overrides:
examplesin classSkriptRegistration.SyntaxRegistrar<T extends Structure>- Parameters:
examples- The examples of the structure- Returns:
- The registrar
-
since
The version this was added in for documentation.- Overrides:
sincein classSkriptRegistration.SyntaxRegistrar<T extends Structure>- Parameters:
since- The version this was added in- Returns:
- The registrar
-
register
public void register()Adds this structure to the list of currently registered syntaxes
-