use of com.sk89q.worldedit.function.visitor.RecursiveVisitor in project FastAsyncWorldEdit by IntellectualSites.
the class FuzzyRegion method select.
/**
* Add to the selection from the given position.
*/
public void select(BlockVector3 position) {
RecursiveVisitor search = new RecursiveVisitor(mask, p -> {
setMinMax(p.getBlockX(), p.getBlockY(), p.getBlockZ());
return true;
}, 256, extent.getMinY(), extent.getMaxY(), extent);
search.setVisited(set);
mask.test(position);
search.visit(position);
Operations.completeBlindly(search);
}
Aggregations