Search in sources :

Example 1 with MaskedTargetBlock

use of com.fastasyncworldedit.core.function.mask.MaskedTargetBlock in project FastAsyncWorldEdit by IntellectualSites.

the class BrushTool method trace.

private Vector3 trace(EditSession editSession, Player player, int range, boolean useLastBlock) {
    Mask mask = traceMask == null ? new SolidBlockMask(editSession) : traceMask;
    new MaskTraverser(mask).reset(editSession);
    MaskedTargetBlock tb = new MaskedTargetBlock(mask, player, range, 0.2);
    return tb.getMaskedTargetBlock(useLastBlock);
}
Also used : MaskedTargetBlock(com.fastasyncworldedit.core.function.mask.MaskedTargetBlock) SolidBlockMask(com.sk89q.worldedit.function.mask.SolidBlockMask) Mask(com.sk89q.worldedit.function.mask.Mask) SolidBlockMask(com.sk89q.worldedit.function.mask.SolidBlockMask) MaskTraverser(com.fastasyncworldedit.core.util.MaskTraverser)

Aggregations

MaskedTargetBlock (com.fastasyncworldedit.core.function.mask.MaskedTargetBlock)1 MaskTraverser (com.fastasyncworldedit.core.util.MaskTraverser)1 Mask (com.sk89q.worldedit.function.mask.Mask)1 SolidBlockMask (com.sk89q.worldedit.function.mask.SolidBlockMask)1