EntityAccess
Link to entityaccess
导入类
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.EntityAccess;
使用方式
Link to 使用方式
Name: blockPosition
Return Type: BlockPos
ZenScript Copy// EntityAccess.blockPosition() as BlockPos
myEntityAccess.blockPosition();
Name: getBoundingBox
Return Type: AABB
ZenScript Copy// EntityAccess.getBoundingBox() as AABB
myEntityAccess.getBoundingBox();
Name: getId
Return Type: int
ZenScript Copy// EntityAccess.getId() as int
myEntityAccess.getId();
Name: getUUID
Return Type: invalid
ZenScript Copy// EntityAccess.getUUID() as invalid
myEntityAccess.getUUID();
Name: isAlwaysTicking
Return Type: boolean
ZenScript Copy// EntityAccess.isAlwaysTicking() as boolean
myEntityAccess.isAlwaysTicking();
Name: setRemoved
ZenScript CopyEntityAccess.setRemoved(var1 as RemovalReason)
参数 | 类型 |
---|---|
参数 var1 | 类型 RemovalReason |
Name: shouldBeSaved
Return Type: boolean
ZenScript Copy// EntityAccess.shouldBeSaved() as boolean
myEntityAccess.shouldBeSaved();
名称 | 类型 | 可获得 | 可设置 |
---|---|---|---|
名称 blockPosiion | 类型 BlockPos | 可获得 true | 可设置 false |
名称 boundingBox | 类型 AABB | 可获得 true | 可设置 false |
名称 id | 类型 int | 可获得 true | 可设置 false |
名称 isAlwaysTicking | 类型 布尔值 | 可获得 true | 可设置 false |
名称 shouldBeSaved | 类型 布尔值 | 可获得 true | 可设置 false |
名称 uuid | 类型 invalid | 可获得 true | 可设置 false |