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>
,Builder.Buildable<SyntaxInfo.Builder<?,
?>, SyntaxInfo<?>>
- 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> -
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
-
Method Summary
Modifier and TypeMethodDescriptionBukkitSyntaxInfos.Event.Builder
<? extends BukkitSyntaxInfos.Event.Builder<?, E>, E> builder()
@Nullable String
Collection
<Class<? extends org.bukkit.event.Event>> events()
examples()
id()
instance()
keywords()
name()
origin()
@Unmodifiable Collection
<String> patterns()
priority()
@Nullable String
since()
type()
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
Methods inherited from class ch.njol.skript.lang.SyntaxElementInfo
fromModern, getElementClass, getOriginClassPath, getPatterns
-
Constructor Details
-
ModernSkriptEventInfo
-
-
Method Details
-
builder
Description copied from interface:BukkitSyntaxInfos.Event
- Specified by:
builder
in interfaceBuilder.Buildable<SyntaxInfo.Builder<?,
?>, SyntaxInfo<?>> - Specified by:
builder
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Specified by:
builder
in interfaceSyntaxInfo<E extends SkriptEvent>
- Returns:
- A builder representing this object.
-
origin
- Specified by:
origin
in interfaceSyntaxInfo<E extends SkriptEvent>
- Returns:
- The origin of this syntax.
-
type
- Specified by:
type
in interfaceSyntaxInfo<E extends SkriptEvent>
- Returns:
- The class providing the implementation of this syntax.
-
instance
- Specified by:
instance
in interfaceSyntaxInfo<E extends SkriptEvent>
- Returns:
- A new instance of the class providing the implementation of this syntax.
-
patterns
- Specified by:
patterns
in interfaceSyntaxInfo<E extends SkriptEvent>
- Returns:
- The patterns of this syntax.
-
priority
- Specified by:
priority
in interfaceSyntaxInfo<E extends SkriptEvent>
- Returns:
- The priority of this syntax, which dictates its position for matching during parsing.
-
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()
.
-
since
- Specified by:
since
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- Documentation data. Represents the version of the plugin in which a syntax was added.
- See Also:
-
documentationId
- Specified by:
documentationId
in interfaceBukkitSyntaxInfos.Event<E extends SkriptEvent>
- Returns:
- Documentation data. Used for identifying specific syntaxes in documentation.
- 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.
-