public static Entity sendEntityToWorld(Entity entity, Trans3 src, Trans3 dst, int dimension) { Vector3 lPos = src.ip(entity.posX, entity.posY, entity.posZ); Vector3 lVel = src.iv(entity.motionX, entity.motionY, entity.motionZ); Vector3 lFac = src.iv(yawVector(entity)); Vector3 newPosition = dst.p(-lPos.x, lPos.y, -lPos.z); Vector3 newVelocity = dst.v(-lVel.x, lVel.y, -lVel.z); Vector3 gFac = dst.v(lFac.mul(-1)); Facing3 newFacing = new Facing3(yawAngle(gFac), entity.rotationPitch); Entity newEntity = sendEntityToWorld(entity, dimension, newPosition, newFacing); setVelocity(newEntity, newVelocity); return newEntity; }