Exemplo n.º 1
0
 @Override
 public Vector3 convert(Vector3 v) {
   float newX = convertX(v.getX());
   float newY = convertY(v.getY());
   float newZ = convertZ(v.getZ());
   Vector3 newP = new Vector3(newX, newY, newZ);
   return newP;
 }
 public EntityRelativePositionYawMessage(int id, Vector3 deltaPosition, int rotation, int pitch) {
   this(
       id,
       (int) deltaPosition.getX(),
       (int) deltaPosition.getY(),
       (int) deltaPosition.getZ(),
       rotation,
       pitch);
 }