Package ch.njol.skript.lang
Class SkriptEventInfo.ModernSkriptEventInfo<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>
ch.njol.skript.lang.SkriptEventInfo.ModernSkriptEventInfo<E>
- All Implemented Interfaces:
BukkitSyntaxInfos.Event<E>,DefaultSyntaxInfos,SyntaxInfo<E>
- Enclosing class:
SkriptEventInfo<E extends SkriptEvent>
@Internal
@Experimental
public static final class SkriptEventInfo.ModernSkriptEventInfo<E extends SkriptEvent>
extends SkriptEventInfo<E>
implements BukkitSyntaxInfos.Event<E>
Internal wrapper class for providing compatibility with the new Registration API.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.njol.skript.lang.SkriptEventInfo
SkriptEventInfo.ModernSkriptEventInfo<E extends SkriptEvent>Nested classes/interfaces inherited from interface org.skriptlang.skript.bukkit.registration.BukkitSyntaxInfos.Event
BukkitSyntaxInfos.Event.Builder<B extends BukkitSyntaxInfos.Event.Builder<B,E>, E extends SkriptEvent> Nested classes/interfaces inherited from interface org.skriptlang.skript.registration.DefaultSyntaxInfos
DefaultSyntaxInfos.Expression<E extends Expression<R>,R>, DefaultSyntaxInfos.Structure<E extends Structure> Nested classes/interfaces inherited from interface org.skriptlang.skript.registration.SyntaxInfo
SyntaxInfo.Builder<B extends SyntaxInfo.Builder<B,E>, E extends SyntaxElement> -
Field Summary
Fields inherited from class ch.njol.skript.lang.SkriptEventInfo
events, name, NO_DOCFields inherited from class org.skriptlang.skript.lang.structure.StructureInfo
entryValidator, nodeType, simpleFields inherited from class ch.njol.skript.lang.SyntaxElementInfo
elementClass, originClassPath, patternsFields inherited from interface org.skriptlang.skript.registration.SyntaxInfo
COMBINED, PATTERN_MATCHES_EVERYTHING, SIMPLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringCollection<Class<? extends org.bukkit.event.Event>> events()examples()id()keywords()name()since()BukkitSyntaxInfos.Event.Builder<? extends BukkitSyntaxInfos.Event.Builder<?, E>, E> Methods inherited from class ch.njol.skript.lang.SkriptEventInfo
description, documentationID, examples, getDescription, getDocumentationID, getExamples, getId, getKeywords, getListeningBehavior, getName, getRequiredPlugins, getSince, keywords, listeningBehavior, requiredPlugins, since, sinceMethods inherited from class ch.njol.skript.lang.SyntaxElementInfo
fromModern, getElementClass, getOriginClassPath, getPatterns, instance, origin, patterns, priority, type
-
Constructor Details
-
ModernSkriptEventInfo
-
-
Method Details
-
toBuilder
public BukkitSyntaxInfos.Event.Builder<? extends BukkitSyntaxInfos.Event.Builder<?,E>, toBuilder()E> Description copied from interface:BukkitSyntaxInfos.Event- Specified by:
toBuilderin interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Specified by:
toBuilderin interfaceSyntaxInfo<E extends SkriptEvent>- Overrides:
toBuilderin classSyntaxElementInfo<E extends SkriptEvent>- Returns:
- A builder representing this SyntaxInfo.
-
listeningBehavior
- Specified by:
listeningBehaviorin interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Returns:
- The listening behavior for the SkriptEvent. Determines when the event should trigger.
-
name
- Specified by:
namein interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Returns:
- The name of the
SkriptEvent.
-
id
- Specified by:
idin interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Returns:
- A documentation-friendly version of
BukkitSyntaxInfos.Event.name().
-
documentationId
- Specified by:
documentationIdin interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Returns:
- Documentation data. Used for identifying specific syntaxes in documentation.
- See Also:
-
since
- Specified by:
sincein interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Returns:
- Documentation data. Represents the versions of the plugin in which a syntax was added or modified.
- See Also:
-
description
- Specified by:
descriptionin interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Returns:
- Documentation data. A description of a syntax.
- See Also:
-
examples
- Specified by:
examplesin interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Returns:
- Documentation data. Examples for using a syntax.
- See Also:
-
keywords
- Specified by:
keywordsin interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Returns:
- Documentation data. Keywords are used by the search engine to provide relevant results.
- See Also:
-
requiredPlugins
- Specified by:
requiredPluginsin interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Returns:
- Documentation data. Plugins other than Skript that are required by a syntax.
- See Also:
-
events
- Specified by:
eventsin interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>- Returns:
- A collection of the classes representing the Bukkit events the
SkriptEventlistens for.
-