Package | Description |
---|---|
org.imanity.imanityspigot.movement |
Classes for the MovementHandler / Listener from ImanitySpigot3
|
Modifier and Type | Method and Description |
---|---|
void |
MovementHandler.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 |
MovementHandler.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
|
Copyright © 2022. All rights reserved.