updateCoord

fun updateCoord(level: Int, fineX: Int, fineY: Int, fineZ: Int, teleport: Boolean)

Updates the current coordinate of this world entity, along with a move speed to reach that coordinate, if applicable.

Parameters

level

the current absolute level of this world entity.

fineX

the absolute fine x coordinate of this world entity. This coordinate is effectively absolute coordinate * 128.

fineY

the fine y coordinate (or the height) of this world entity. This value should be in range of 0..1023. Note that as of revision 226, this property is overwritten by the ground height and has no impact on the perceived height of the world entity.

fineZ

the absolute fine z coordinate of this world entity. This coordinate is effectively absolute coordinate * 128.

teleport

whether to jump the worldentity to the desired coordinate.