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_DOC
Fields inherited from class org.skriptlang.skript.lang.structure.StructureInfo
entryValidator, nodeType, simple
Fields inherited from class ch.njol.skript.lang.SyntaxElementInfo
elementClass, originClassPath, patterns
Fields inherited from interface org.skriptlang.skript.registration.SyntaxInfo
COMBINED, PATTERN_MATCHES_EVERYTHING, SIMPLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable String
Collection
<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, since
Methods 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:
toBuilder
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Specified by:
toBuilder
in interfaceSyntaxInfo<E extends SkriptEvent>
- Overrides:
toBuilder
in classSyntaxElementInfo<E extends SkriptEvent>
- Returns:
- A builder representing this SyntaxInfo.
-
listeningBehavior
- Specified by:
listeningBehavior
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- The listening behavior for the SkriptEvent. Determines when the event should trigger.
-
name
- Specified by:
name
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- The name of the
SkriptEvent
.
-
id
- Specified by:
id
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- A documentation-friendly version of
BukkitSyntaxInfos.Event.name()
.
-
documentationId
- Specified by:
documentationId
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- Documentation data. Used for identifying specific syntaxes in documentation.
- See Also:
-
since
- Specified by:
since
in 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:
description
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- Documentation data. A description of a syntax.
- See Also:
-
examples
- Specified by:
examples
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- Documentation data. Examples for using a syntax.
- See Also:
-
keywords
- Specified by:
keywords
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- Documentation data. Keywords are used by the search engine to provide relevant results.
- See Also:
-
requiredPlugins
- Specified by:
requiredPlugins
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- Documentation data. Plugins other than Skript that are required by a syntax.
- See Also:
-
events
- Specified by:
events
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- A collection of the classes representing the Bukkit events the
SkriptEvent
listens for.
-