Package org.spout.math.vector

Examples of org.spout.math.vector.Vector3f.abs()


      }
      // Add +1 to change direction
      if (cause instanceof EntityCause) {
        // set data using direction
        Vector3f direction = block.getPosition().sub((((EntityCause) cause).getSource()).getPhysics().getPosition());
        direction = direction.abs();
        if (direction.getX() > direction.getZ()) {
          data++;
        }
      } else {
        data += (int) Math.round(Math.random());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.