use of com.fastasyncworldedit.core.function.mask.WallMakeMask in project FastAsyncWorldEdit by IntellectualSites.
the class EditSession method makeWalls.
// FAWE start
/**
* Make the walls of the given region. The method by which the walls are found
* may be inefficient, because there may not be an efficient implementation supported
* for that specific shape.
*
* @param region the region
* @param pattern the pattern to place
* @return number of blocks affected
* @throws MaxChangedBlocksException thrown if too many blocks are changed
*/
public int makeWalls(final Region region, Pattern pattern) throws MaxChangedBlocksException {
checkNotNull(region);
checkNotNull(pattern);
if (region instanceof CuboidRegion) {
return makeCuboidWalls(region, pattern);
} else {
replaceBlocks(region, new WallMakeMask(region), pattern);
}
return changes;
}
Aggregations