Search in sources :

Example 1 with LineBrush

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

the class BrushCommands method lineBrush.

@Command(name = "line", aliases = { "l" }, desc = "Create lines")
@CommandPermissions("worldedit.brush.line")
public void lineBrush(InjectedValueAccess context, @Arg(desc = "Pattern") Pattern fill, @Arg(desc = "The radius to sample for blending", def = "0") Expression radius, @Switch(name = 'h', desc = "Create only a shell") boolean shell, @Switch(name = 's', desc = "Selects the clicked point after drawing") boolean select, @Switch(name = 'f', desc = "Create a flat line") boolean flat) throws WorldEditException {
    worldEdit.checkMaxBrushRadius(radius);
    set(context, new LineBrush(shell, select, flat), "worldedit.brush.line").setSize(radius).setFill(fill);
}
Also used : LineBrush(com.fastasyncworldedit.core.command.tool.brush.LineBrush) ScatterCommand(com.fastasyncworldedit.core.command.tool.brush.ScatterCommand) Command(org.enginehub.piston.annotation.Command) CommandPermissions(com.sk89q.worldedit.command.util.CommandPermissions)

Aggregations

LineBrush (com.fastasyncworldedit.core.command.tool.brush.LineBrush)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