updateCoord

fun updateCoord(level: Int, x: Int, z: Int)

Updates the current known coordinate of the given Avatar. This function must be called on each avatar before player info is computed.

Parameters

level

the current height level of the avatar.

x

the x coordinate of the avatar.

z

the z coordinate of the avatar (this is commonly referred to as 'y' coordinate).

Throws

if level is not in range of 0 until 4, or x/z are not in range of 0 until 16384.