Home Commands Examples Getting Started With Scripts Global Keywords

EntityDimensions

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.EntityDimensions;

Methods

Return Type: AABB

script.zs
EntityDimensions.makeBoundingBox(vec as Vec3) as AABB
ParameterType
Parameter
vec
Type
Vec3

Return Type: AABB

script.zs
EntityDimensions.makeBoundingBox(x as double, y as double, z as double) as AABB
ParameterType
Parameter
x
Type
double
Parameter
y
Type
double
Parameter
z
Type
double

Return Type: EntityDimensions

script.zs
EntityDimensions.scale(factor as float) as EntityDimensions
ParameterType
Parameter
factor
Type
float

Return Type: EntityDimensions

script.zs
EntityDimensions.scale(widthFactor as float, heightFactor as float) as EntityDimensions
ParameterType
Parameter
widthFactor
Type
float
Parameter
heightFactor
Type
float