public static Vector getEyePos(Entity entity) { Vector pos = getEntityPos(entity); pos.setY(pos.y() + entity.getEyeHeight()); return pos; }
/** * Set this vector to the vector defined by (x, y, z). * * @param x X-coordinate to set to * @param y Y-coordinate to set to * @param z Z-coordinate to set to * @return this */ public Vector set(double x, double y, double z) { setX(x); setY(y); setZ(z); return this; }