protected void process ( BlockPos pos ) { for ( EnumFacing dir : searchDirs ) { BlockPos newPos = pos . offset ( dir ) ; if ( ! processed . contains ( newPos ) && shouldProcessed ( newPos ) ) toProcess . add ( newPos ) ; } processed . add ( pos ) ; if ( processed . size ( ) >= countLimit ) toProcess . clear ( ) ; }
Processes the position .