Home Commands Examples Getting Started With Scripts Global Keywords

EntityDimensions

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

Members

makeBoundingBox(vec as Vec3) as AABB
script.zs
// EntityDimensions.makeBoundingBox(vec as Vec3) as AABB;
myEntityDimensions.makeBoundingBox(myVec3);

Parameters:

vec Type: Vec3

Return Type: AABB

makeBoundingBox(x as double, y as double, z as double) as AABB
script.zs
// EntityDimensions.makeBoundingBox(x as double, y as double, z as double) as AABB;
myEntityDimensions.makeBoundingBox(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double

Return Type: AABB

scale(factor as float) as EntityDimensions
script.zs
// EntityDimensions.scale(factor as float) as EntityDimensions;
myEntityDimensions.scale(myFloat);

Parameters:

factor Type: float

Return Type: EntityDimensions

scale(widthFactor as float, heightFactor as float) as EntityDimensions
script.zs
// EntityDimensions.scale(widthFactor as float, heightFactor as float) as EntityDimensions;
myEntityDimensions.scale(myFloat, myFloat);

Parameters:

widthFactor Type: float
heightFactor Type: float

Return Type: EntityDimensions