EntityDimensions
Link to entitydimensions
导入类
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 at the very top of the file.
ZenScript Copyimport crafttweaker.api.entity.EntityDimensions;
使用方式
Link to 使用方式
Name: makeBoundingBox
Return Type: AABB
ZenScript CopyEntityDimensions.makeBoundingBox(x as double, y as double, z as double) as AABB
参数 | 类型 |
---|---|
参数 x | 类型 double |
参数 y | 类型 double |
参数 z | 类型 double |
Name: scale
Return Type: EntityDimensions
ZenScript CopyEntityDimensions.scale(factor as float) as EntityDimensions
参数 | 类型 |
---|---|
参数 factor | 类型 float |
Name: scale
Return Type: EntityDimensions
ZenScript CopyEntityDimensions.scale(widthFactor as float, heightFactor as float) as EntityDimensions
参数 | 类型 |
---|---|
参数 widthFactor | 类型 float |
参数 heightFactor | 类型 float |