Class PlayerChangePositionEvent

java.lang.Object
net.md_5.bungee.api.plugin.Event
com.mrivanplays.ivancord.api.event.PlayerChangePositionEvent
All Implemented Interfaces:
Cancellable

public class PlayerChangePositionEvent extends Event implements Cancellable
Event, called when player is about to change his position.
  • Constructor Details

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: Cancellable
      Get whether or not this event is cancelled.
      Specified by:
      isCancelled in interface Cancellable
      Returns:
      the cancelled state of this event
    • getPlayer

      public ProxiedPlayer getPlayer()
      The ProxiedPlayer, which changed position.
    • getMovedFrom

      public Position getMovedFrom()
      The position the ProxiedPlayer moved from.
    • getMovedTo

      public Position getMovedTo()
      The position the ProxiedPlayer moved to.
    • setCancelled

      public void setCancelled(boolean cancelled)
      Description copied from interface: Cancellable
      Sets the cancelled state of this event.
      Specified by:
      setCancelled in interface Cancellable
      Parameters:
      cancelled - the state to set
    • setMovedTo

      public void setMovedTo(Position movedTo)
      The position the ProxiedPlayer moved to.