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?
ParameterType
Parameter
minVec
Type
Vec3
Parameter
maxVec
Type
Vec3

Return Type: boolean

script.zs
AABB.contains(other as Vec3) as boolean
ParameterType
Parameter
other
Type
Vec3

Return Type: boolean

script.zs
AABB.contains(x as double, y as double, z as double) as boolean
ParameterType
Parameter
x
Type
double
Parameter
y
Type
double
Parameter
z
Type
double

Return Type: AABB

script.zs
AABB.contract(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: AABB

script.zs
AABB.deflate(scalar as double) as AABB
ParameterType
Parameter
scalar
Type
double

Return Type: AABB

script.zs
AABB.deflate(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: AABB

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

Return Type: AABB

script.zs
AABB.expandTowards(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: 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
ParameterType
Parameter
scalar
Type
double

Return Type: AABB

script.zs
AABB.inflate(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: AABB

script.zs
AABB.intersect(other as AABB) as AABB
ParameterType
Parameter
other
Type
AABB

Return Type: boolean

script.zs
AABB.intersects(other as AABB) as boolean
ParameterType
Parameter
other
Type
AABB

Return Type: boolean

script.zs
AABB.intersects(minVec as Vec3, maxVec as Vec3) as boolean
ParameterType
Parameter
minVec
Type
Vec3
Parameter
maxVec
Type
Vec3

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
ParameterType
Parameter
minX
Type
double
Parameter
minY
Type
double
Parameter
minZ
Type
double
Parameter
maxX
Type
double
Parameter
maxY
Type
double
Parameter
maxZ
Type
double

Return Type: double

script.zs
AABB.max(direction as Axis) as double
ParameterType
Parameter
direction
Type
Axis

Return Type: double

script.zs
AABB.min(direction as Axis) as double
ParameterType
Parameter
direction
Type
Axis

Return Type: AABB

script.zs
AABB.minmax(other as AABB) as AABB
ParameterType
Parameter
other
Type
AABB

Return Type: AABB

script.zs
AABB.move(pos as BlockPos) as AABB
ParameterType
Parameter
pos
Type
BlockPos

Return Type: AABB

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

Return Type: AABB

script.zs
AABB.move(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: AABB

script.zs
AABB.setMaxX(maxX as double) as AABB
ParameterType
Parameter
maxX
Type
double

Return Type: AABB

script.zs
AABB.setMaxY(maxY as double) as AABB
ParameterType
Parameter
maxY
Type
double

Return Type: AABB

script.zs
AABB.setMaxZ(maxZ as double) as AABB
ParameterType
Parameter
maxZ
Type
double

Return Type: AABB

script.zs
AABB.setMinX(minX as double) as AABB
ParameterType
Parameter
minX
Type
double

Return Type: AABB

script.zs
AABB.setMinY(minY as double) as AABB
ParameterType
Parameter
minY
Type
double

Return Type: AABB

script.zs
AABB.setMinZ(minZ as double) as AABB
ParameterType
Parameter
minZ
Type
double

Properties

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