Package net.minecraft.util

Examples of net.minecraft.util.AxisAlignedBB.intersectsWith()


      aabb = blk.getCollisionBoundingBoxFromPool(world, placeCoord.x, placeCoord.y, placeCoord.z);
    } else {
      BoundingBox bb = new BoundingBox(placeCoord);
      aabb = bb.getAxisAlignedBB();
    }     
    if(aabb != null && aabb.intersectsWith(player.boundingBox)) {
      return false;
    }
    return true;
  }
View Full Code Here


                {
                    player.onGround = true;
                    if (b.canCollideCheck(player.worldObj.getBlockMetadata(xx, playerFeetOnY, zz), false))
                    {
                        AxisAlignedBB collisionBox = b.getCollisionBoundingBoxFromPool(player.worldObj, xx, playerFeetOnY, zz);
                        if (collisionBox != null && collisionBox.intersectsWith(player.boundingBox))
                        {
                          player.posY -= player.boundingBox.minY - blockYmax;
                        player.boundingBox.offset(0, blockYmax - player.boundingBox.minY, 0);
                        }
                    }
View Full Code Here

    List<Entity> var16 = this.getEntitiesWithinAABBExcludingEntity(par1Entity, par2AxisAlignedBB.expand(var14, var14, var14), entitySelector, 100);

    for (Entity aVar16 : var16) {
      AxisAlignedBB var13 = aVar16.getBoundingBox();

      if (var13 != null && var13.intersectsWith(par2AxisAlignedBB)) {
        return true;
      }

      var13 = par1Entity.getCollisionBox(aVar16);
View Full Code Here

        return true;
      }

      var13 = par1Entity.getCollisionBox(aVar16);

      if (var13 != null && var13.intersectsWith(par2AxisAlignedBB)) {
        return true;
      }
    }

    return false;
View Full Code Here

    List<Entity> var16 = this.getEntitiesWithinAABBExcludingEntity(par1Entity, par2AxisAlignedBB.expand(var14, var14, var14), entitySelector, limit);

    for (Entity aVar16 : var16) {
      AxisAlignedBB var13 = aVar16.getBoundingBox();

      if (var13 != null && var13.intersectsWith(par2AxisAlignedBB)) {
        collidingBoundingBoxes.add(var13);
      }

      var13 = par1Entity.getCollisionBox(aVar16);
View Full Code Here

        collidingBoundingBoxes.add(var13);
      }

      var13 = par1Entity.getCollisionBox(aVar16);

      if (var13 != null && var13.intersectsWith(par2AxisAlignedBB)) {
        collidingBoundingBoxes.add(var13);
      }
    }

    return collidingBoundingBoxes;
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.