Package ch.njol.skript.lang
Class SkriptEventInfo<E extends SkriptEvent>
java.lang.Object
ch.njol.skript.lang.SyntaxElementInfo<E>
ch.njol.skript.lang.SkriptEventInfo<E>
-
Field Summary
Modifier and TypeFieldDescriptionClass<? extends org.bukkit.event.Event>[]
static String[]
Use this asdescription(String...)
to prevent warnings about missing documentation.Fields inherited from class ch.njol.skript.lang.SyntaxElementInfo
c, originClassPath, patterns
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String... description)
Only used for Skript's documentation.documentationID(String id)
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()
getName()
@Nullable String[]
@Nullable String
getSince()
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> c, String originClassPath, Class<? extends org.bukkit.event.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
-c
- The SkriptEvent's classoriginClassPath
- The class path for the origin of this event.events
- The Bukkit-Events this SkriptEvent listens to
-
-
Method Details
-
description
Only used for Skript's documentation.- Parameters:
description
-- Returns:
- This SkriptEventInfo object
-
examples
Only used for Skript's documentation.- Parameters:
examples
-- Returns:
- This SkriptEventInfo object
-
since
Only used for Skript's documentation.- Parameters:
since
-- 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
-- Returns:
- This SkriptEventInfo object
-
requiredPlugins
Other plugin dependencies for this SkriptEvent. Only used for Skript's documentation.- Parameters:
pluginNames
-- Returns:
- This SkriptEventInfo object
-
getId
-
getName
-
getDescription
-
getExamples
-
getSince
-
getRequiredPlugins
-
getDocumentationID
-