Search in sources :

Example 1 with SweepBrush

use of com.fastasyncworldedit.core.command.tool.sweep.SweepBrush in project FastAsyncWorldEdit by IntellectualSites.

the class BrushCommands method sweepBrush.

@Command(name = "sweep", aliases = { "sw", "vaesweep" }, desc = "Sweep your clipboard content along a curve", descFooter = "Sweeps your clipboard content along a curve.\n" + "Define a curve by selecting the individual points with a brush\n" + "Set [copies] to a value > 0 if you want to have your selection pasted a limited amount of times equally spaced on the curve")
@CommandPermissions("worldedit.brush.sweep")
public void sweepBrush(Player player, InjectedValueAccess context, @Arg(desc = "int", def = "-1") int copies) throws WorldEditException {
    player.print(Caption.of("fawe.worldedit.brush.brush.spline"));
    set(context, new SweepBrush(copies), "worldedit.brush.sweep");
}
Also used : SweepBrush(com.fastasyncworldedit.core.command.tool.sweep.SweepBrush) ScatterCommand(com.fastasyncworldedit.core.command.tool.brush.ScatterCommand) Command(org.enginehub.piston.annotation.Command) CommandPermissions(com.sk89q.worldedit.command.util.CommandPermissions)

Aggregations

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