Class PlayerChangeSectionEvent

java.lang.Object
org.bukkit.event.Event
fr.prodrivers.bukkit.commons.events.PlayerChangeSectionEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class PlayerChangeSectionEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Event triggered when a player moves from one section to another, before the moving is actually done.
  • Method Details

    • getPlayer

      public org.bukkit.entity.Player getPlayer()
      Get the player that is moving.
      Returns:
      Player that is moving
    • getLeftSection

      public Section getLeftSection()
      Get the left section.
      Returns:
      Left section
    • getTargetSection

      public Section getTargetSection()
      Get the target section.
      Returns:
      Target section
    • 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

      public @NonNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()
      Return handlers of this event. Mandated by Bukkit.
      Returns:
      Handler list