int pitch = rotation.getIntPitch();
if (moved && teleport) {
return new EntityTeleportMessage(id, x, y, z, yaw, pitch);
} else if (moved && rotated) {
return new RelativeEntityPositionRotationMessage(id, dx, dy, dz, yaw, pitch);
} else if (moved) {
return new RelativeEntityPositionMessage(id, dx, dy, dz);
} else if (rotated) {
return new EntityRotationMessage(id, yaw, pitch);
}