Search in sources :

Example 1 with SurfaceSphereBrush

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

the class BrushCommands method surfaceBrush.

@Command(name = "surface", aliases = { "surf" }, desc = "Use a height map to paint a surface", descFooter = "Use a height map to paint any surface.")
@CommandPermissions("worldedit.brush.surface")
public void surfaceBrush(InjectedValueAccess context, @Arg(desc = "Pattern") Pattern fill, @Arg(desc = "Expression", def = "5") Expression radius) throws WorldEditException {
    worldEdit.checkMaxBrushRadius(radius);
    set(context, new SurfaceSphereBrush(), "worldedit.brush.surface").setFill(fill).setSize(radius);
}
Also used : SurfaceSphereBrush(com.fastasyncworldedit.core.command.tool.brush.SurfaceSphereBrush) 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 SurfaceSphereBrush (com.fastasyncworldedit.core.command.tool.brush.SurfaceSphereBrush)1 CommandPermissions (com.sk89q.worldedit.command.util.CommandPermissions)1 Command (org.enginehub.piston.annotation.Command)1