IAxisAlignedBB
Link to iaxisalignedbb
导入相关包
Link to 导入相关包
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import.
import crafttweaker.util.IAxisAlignedBB;
IAxisAlignedBB constructor
Link to iaxisalignedbb-constructor
You can create a IAxisAlignedBB object yourself by using the following methods:
ZenScript CopyIAxisAlignedBB.create(double minX, double minY, double minZ, double maxX, double maxY, double maxZ);
IAxisAlignedBB.create(IBlockPos pos;
IAxisAlignedBB.create(IBlockPos pos1, IBlockPos pos2;
IAxisAlignedBB.create(IVector3d min, IVector3d max);
The First method allows you to create a position at the given coordinates.
ZenGetters
Link to zengetters
ZenGetter | 类型 |
---|---|
ZenGetter minX | 类型 double |
ZenGetter minY | 类型 double |
ZenGetter minZ | 类型 double |
ZenGetter maxX | 类型 double |
ZenGetter maxY | 类型 double |
ZenGetter maxZ | 类型 double |
ZenGetter center | 类型 IVector3d |