EntityAccess
Link to entityaccess
Importing the class
Link to importing-the-class
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;
Methods
Link to methods
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)
Parameter | Type |
---|---|
Parameter var1 | Type RemovalReason |
Name: shouldBeSaved
Return Type: boolean
ZenScript Copy// EntityAccess.shouldBeSaved() as boolean
myEntityAccess.shouldBeSaved();
Properties
Link to properties
이름 | Type | Has Getter | Has Setter |
---|---|---|---|
이름 blockPosiion | Type BlockPos | Has Getter true | Has Setter false |
이름 boundingBox | Type AABB | Has Getter true | Has Setter false |
이름 id | Type int | Has Getter true | Has Setter false |
이름 isAlwaysTicking | Type boolean | Has Getter true | Has Setter false |
이름 shouldBeSaved | Type boolean | Has Getter true | Has Setter false |
이름 uuid | Type invalid | Has Getter true | Has Setter false |