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