use of com.fastasyncworldedit.core.command.tool.brush.RecurseBrush in project FastAsyncWorldEdit by IntellectualSites.
the class BrushCommands method recursiveBrush.
@Command(name = "recursive", aliases = { "recurse", "r" }, desc = "Set all connected blocks", descFooter = "Set all connected blocks\n" + "Note: Set a mask to recurse along specific blocks")
@CommandPermissions("worldedit.brush.recursive")
public void recursiveBrush(InjectedValueAccess context, EditSession editSession, @Arg(desc = "Pattern") Pattern fill, @Arg(desc = "The radius to sample for blending", def = "5") Expression radius, @Switch(name = 'd', desc = "Apply in depth first order") boolean depthFirst) throws WorldEditException {
worldEdit.checkMaxBrushRadius(radius);
set(context, new RecurseBrush(depthFirst), "worldedit.brush.recursive").setSize(radius).setFill(fill).setMask(new IdMask(editSession));
}
Aggregations