Class ZentrixEndPortalEvent

java.lang.Object
org.bukkit.event.Event
All Implemented Interfaces:
org.bukkit.event.Cancellable

public final class ZentrixEndPortalEvent extends ZentrixGameEvent implements org.bukkit.event.Cancellable
Fired for End portal travel inside one runtime match, before the player is moved.

ZentrixEndPortalEvent.Direction.ENTER_END destinations are the runtime End's standard arrival platform. ZentrixEndPortalEvent.Direction.EXIT_END destinations are the leaving player's resolved match-owned respawn point, or the paired game world's safe spawn.

  • Constructor Details

    • ZentrixEndPortalEvent

      public ZentrixEndPortalEvent(@NotNull @NotNull ZentrixGame game, @NotNull @NotNull org.bukkit.entity.Player player, @NotNull @NotNull ZentrixEndPortalEvent.Direction direction, @NotNull @NotNull org.bukkit.Location destination)
  • Method Details

    • getPlayer

      @NotNull public @NotNull org.bukkit.entity.Player getPlayer()
    • getDirection

      @NotNull public @NotNull ZentrixEndPortalEvent.Direction getDirection()
    • getDestination

      @NotNull public @NotNull org.bukkit.Location getDestination()
    • setDestination

      public void setDestination(@NotNull @NotNull org.bukkit.Location destination)
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Description copied from class: ZentrixGameEvent
      Gets the handler list for this event.
      Overrides:
      getHandlers in class ZentrixGameEvent
      Returns:
      The handler list
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()