BlockShapeHelper
BlockShapeHelper
工具类提供了操作 VoxelShape
的常见工具方法。
VoxelShape rotateX(VoxelShape shape)
:以X轴顺时针旋转shape
。VoxelShape rotateY(VoxelShape shape)
:以Y轴顺时针旋转shape
。VoxelShape or(VoxelShape[] shapes)
:封装了Shapes.or(VoxelShape shape1, VoxelShape shape2)
和Shapes.or(VoxelShape shape1, VoxelShape... others)
,用于合并若干个VoxelShape
。
Last modified: 02 June 2024