AABB

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.util.math.AABB;

Members

Getter
script.zs
// AABB.center as Vec3
myAABB.center

Return Type: Vec3

center() as Vec3
script.zs
// AABB.center() as Vec3;
myAABB.center();

Return Type: Vec3

clip(minVec as Vec3, maxVec as Vec3) as Vec3
script.zs
// AABB.clip(minVec as Vec3, maxVec as Vec3) as Vec3;
myAABB.clip(myVec3, myVec3);

Parameters:

minVec Type: Vec3
maxVec Type: Vec3

Return Type: Vec3

contains(other as Vec3) as bool
script.zs
// AABB.contains(other as Vec3) as bool;
myAABB.contains(myVec3);

Parameters:

other Type: Vec3

Return Type: bool

contains(x as double, y as double, z as double) as bool
script.zs
// AABB.contains(x as double, y as double, z as double) as bool;
myAABB.contains(myDouble, myDouble, myDouble);

Parameters:

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

Return Type: bool

contract(x as double, y as double, z as double) as AABB
script.zs
// AABB.contract(x as double, y as double, z as double) as AABB;
myAABB.contract(myDouble, myDouble, myDouble);

Parameters:

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

Return Type: AABB

deflate(x as double, y as double, z as double) as AABB
script.zs
// AABB.deflate(x as double, y as double, z as double) as AABB;
myAABB.deflate(myDouble, myDouble, myDouble);

Parameters:

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

Return Type: AABB

deflate(scalar as double) as AABB
script.zs
// AABB.deflate(scalar as double) as AABB;
myAABB.deflate(myDouble);

Parameters:

scalar Type: double

Return Type: AABB

expandTowards(vec as Vec3) as AABB
script.zs
// AABB.expandTowards(vec as Vec3) as AABB;
myAABB.expandTowards(myVec3);

Parameters:

vec Type: Vec3

Return Type: AABB

expandTowards(x as double, y as double, z as double) as AABB
script.zs
// AABB.expandTowards(x as double, y as double, z as double) as AABB;
myAABB.expandTowards(myDouble, myDouble, myDouble);

Parameters:

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

Return Type: AABB

Getter
script.zs
// AABB.hasNaN as bool
myAABB.hasNaN

Return Type: bool

hasNaN() as bool
script.zs
// AABB.hasNaN() as bool;
myAABB.hasNaN();

Return Type: bool

inflate(x as double, y as double, z as double) as AABB
script.zs
// AABB.inflate(x as double, y as double, z as double) as AABB;
myAABB.inflate(myDouble, myDouble, myDouble);

Parameters:

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

Return Type: AABB

inflate(scalar as double) as AABB
script.zs
// AABB.inflate(scalar as double) as AABB;
myAABB.inflate(myDouble);

Parameters:

scalar Type: double

Return Type: AABB

intersect(other as AABB) as AABB
script.zs
// AABB.intersect(other as AABB) as AABB;
myAABB.intersect(myAABB);

Parameters:

other Type: AABB

Return Type: AABB

intersects(other as AABB) as bool
script.zs
// AABB.intersects(other as AABB) as bool;
myAABB.intersects(myAABB);

Parameters:

other Type: AABB

Return Type: bool

intersects(minX as double, minY as double, minZ as double, maxX as double, maxY as double, maxZ as double) as bool
script.zs
// AABB.intersects(minX as double, minY as double, minZ as double, maxX as double, maxY as double, maxZ as double) as bool;
myAABB.intersects(myDouble, myDouble, myDouble, myDouble, myDouble, myDouble);

Parameters:

minX Type: double
minY Type: double
minZ Type: double
maxX Type: double
maxY Type: double
maxZ Type: double

Return Type: bool

intersects(minVec as Vec3, maxVec as Vec3) as bool
script.zs
// AABB.intersects(minVec as Vec3, maxVec as Vec3) as bool;
myAABB.intersects(myVec3, myVec3);

Parameters:

minVec Type: Vec3
maxVec Type: Vec3

Return Type: bool

max(direction as Axis) as double
script.zs
// AABB.max(direction as Axis) as double;
myAABB.max(myAxis);

Parameters:

direction Type: Axis

Return Type: double

min(direction as Axis) as double
script.zs
// AABB.min(direction as Axis) as double;
myAABB.min(myAxis);

Parameters:

direction Type: Axis

Return Type: double

minmax(other as AABB) as AABB
script.zs
// AABB.minmax(other as AABB) as AABB;
myAABB.minmax(myAABB);

Parameters:

other Type: AABB

Return Type: AABB

move(x as double, y as double, z as double) as AABB
script.zs
// AABB.move(x as double, y as double, z as double) as AABB;
myAABB.move(myDouble, myDouble, myDouble);

Parameters:

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

Return Type: AABB

move(pos as BlockPos) as AABB
script.zs
// AABB.move(pos as BlockPos) as AABB;
myAABB.move(myBlockPos);

Parameters:

pos Type: BlockPos

Return Type: AABB

move(vec as Vec3) as AABB
script.zs
// AABB.move(vec as Vec3) as AABB;
myAABB.move(myVec3);

Parameters:

vec Type: Vec3

Return Type: AABB

setMaxX(maxX as double) as AABB
script.zs
// AABB.setMaxX(maxX as double) as AABB;
myAABB.setMaxX(myDouble);

Parameters:

maxX Type: double

Return Type: AABB

setMaxY(maxY as double) as AABB
script.zs
// AABB.setMaxY(maxY as double) as AABB;
myAABB.setMaxY(myDouble);

Parameters:

maxY Type: double

Return Type: AABB

setMaxZ(maxZ as double) as AABB
script.zs
// AABB.setMaxZ(maxZ as double) as AABB;
myAABB.setMaxZ(myDouble);

Parameters:

maxZ Type: double

Return Type: AABB

setMinX(minX as double) as AABB
script.zs
// AABB.setMinX(minX as double) as AABB;
myAABB.setMinX(myDouble);

Parameters:

minX Type: double

Return Type: AABB

setMinY(minY as double) as AABB
script.zs
// AABB.setMinY(minY as double) as AABB;
myAABB.setMinY(myDouble);

Parameters:

minY Type: double

Return Type: AABB

setMinZ(minZ as double) as AABB
script.zs
// AABB.setMinZ(minZ as double) as AABB;
myAABB.setMinZ(myDouble);

Parameters:

minZ Type: double

Return Type: AABB

Getter
script.zs
// AABB.size as double
myAABB.size

Return Type: double

size() as double
script.zs
// AABB.size() as double;
myAABB.size();

Return Type: double

Getter
script.zs
// AABB.xSize as double
myAABB.xSize

Return Type: double

xSize() as double
script.zs
// AABB.xSize() as double;
myAABB.xSize();

Return Type: double

Getter
script.zs
// AABB.ySize as double
myAABB.ySize

Return Type: double

ySize() as double
script.zs
// AABB.ySize() as double;
myAABB.ySize();

Return Type: double

Getter
script.zs
// AABB.zSize as double
myAABB.zSize

Return Type: double

zSize() as double
script.zs
// AABB.zSize() as double;
myAABB.zSize();

Return Type: double