Home Commands Examples Getting Started With Scripts Global Keywords

EntityAccess

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.entity.EntityAccess;

Members

Getter
script.zs
// EntityAccess.blockPosiion as BlockPos
myEntityAccess.blockPosiion

Return Type: BlockPos

blockPosiion() as BlockPos
script.zs
// EntityAccess.blockPosiion() as BlockPos;
myEntityAccess.blockPosiion();

Return Type: BlockPos

Getter
script.zs
// EntityAccess.boundingBox as AABB
myEntityAccess.boundingBox

Return Type: AABB

boundingBox() as AABB
script.zs
// EntityAccess.boundingBox() as AABB;
myEntityAccess.boundingBox();

Return Type: AABB

Getter
script.zs
// EntityAccess.id as int
myEntityAccess.id

Return Type: int

id() as int
script.zs
// EntityAccess.id() as int;
myEntityAccess.id();

Return Type: int

Getter
script.zs
// EntityAccess.isAlwaysTicking as bool
myEntityAccess.isAlwaysTicking

Return Type: bool

isAlwaysTicking() as bool
script.zs
// EntityAccess.isAlwaysTicking() as bool;
myEntityAccess.isAlwaysTicking();

Return Type: bool

setRemoved(var1 as RemovalReason)
script.zs
// EntityAccess.setRemoved(var1 as RemovalReason);
myEntityAccess.setRemoved(myRemovalReason);

Parameters:

Getter
script.zs
// EntityAccess.shouldBeSaved as bool
myEntityAccess.shouldBeSaved

Return Type: bool

shouldBeSaved() as bool
script.zs
// EntityAccess.shouldBeSaved() as bool;
myEntityAccess.shouldBeSaved();

Return Type: bool

Getter
script.zs
// EntityAccess.uuid as UUID
myEntityAccess.uuid

Return Type: UUID

uuid() as UUID
script.zs
// EntityAccess.uuid() as UUID;
myEntityAccess.uuid();

Return Type: UUID