Interface EventRestrictedSyntax
- All Known Implementing Classes:
CondBrewingConsume, EffBrewingConsume, ExprBrewingResults, ExprBroadcastMessage, ExprChatFormat, ExprChatMessage, ExprChatRecipients, ExprCreatedDamageSource, ExprDeathMessage, ExprJoinMessage, ExprKickMessage, ExprOnScreenKickMessage, ExprPickedItem, ExprQuitMessage, ExprSkriptPotionEffect
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A syntax element that restricts the events it can be used in.
-
Method Summary
Modifier and TypeMethodDescriptionClass<? extends org.bukkit.event.Event>[]Returns all supported events for this syntax element.
-
Method Details
-
supportedEvents
Class<? extends org.bukkit.event.Event>[] supportedEvents()Returns all supported events for this syntax element.Before
SyntaxElement.init(Expression[], int, Kleenean, SkriptParser.ParseResult)is called, checks to see if the current event is supported by this syntax element. If it is not, an error will be printed and the syntax element will not be initialised.- Returns:
- All supported event classes.
- See Also:
-