Interface BukkitSyntaxInfos.Event<E extends SkriptEvent>
- Type Parameters:
E- The class providing the implementation of the SkriptEvent this info represents.
- All Superinterfaces:
DefaultSyntaxInfos,SyntaxInfo<E>
- All Known Implementing Classes:
SkriptEventInfo.ModernSkriptEventInfo
- Enclosing class:
BukkitSyntaxInfos
A syntax info to be used for
SkriptEvents.
It contains additional details including the Bukkit events represented along with documentation data.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBukkitSyntaxInfos.Event.Builder<B extends BukkitSyntaxInfos.Event.Builder<B,E>, E extends SkriptEvent> An Event-specific builder is used for constructing a new Event syntax info.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 interface org.skriptlang.skript.registration.SyntaxInfo
COMBINED, PATTERN_MATCHES_EVERYTHING, SIMPLE -
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends SkriptEvent>
BukkitSyntaxInfos.Event.Builder<? extends BukkitSyntaxInfos.Event.Builder<?, E>, E> @Nullable StringCollection<Class<? extends org.bukkit.event.Event>> events()examples()id()keywords()name()since()BukkitSyntaxInfos.Event.Builder<? extends BukkitSyntaxInfos.Event.Builder<?, E>, E>
-
Method Details
-
builder
static <E extends SkriptEvent> BukkitSyntaxInfos.Event.Builder<? extends BukkitSyntaxInfos.Event.Builder<?,E>, builderE> (Class<E> eventClass, String name) - Parameters:
eventClass- The Structure class the info will represent.name- The name of the SkriptEvent.- Returns:
- A Structure-specific builder for creating a syntax info representing
type.
-
toBuilder
@Contract("-> new") BukkitSyntaxInfos.Event.Builder<? extends BukkitSyntaxInfos.Event.Builder<?,E>, toBuilder()E> - Specified by:
toBuilderin interfaceSyntaxInfo<E extends SkriptEvent>- Returns:
- A builder representing this SyntaxInfo.
-
listeningBehavior
SkriptEvent.ListeningBehavior listeningBehavior()- Returns:
- The listening behavior for the SkriptEvent. Determines when the event should trigger.
-
name
String name()- Returns:
- The name of the
SkriptEvent.
-
id
String id()- Returns:
- A documentation-friendly version of
name().
-
documentationId
- Returns:
- Documentation data. Used for identifying specific syntaxes in documentation.
- See Also:
-
since
Collection<String> since()- Returns:
- Documentation data. Represents the versions of the plugin in which a syntax was added or modified.
- See Also:
-
description
Collection<String> description()- Returns:
- Documentation data. A description of a syntax.
- See Also:
-
examples
Collection<String> examples()- Returns:
- Documentation data. Examples for using a syntax.
- See Also:
-
keywords
Collection<String> keywords()- Returns:
- Documentation data. Keywords are used by the search engine to provide relevant results.
- See Also:
-
requiredPlugins
Collection<String> requiredPlugins()- Returns:
- Documentation data. Plugins other than Skript that are required by a syntax.
- See Also:
-
events
Collection<Class<? extends org.bukkit.event.Event>> events()- Returns:
- A collection of the classes representing the Bukkit events the
SkriptEventlistens for.
-