Class StargateMessageEvent
java.lang.Object
org.bukkit.event.Event
org.sgrewritten.stargate.api.event.StargateMessageEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class StargateMessageEvent
extends org.bukkit.event.Event
implements org.bukkit.event.Cancellable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.bukkit.event.HandlerList
Gets a handler-list containing all event handlers@NotNull org.bukkit.event.HandlerList
boolean
void
setCancelled
(boolean cancelled) void
setMessage
(StargateComponent message) Change the message that is going to be sentMethods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
StargateMessageEvent
- Parameters:
message
-The message to be sent
-
-
Method Details
-
getMessage
- Returns:
The message that is going to be sent
-
setMessage
Change the message that is going to be sent- Parameters:
message
-New message to send
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getHandlers
@NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlers
in classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList()Gets a handler-list containing all event handlers- Returns:
A handler-list with all event handlers
-