getDirection

fun getDirection(X0: Double, Y0: Double, Z0: Double, X1: Double, Y1: Double, Z1: Double): DoubleArray

Returns array(distance, yaw, pitch) in minecraft coordinate system to get from x0y0z0 to x1y1z1.


fun getDirection(vec0: Vec3, vec1: Vec3): DoubleArray

Returns array(distance, yaw, pitch) in minecraft coordinate system to get from vec0 to vec1.


fun EntityPlayerSP.getDirection(vec: Vec3, offset: Double): DoubleArray

Returns array(distance, yaw, pitch) in minecraft coordinate system to get from the Player feet to the given vec. offset can be used to offset the target height.


fun EntityPlayerSP.getDirection(entity: Entity, offset: Double): DoubleArray

Returns array(distance, yaw, pitch) in minecraft coordinate system to get from the Player to the given entity at the same height. offset can be used to offset the target height.