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

Sets the event position on the X axis.

setPosY(posY): Undefined

Sets the event position on the Y axis.

setPosX(posZ): Undefined

Sets the event position on the Z axis.

setYaw(yaw): Undefined

Sets the event rotation on the yaw axis.

setPitch(pitch): Undefined

Sets the event rotation on the pitch axis.

setOnGround(groundState): Undefined

Sets the event ground state.

getPosX(): Number

Returns the Position X of the event.

getPosY(): Number

Returns the Position Y of the event.

getPosZ(): Number

Returns the Position Z of the event.

getYaw(): Number

Returns the yaw rotation of the event.

getPitch(): Number

Returns the pitch rotation of the event.

isOnGround(): Boolean

Returns the ground state of the event.

Last updated