Motion event

motion

This event is posted when the local player moves. The x, y and z values indicate how much the entity gets moved in each direction. The event's ID is motion.

cancel(): void

Cancels the movement, doing this makes the player just stand still.

getX(): double

Returns the movement in the X direction.

getY(): double

Returns the movement in the Y direction.

getZ(): double

Returns the movement in the Z direction.

setX(double x): double

Sets the movement in the X direction.

setY(double y): double

Sets the movement in the Y direction.

setZ(double z): double

Sets the movement in the Z direction.

Last updated