Class StargateSendMessagePortalEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable
Direct Known Subclasses:
AsyncStargateSendMessagePortalEvent, SyncStargateSendMessagePortalEvent

public abstract class StargateSendMessagePortalEvent extends CancellableStargatePortalEvent
  • Constructor Details

    • StargateSendMessagePortalEvent

      protected StargateSendMessagePortalEvent(Portal portal, org.bukkit.entity.Entity entity, MessageType type, StargateComponent message, boolean async)
      Instantiates a new stargate player event

      Can 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

      public MessageType getType()
      Returns:

      The type of message to send

    • getEntity

      public org.bukkit.entity.Entity getEntity()
      Returns:

      The target entity

    • getMessage

      public Holder<StargateComponent> getMessage()
      Returns:

      The message that will be sent

    • setMessage

      public void setMessage(StargateComponent message)
      Parameters:
      message -

      The message that will be sent