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
cancel(): void
Cancels the movement, doing this makes the player just stand still.
getX(): double
getX(): double
Returns the movement in the X direction.
getY(): double
getY(): double
Returns the movement in the Y direction.
getZ(): double
getZ(): double
Returns the movement in the Z direction.
setX(double x): double
setX(double x): double
Sets the movement in the X direction.
setY(double y): double
setY(double y): double
Sets the movement in the Y direction.
setZ(double z): double
setZ(double z): double
Sets the movement in the Z direction.
Last updated