AABB

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

Methods

Return Type: Vec3

script.zs
AABB.clip(minVec as Vec3, maxVec as Vec3) as Vec3
ParameterTypeDescription
Parameter
minVec
Type
Vec3
Description
No Description Provided
Parameter
maxVec
Type
Vec3
Description
No Description Provided

Return Type: boolean

script.zs
AABB.contains(other as Vec3) as boolean
ParameterTypeDescription
Parameter
other
Type
Vec3
Description
No Description Provided

Return Type: boolean

script.zs
AABB.contains(x as double, y as double, z as double) as boolean
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.contract(x as double, y as double, z as double) as AABB
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.deflate(scalar as double) as AABB
ParameterTypeDescription
Parameter
scalar
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.deflate(x as double, y as double, z as double) as AABB
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.expandTowards(vec as Vec3) as AABB
ParameterTypeDescription
Parameter
vec
Type
Vec3
Description
No Description Provided

Return Type: AABB

script.zs
AABB.expandTowards(x as double, y as double, z as double) as AABB
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Return Type: Vec3

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

Return Type: double

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

Return Type: double

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

Return Type: double

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

Return Type: double

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

Return Type: boolean

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

Return Type: AABB

script.zs
AABB.inflate(scalar as double) as AABB
ParameterTypeDescription
Parameter
scalar
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.inflate(x as double, y as double, z as double) as AABB
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.intersect(other as AABB) as AABB
ParameterTypeDescription
Parameter
other
Type
AABB
Description
No Description Provided

Return Type: boolean

script.zs
AABB.intersects(other as AABB) as boolean
ParameterTypeDescription
Parameter
other
Type
AABB
Description
No Description Provided

Return Type: boolean

script.zs
AABB.intersects(minVec as Vec3, maxVec as Vec3) as boolean
ParameterTypeDescription
Parameter
minVec
Type
Vec3
Description
No Description Provided
Parameter
maxVec
Type
Vec3
Description
No Description Provided

Return Type: boolean

script.zs
AABB.intersects(minX as double, minY as double, minZ as double, maxX as double, maxY as double, maxZ as double) as boolean
ParameterTypeDescription
Parameter
minX
Type
double
Description
No Description Provided
Parameter
minY
Type
double
Description
No Description Provided
Parameter
minZ
Type
double
Description
No Description Provided
Parameter
maxX
Type
double
Description
No Description Provided
Parameter
maxY
Type
double
Description
No Description Provided
Parameter
maxZ
Type
double
Description
No Description Provided

Return Type: double

script.zs
AABB.max(direction as Axis) as double
ParameterTypeDescription
Parameter
direction
Type
Axis
Description
No Description Provided

Return Type: double

script.zs
AABB.min(direction as Axis) as double
ParameterTypeDescription
Parameter
direction
Type
Axis
Description
No Description Provided

Return Type: AABB

script.zs
AABB.minmax(other as AABB) as AABB
ParameterTypeDescription
Parameter
other
Type
AABB
Description
No Description Provided

Return Type: AABB

script.zs
AABB.move(pos as BlockPos) as AABB
ParameterTypeDescription
Parameter
pos
Type
BlockPos
Description
No Description Provided

Return Type: AABB

script.zs
AABB.move(vec as Vec3) as AABB
ParameterTypeDescription
Parameter
vec
Type
Vec3
Description
No Description Provided

Return Type: AABB

script.zs
AABB.move(x as double, y as double, z as double) as AABB
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.setMaxX(maxX as double) as AABB
ParameterTypeDescription
Parameter
maxX
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.setMaxY(maxY as double) as AABB
ParameterTypeDescription
Parameter
maxY
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.setMaxZ(maxZ as double) as AABB
ParameterTypeDescription
Parameter
maxZ
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.setMinX(minX as double) as AABB
ParameterTypeDescription
Parameter
minX
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.setMinY(minY as double) as AABB
ParameterTypeDescription
Parameter
minY
Type
double
Description
No Description Provided

Return Type: AABB

script.zs
AABB.setMinZ(minZ as double) as AABB
ParameterTypeDescription
Parameter
minZ
Type
double
Description
No Description Provided

Properties

NameTypeHas GetterHas SetterDescription
Name
center
Type
Vec3
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
hasNaN
Type
boolean
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
size
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
xSize
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
ySize
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
zSize
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided