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()))