Class StargateSendMessagePortalEvent
java.lang.Object
org.bukkit.event.Event
org.sgrewritten.stargate.api.event.portal.StargatePortalEvent
org.sgrewritten.stargate.api.event.portal.CancellableStargatePortalEvent
org.sgrewritten.stargate.api.event.portal.message.StargateSendMessagePortalEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
- Direct Known Subclasses:
AsyncStargateSendMessagePortalEvent
,SyncStargateSendMessagePortalEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ModifierConstructorDescriptionprotected
StargateSendMessagePortalEvent
(Portal portal, org.bukkit.entity.Entity entity, MessageType type, StargateComponent message, boolean async) Instantiates a new stargate player event -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.Entity
getType()
void
setMessage
(StargateComponent message) Methods inherited from class org.sgrewritten.stargate.api.event.portal.CancellableStargatePortalEvent
isCancelled, setCancelled
Methods inherited from class org.sgrewritten.stargate.api.event.portal.StargatePortalEvent
getPortal
Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, getHandlers, isAsynchronous
-
Constructor Details
-
StargateSendMessagePortalEvent
protected StargateSendMessagePortalEvent(Portal portal, org.bukkit.entity.Entity entity, MessageType type, StargateComponent message, boolean async) Instantiates a new stargate player eventCan be called both synchronously and asynchronously!
- Parameters:
portal
-The portal involved in this stargate event
entity
-The entity receiving the message
type
-The type of message being sent
-
-
Method Details
-
getType
- Returns:
The type of message to send
-
getEntity
public org.bukkit.entity.Entity getEntity()- Returns:
The target entity
-
getMessage
- Returns:
The message that will be sent
-
setMessage
- Parameters:
message
-The message that will be sent
-