private boolean isTileNotAvailable ( Pathfindable mover , int ctx , int cty , Integer ignoreObjectId ) { final Collection < Integer > ids = getObjectsId ( ctx , cty ) ; final Tile tile = map . getTile ( ctx , cty ) ; if ( tile != null ) { final TilePath tilePath = tile . getFeature ( TilePath . class ) ; if ( mover . isBlocking ( tilePath . getCategory ( ) ) || ignoreObjectId != null && ! ids . isEmpty ( ) && ! ids . contains ( ignoreObjectId ) ) { return true ; } } return false ; }
Check if area if used .