Interface BukkitSyntaxInfos.Event.Builder<B extends BukkitSyntaxInfos.Event.Builder<B,E>,E extends SkriptEvent>
- Type Parameters:
B
- The type of builder being used.E
- The SkriptEvent class providing the implementation of the syntax info being built.
- All Superinterfaces:
Builder<SyntaxInfo.Builder<?,
,?>, SyntaxInfo<?>> SyntaxInfo.Builder<B,
E>
- Enclosing interface:
BukkitSyntaxInfos.Event<E extends SkriptEvent>
public static interface BukkitSyntaxInfos.Event.Builder<B extends BukkitSyntaxInfos.Event.Builder<B,E>,E extends SkriptEvent>
extends SyntaxInfo.Builder<B,E>
An Event-specific builder is used for constructing a new Event syntax info.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDescription
(String description) Adds a description line to the event's documentation.addDescription
(String... description) Adds lines of description to the event's documentation.addDescription
(Collection<String> description) Adds lines of description to the event's documentation.Adds an event to the event's documentation.Adds events to the event's documentation.addEvents
(Collection<Class<? extends org.bukkit.event.Event>> events) Adds events to the event's documentation.addExample
(String example) Adds an example to the event's documentation.addExamples
(String... examples) Adds examples to the event's documentation.addExamples
(Collection<String> examples) Adds examples to the event's documentation.addKeyword
(String keyword) Adds a keyword to the event's documentation.addKeywords
(String... keywords) Adds keywords to the event's documentation.addKeywords
(Collection<String> keywords) Adds keywords to the event's documentation.addRequiredPlugin
(String plugin) Adds a required plugin to event's documentation.addRequiredPlugins
(String... plugins) Adds required plugins to the event's documentation.addRequiredPlugins
(Collection<String> plugins) Adds required plugins to the event's documentation.build()
Builds a new syntax info from the set details.Removes all description lines from the event's documentation.Removes all events from the event's documentation.Removes all examples from the event's documentation.Removes all keywords from the event's documentation.Removes all required plugins from the event's documentation.documentationId
(String documentationId) Sets the documentation identifier the event's documentation will use.listeningBehavior
(SkriptEvent.ListeningBehavior listeningBehavior) Sets the listening behavior the event will use.Sets the "since" value the event's documentation will use.Methods inherited from interface org.skriptlang.skript.registration.SyntaxInfo.Builder
addPattern, addPatterns, addPatterns, applyTo, clearPatterns, origin, priority, supplier
-
Method Details
-
listeningBehavior
Sets the listening behavior the event will use. This determines when the event should trigger. By default, this isSkriptEvent.ListeningBehavior.UNCANCELLED
.- Parameters:
listeningBehavior
- The listening behavior to use.- Returns:
- This builder.
- See Also:
-
since
Sets the "since" value the event's documentation will use.- Parameters:
since
- The "since" value to use.- Returns:
- This builder.
- See Also:
-
documentationId
Sets the documentation identifier the event's documentation will use.- Parameters:
documentationId
- The documentation identifier to use.- Returns:
- This builder.
- See Also:
-
addDescription
Adds a description line to the event's documentation.- Parameters:
description
- The description line to add.- Returns:
- This builder.
- See Also:
-
addDescription
Adds lines of description to the event's documentation.- Parameters:
description
- The description lines to add.- Returns:
- This builder.
- See Also:
-
addDescription
Adds lines of description to the event's documentation.- Parameters:
description
- The description lines to add.- Returns:
- This builder.
- See Also:
-
clearDescription
Removes all description lines from the event's documentation.- Returns:
- This builder.
- See Also:
-
addExample
Adds an example to the event's documentation.- Parameters:
example
- The example to add.- Returns:
- This builder.
- See Also:
-
addExamples
Adds examples to the event's documentation.- Parameters:
examples
- The examples to add.- Returns:
- This builder.
- See Also:
-
addExamples
Adds examples to the event's documentation.- Parameters:
examples
- The examples to add.- Returns:
- This builder.
- See Also:
-
clearExamples
Removes all examples from the event's documentation.- Returns:
- This builder.
- See Also:
-
addKeyword
Adds a keyword to the event's documentation.- Parameters:
keyword
- The keyword to add.- Returns:
- This builder.
- See Also:
-
addKeywords
Adds keywords to the event's documentation.- Parameters:
keywords
- The keywords to add.- Returns:
- This builder.
- See Also:
-
addKeywords
Adds keywords to the event's documentation.- Parameters:
keywords
- The keywords to add.- Returns:
- This builder.
- See Also:
-
clearKeywords
Removes all keywords from the event's documentation.- Returns:
- This builder.
- See Also:
-
addRequiredPlugin
Adds a required plugin to event's documentation.- Parameters:
plugin
- The required plugin to add.- Returns:
- This builder.
- See Also:
-
addRequiredPlugins
Adds required plugins to the event's documentation.- Parameters:
plugins
- The required plugins to add.- Returns:
- This builder.
- See Also:
-
addRequiredPlugins
Adds required plugins to the event's documentation.- Parameters:
plugins
- The required plugins to add.- Returns:
- This builder.
- See Also:
-
clearRequiredPlugins
B clearRequiredPlugins()Removes all required plugins from the event's documentation.- Returns:
- This builder.
- See Also:
-
addEvent
Adds an event to the event's documentation.- Parameters:
event
- The event to add.- Returns:
- This builder.
- See Also:
-
addEvents
Adds events to the event's documentation.- Parameters:
events
- The events to add.- Returns:
- This builder.
- See Also:
-
addEvents
Adds events to the event's documentation.- Parameters:
events
- The events to add.- Returns:
- This builder.
- See Also:
-
clearEvents
Removes all events from the event's documentation.- Returns:
- This builder.
- See Also:
-
build
Builds a new syntax info from the set details.- Specified by:
build
in interfaceBuilder<B extends BukkitSyntaxInfos.Event.Builder<B,
E>, E extends SkriptEvent> - Specified by:
build
in interfaceSyntaxInfo.Builder<B extends BukkitSyntaxInfos.Event.Builder<B,
E>, E extends SkriptEvent> - Returns:
- A syntax info representing the class providing the syntax's implementation.
-