Search in sources :

Example 6 with ExtentTraverser

use of com.fastasyncworldedit.core.util.ExtentTraverser in project FastAsyncWorldEdit by IntellectualSites.

the class FuzzyRegionSelector method setWorld.

@Override
@SuppressWarnings({ "unchecked", "rawtypes" })
public void setWorld(@Nullable World world) {
    EditSession extent = WorldEdit.getInstance().newEditSessionBuilder().world(world).actor(actor).changeSetNull().checkMemory(false).build();
    new ExtentTraverser(this).setNext(extent);
    this.region.setWorld(world);
    this.region.setExtent(extent);
    new MaskTraverser(getMask()).reset(extent);
}
Also used : ExtentTraverser(com.fastasyncworldedit.core.util.ExtentTraverser) MaskTraverser(com.fastasyncworldedit.core.util.MaskTraverser) EditSession(com.sk89q.worldedit.EditSession)

Aggregations

ExtentTraverser (com.fastasyncworldedit.core.util.ExtentTraverser)6 NullExtent (com.fastasyncworldedit.core.extent.NullExtent)3 HistoryExtent (com.fastasyncworldedit.core.extent.HistoryExtent)2 MaskTraverser (com.fastasyncworldedit.core.util.MaskTraverser)2 SourceMaskExtent (com.fastasyncworldedit.core.extent.SourceMaskExtent)1 ResettableMask (com.fastasyncworldedit.core.function.mask.ResettableMask)1 SingleBlockTypeMask (com.fastasyncworldedit.core.function.mask.SingleBlockTypeMask)1 WallMakeMask (com.fastasyncworldedit.core.function.mask.WallMakeMask)1 FaweException (com.fastasyncworldedit.core.internal.exception.FaweException)1 EditSession (com.sk89q.worldedit.EditSession)1 ForgetfulExtentBuffer (com.sk89q.worldedit.extent.buffer.ForgetfulExtentBuffer)1 BlockStateMask (com.sk89q.worldedit.function.mask.BlockStateMask)1 BlockTypeMask (com.sk89q.worldedit.function.mask.BlockTypeMask)1 BoundedHeightMask (com.sk89q.worldedit.function.mask.BoundedHeightMask)1 ExistingBlockMask (com.sk89q.worldedit.function.mask.ExistingBlockMask)1 Mask (com.sk89q.worldedit.function.mask.Mask)1 RegionMask (com.sk89q.worldedit.function.mask.RegionMask)1