Search in sources :

Example 1 with CircleBrush

use of com.fastasyncworldedit.core.command.tool.brush.CircleBrush in project FastAsyncWorldEdit by IntellectualSites.

the class BrushCommands method circleBrush.

@Command(name = "circle", desc = "Creates a circle, which revolves around your facing direction")
@CommandPermissions("worldedit.brush.sphere")
public void circleBrush(InjectedValueAccess context, @Arg(desc = "Pattern") Pattern fill, @Arg(desc = "The radius to sample for blending", def = "5") Expression radius, @Arg(name = "filled", desc = "Whether the circle should be filled", def = "false") boolean filled) throws WorldEditException {
    worldEdit.checkMaxBrushRadius(radius);
    set(context, new CircleBrush(filled), "worldedit.brush.sphere").setSize(radius).setFill(fill);
}
Also used : CircleBrush(com.fastasyncworldedit.core.command.tool.brush.CircleBrush) ScatterCommand(com.fastasyncworldedit.core.command.tool.brush.ScatterCommand) Command(org.enginehub.piston.annotation.Command) CommandPermissions(com.sk89q.worldedit.command.util.CommandPermissions)

Aggregations

CircleBrush (com.fastasyncworldedit.core.command.tool.brush.CircleBrush)1 ScatterCommand (com.fastasyncworldedit.core.command.tool.brush.ScatterCommand)1 CommandPermissions (com.sk89q.worldedit.command.util.CommandPermissions)1 Command (org.enginehub.piston.annotation.Command)1