public class PlayerChangePositionEvent extends Event implements Cancellable
Constructor and Description |
---|
PlayerChangePositionEvent(ProxiedPlayer player,
Position movedFrom,
Position movedTo) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Position |
getMovedFrom()
The position the
ProxiedPlayer moved from. |
Position |
getMovedTo()
The position the
ProxiedPlayer moved to. |
ProxiedPlayer |
getPlayer()
The
ProxiedPlayer , which changed position. |
int |
hashCode() |
boolean |
isCancelled()
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 the
ProxiedPlayer moved to. |
String |
toString() |
public PlayerChangePositionEvent(ProxiedPlayer player, Position movedFrom, Position movedTo)
protected boolean canEqual(Object other)
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public ProxiedPlayer getPlayer()
ProxiedPlayer
, which changed position.public Position getMovedFrom()
ProxiedPlayer
moved from.public Position getMovedTo()
ProxiedPlayer
moved to.public void setCancelled(boolean cancelled)
Cancellable
setCancelled
in interface Cancellable
cancelled
- the state to setpublic void setMovedTo(Position movedTo)
ProxiedPlayer
moved to.Copyright © 2019–2022. All rights reserved.