Class PlayerChangePositionEvent
java.lang.Object
net.md_5.bungee.api.plugin.Event
com.mrivanplays.ivancord.api.event.PlayerChangePositionEvent
- All Implemented Interfaces:
Cancellable
Event, called when player is about to change his position.
-
Constructor Summary
ConstructorDescriptionPlayerChangePositionEvent
(ProxiedPlayer player, Position movedFrom, Position movedTo) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The position theProxiedPlayer
moved from.The position theProxiedPlayer
moved to.TheProxiedPlayer
, which changed position.int
hashCode()
boolean
Get whether or not this event is cancelled.void
setCancelled
(boolean cancelled) Sets the cancelled state of this event.void
setMovedTo
(Position movedTo) The position theProxiedPlayer
moved to.toString()
-
Constructor Details
-
PlayerChangePositionEvent
-
-
Method Details
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
isCancelled
public boolean isCancelled()Description copied from interface:Cancellable
Get whether or not this event is cancelled.- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- the cancelled state of this event
-
getPlayer
TheProxiedPlayer
, which changed position. -
getMovedFrom
The position theProxiedPlayer
moved from. -
getMovedTo
The position theProxiedPlayer
moved to. -
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:Cancellable
Sets the cancelled state of this event.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancelled
- the state to set
-
setMovedTo
The position theProxiedPlayer
moved to.
-