Pre motion event
This page goes over the onPreMotion event.
This event is cancellable.
This event will be called before the motion is applied. Handler name is onPreMotion.
setPosX(posX): Undefined
setPosX(posX): UndefinedposX
Number
Player position X to set.
Sets the event position on the X axis.
setPosY(posY): Undefined
setPosY(posY): UndefinedposY
Number
Player position Y to set.
Sets the event position on the Y axis.
setPosX(posZ): Undefined
setPosX(posZ): UndefinedposZ
Number
Player position Z to set.
Sets the event position on the Z axis.
setYaw(yaw): Undefined
setYaw(yaw): Undefinedyaw
Number
Player yaw rotation to set
Sets the event rotation on the yaw axis.
setPitch(pitch): Undefined
setPitch(pitch): Undefinedpitch
Number
Player pitch rotation to set
Sets the event rotation on the pitch axis.
setOnGround(groundState): Undefined
setOnGround(groundState): UndefinedgroundState
Boolean
Value of player.onGround to set
Sets the event ground state.
getPosX(): Number
getPosX(): NumberReturns the Position X of the event.
getPosY(): Number
getPosY(): NumberReturns the Position Y of the event.
getPosZ(): Number
getPosZ(): NumberReturns the Position Z of the event.
getYaw(): Number
getYaw(): NumberReturns the yaw rotation of the event.
getPitch(): Number
getPitch(): NumberReturns the pitch rotation of the event.
isOnGround(): Boolean
isOnGround(): BooleanReturns the ground state of the event.
Last updated