use of com.fastasyncworldedit.core.command.tool.brush.ShatterBrush in project FastAsyncWorldEdit by IntellectualSites.
the class BrushCommands method shatterBrush.
@Command(name = "shatter", aliases = { "partition", "split" }, desc = "Creates random lines to break the terrain into pieces", descFooter = "Creates uneven lines separating terrain into multiple pieces\n" + "Pic: https://i.imgur.com/2xKsZf2.png")
@CommandPermissions("worldedit.brush.shatter")
public void shatterBrush(EditSession editSession, InjectedValueAccess context, @Arg(desc = "Pattern") Pattern fill, @Arg(desc = "The radius to sample for blending", def = "10") Expression radius, @Arg(desc = "Lines", def = "10") int count) throws WorldEditException {
worldEdit.checkMaxBrushRadius(radius);
set(context, new ShatterBrush(count), "worldedit.brush.shatter").setSize(radius).setFill(fill).setMask(new ExistingBlockMask(editSession));
}
Aggregations