コード例 #1
0
ファイル: Vector.java プロジェクト: CrowsOfWar/AvatarMod
 public static Vector getEyePos(Entity entity) {
   Vector pos = getEntityPos(entity);
   pos.setY(pos.y() + entity.getEyeHeight());
   return pos;
 }
コード例 #2
0
ファイル: Vector.java プロジェクト: CrowsOfWar/AvatarMod
 /**
  * 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;
 }