区域对象
Region 定义 WorldEdit 操作的几何区域。
区域类型
- CuboidRegion — 长方体区域
- EllipsoidRegion — 椭球区域
- CylinderRegion — 圆柱区域
- Polygonal2DRegion — 多边形区域
- ConvexPolyhedralRegion — 凸多面体区域
创建区域
// 长方体
CuboidRegion region = new CuboidRegion(
BlockVector3.at(0, 0, 0),
BlockVector3.at(10, 10, 10)
);
// 迭代方块
for (BlockVector3 pos : region) {
// 处理每个位置
}