public interface MovementHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onUpdateLocation(Player player,
Location from,
Location to,
MovementPacketWrapper movementPacketWrapper)
The method that will be called when a player try to move
You can either listen PacketPlayInFlying thanks to NMS Packet or reflections
Using this method is preferable to PlayerMoveEvent
|
void |
onUpdateRotation(Player player,
Location from,
Location to,
MovementPacketWrapper movementPacketWrapper)
The method that will be called when a player try to rotate his head
You can either listen PacketPlayInFlying thanks to NMS Packet or reflections
Using this method is preferable to PlayerMoveEvent
|
void onUpdateLocation(Player player, Location from, Location to, MovementPacketWrapper movementPacketWrapper)
player - The Playerfrom - Original player locationto - New updated player locationmovementPacketWrapper - The Wrapper for PacketPlayInFlyingvoid onUpdateRotation(Player player, Location from, Location to, MovementPacketWrapper movementPacketWrapper)
player - The Playerfrom - Original player locationto - New updated player locationmovementPacketWrapper - The Wrapper for PacketPlayInFlyingCopyright © 2022. All rights reserved.