Home Getting Started With Scripts Commands Examples
BracketDumpers BracketHandlers BracketValidators

EntityAccess

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.

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

Methods

Return Type: BlockPos

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

Return Type: AABB

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

Return Type: int

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

Return Type: invalid

script.zs
// EntityAccess.getUUID() as invalid
myEntityAccess.getUUID();

Return Type: boolean

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

Return Type: void

script.zs
EntityAccess.setRemoved(var1 as RemovalReason) as void
ParameterTypeDescription
Parameter
var1
Type
RemovalReason
Description
No Description Provided

Return Type: boolean

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

Properties

NameTypeHas GetterHas SetterDescription
Name
blockPosiion
Type
BlockPos
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
boundingBox
Type
AABB
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
id
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
isAlwaysTicking
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
shouldBeSaved
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
uuid
Type
invalid
Has Getter
true
Has Setter
false
Description
No Description Provided