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);
}
Aggregations