Package ch.njol.skript.lang
Class SkriptEventInfo<E extends SkriptEvent>
java.lang.Object
ch.njol.skript.lang.SyntaxElementInfo<E>
org.skriptlang.skript.lang.structure.StructureInfo<E>
ch.njol.skript.lang.SkriptEventInfo<E>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Stringstatic final String[]Use this asdescription(String...)to prevent warnings about missing documentation.Fields inherited from class org.skriptlang.skript.lang.structure.StructureInfo
entryValidator, simpleFields inherited from class ch.njol.skript.lang.SyntaxElementInfo
elementClass, originClassPath, patterns -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondescription(String... description) Only used for Skript's documentation.A non-critical ID remapping for syntax elements register using the same class multiple times.Only used for Skript's documentation.@Nullable String[]@Nullable String@Nullable String[]getId()@Nullable String[]getName()@Nullable String[]@Nullable StringgetSince()Only used for Skript's documentation.listeningBehavior(SkriptEvent.ListeningBehavior listeningBehavior) Sets the default listening behavior for this SkriptEvent.requiredPlugins(String... pluginNames) Other plugin dependencies for this SkriptEvent.Only used for Skript's documentation.Methods inherited from class ch.njol.skript.lang.SyntaxElementInfo
getElementClass, getOriginClassPath, getPatterns
-
Field Details
-
events
-
name
-
NO_DOC
Use this asdescription(String...)to prevent warnings about missing documentation.
-
-
Constructor Details
-
SkriptEventInfo
public SkriptEventInfo(String name, String[] patterns, Class<E> eventClass, String originClassPath, Class<? extends Event>[] events) - Parameters:
name- Capitalised name of the event without leading "On" which is added automatically (Start the name with an asterisk to prevent this).patterns- The Skript patterns to use for this eventeventClass- The SkriptEvent's classoriginClassPath- The class path for the origin of this event.events- The Bukkit-Events this SkriptEvent listens to
-
-
Method Details
-
listeningBehavior
Sets the default listening behavior for this SkriptEvent. If omitted, the default behavior is to listen to uncancelled events.- Parameters:
listeningBehavior- The listening behavior of this SkriptEvent.- Returns:
- This SkriptEventInfo object
-
description
Only used for Skript's documentation.- Parameters:
description- The description of this event- Returns:
- This SkriptEventInfo object
-
examples
Only used for Skript's documentation.- Parameters:
examples- The examples for this event- Returns:
- This SkriptEventInfo object
-
keywords
Only used for Skript's documentation.- Parameters:
keywords- The keywords relating to this event- Returns:
- This SkriptEventInfo object
-
since
Only used for Skript's documentation.- Parameters:
since- The version this event was added in- Returns:
- This SkriptEventInfo object
-
documentationID
A non-critical ID remapping for syntax elements register using the same class multiple times.
Only used for Skript's documentation.- Parameters:
id- The ID to use for this syntax element- Returns:
- This SkriptEventInfo object
-
requiredPlugins
Other plugin dependencies for this SkriptEvent.
Only used for Skript's documentation.- Parameters:
pluginNames- The names of the plugins this event depends on- Returns:
- This SkriptEventInfo object
-
getId
-
getName
-
getListeningBehavior
-
getDescription
-
getExamples
-
getKeywords
-
getSince
-
getRequiredPlugins
-
getDocumentationID
-