Search in sources :

Example 6 with CylinderRegion

use of com.sk89q.worldedit.regions.CylinderRegion in project FastAsyncWorldEdit by IntellectualSites.

the class ButcherBrush method build.

@Override
public void build(EditSession editSession, BlockVector3 position, Pattern pattern, double size) throws MaxChangedBlocksException {
    CylinderRegion region = CylinderRegion.createRadius(editSession, position, size);
    List<? extends Entity> entities = editSession.getEntities(region);
    Operations.completeLegacy(new EntityVisitor(entities.iterator(), flags.createFunction()));
}
Also used : CylinderRegion(com.sk89q.worldedit.regions.CylinderRegion) EntityVisitor(com.sk89q.worldedit.function.visitor.EntityVisitor)

Aggregations

CylinderRegion (com.sk89q.worldedit.regions.CylinderRegion)6 EntityVisitor (com.sk89q.worldedit.function.visitor.EntityVisitor)2 BlockVector3 (com.sk89q.worldedit.math.BlockVector3)2 EditSession (com.sk89q.worldedit.EditSession)1 LocalSession (com.sk89q.worldedit.LocalSession)1 CommandPermissions (com.sk89q.worldedit.command.util.CommandPermissions)1 Logging (com.sk89q.worldedit.command.util.Logging)1 AbstractRegion (com.sk89q.worldedit.regions.AbstractRegion)1 ConvexPolyhedralRegion (com.sk89q.worldedit.regions.ConvexPolyhedralRegion)1 Polygonal2DRegion (com.sk89q.worldedit.regions.Polygonal2DRegion)1 RegionSelector (com.sk89q.worldedit.regions.RegionSelector)1 ConvexPolyhedralRegionSelector (com.sk89q.worldedit.regions.selector.ConvexPolyhedralRegionSelector)1 CuboidRegionSelector (com.sk89q.worldedit.regions.selector.CuboidRegionSelector)1 CylinderRegionSelector (com.sk89q.worldedit.regions.selector.CylinderRegionSelector)1 Polygonal2DRegionSelector (com.sk89q.worldedit.regions.selector.Polygonal2DRegionSelector)1 ArrayList (java.util.ArrayList)1 Random (java.util.Random)1 Command (org.enginehub.piston.annotation.Command)1