Search in sources :

Example 1 with FuzzyRegion

use of com.fastasyncworldedit.core.regions.FuzzyRegion in project FastAsyncWorldEdit by IntellectualSites.

the class FuzzyRegionSelector method selectPrimary.

@Override
public boolean selectPrimary(BlockVector3 position, SelectorLimits limits) {
    setWorld(getWorld());
    new MaskTraverser(getMask()).reset(getExtent());
    positions.clear();
    positions.add(position);
    this.region = new FuzzyRegion(getWorld(), getExtent(), getMask());
    this.region.select(position);
    return true;
}
Also used : MaskTraverser(com.fastasyncworldedit.core.util.MaskTraverser) FuzzyRegion(com.fastasyncworldedit.core.regions.FuzzyRegion)

Example 2 with FuzzyRegion

use of com.fastasyncworldedit.core.regions.FuzzyRegion in project FastAsyncWorldEdit by IntellectualSites.

the class FuzzyRegionSelector method clear.

@Override
public void clear() {
    positions.clear();
    this.region = new FuzzyRegion(getWorld(), getExtent(), getMask());
}
Also used : FuzzyRegion(com.fastasyncworldedit.core.regions.FuzzyRegion)

Aggregations

FuzzyRegion (com.fastasyncworldedit.core.regions.FuzzyRegion)2 MaskTraverser (com.fastasyncworldedit.core.util.MaskTraverser)1