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
ConstructorsConstructorDescriptionPlayerChangePositionEvent(ProxiedPlayer player, Position movedFrom, Position movedTo) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe position theProxiedPlayermoved from.The position theProxiedPlayermoved to.TheProxiedPlayer, which changed position.inthashCode()booleanGet whether or not this event is cancelled.voidsetCancelled(boolean cancelled) Sets the cancelled state of this event.voidsetMovedTo(Position movedTo) The position theProxiedPlayermoved to.toString()
-
Constructor Details
-
PlayerChangePositionEvent
-
-
Method Details
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode() -
isCancelled
public boolean isCancelled()Description copied from interface:CancellableGet whether or not this event is cancelled.- Specified by:
isCancelledin interfaceCancellable- Returns:
- the cancelled state of this event
-
getPlayer
TheProxiedPlayer, which changed position. -
getMovedFrom
The position theProxiedPlayermoved from. -
getMovedTo
The position theProxiedPlayermoved to. -
setCancelled
public void setCancelled(boolean cancelled) Description copied from interface:CancellableSets the cancelled state of this event.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancelled- the state to set
-
setMovedTo
The position theProxiedPlayermoved to.
-