public boolean checkIfAABBIsClear(AxisAlignedBB var1) {
        List var2 = this.getEntitiesWithinAABBExcludingEntity((Entity) null, var1);

        for (int var3 = 0; var3 < var2.size(); ++var3) {
            Entity var4 = (Entity) var2.get(var3);
            if (!var4.isDead && var4.preventEntitySpawning) {
                return false;
            }
        }

        return true;
    }