Examples of raytraceParts()


Examples of com.flansmod.common.driveables.EntityDriveable.raytraceParts()

          Object obj = world.loadedEntityList.get(i);
          if(obj instanceof EntityDriveable)
          {
            EntityDriveable driveable = (EntityDriveable)obj;
            //Raytrace
            DriveablePart part = driveable.raytraceParts(new Vector3f(posVec), Vector3f.sub(new Vector3f(lookVec), new Vector3f(posVec), null));
            //If we hit something that is healable
            if(part != null && part.maxHealth > 0)
            {
              //If its broken and the tool is inifinite or has durability left
              if(part.health < part.maxHealth && (type.toolLife == 0 || itemstack.getItemDamage() < itemstack.getMaxDamage()))
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.