Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.api.util.math.AABB;

Name: clip

Return Type: Vec3?

ZenScript
Copy
AABB.clip(minVec as Vec3, maxVec as Vec3) as Vec3?
ParameterType
Parameter
minVec
Type
Vec3
Parameter
maxVec
Type
Vec3

Name: contains

Return Type: boolean

ZenScript
Copy
AABB.contains(other as Vec3) as boolean
ParameterType
Parameter
other
Type
Vec3

Name: contains

Return Type: boolean

ZenScript
Copy
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

Name: contract

Return Type: AABB

ZenScript
Copy
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

Name: deflate

Return Type: AABB

ZenScript
Copy
AABB.deflate(scalar as double) as AABB
ParameterType
Parameter
scalar
Type
double

Name: deflate

Return Type: AABB

ZenScript
Copy
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

Name: expandTowards

Return Type: AABB

ZenScript
Copy
AABB.expandTowards(vec as Vec3) as AABB
ParameterType
Parameter
vec
Type
Vec3

Name: expandTowards

Return Type: AABB

ZenScript
Copy
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

Name: getCenter

Return Type: Vec3

ZenScript
Copy
// AABB.getCenter() as Vec3

myAABB.getCenter();

Name: getSize

Return Type: double

ZenScript
Copy
// AABB.getSize() as double

myAABB.getSize();

Name: getXsize

Return Type: double

ZenScript
Copy
// AABB.getXsize() as double

myAABB.getXsize();

Name: getYsize

Return Type: double

ZenScript
Copy
// AABB.getYsize() as double

myAABB.getYsize();

Name: getZsize

Return Type: double

ZenScript
Copy
// AABB.getZsize() as double

myAABB.getZsize();

Name: hasNaN

Return Type: boolean

ZenScript
Copy
// AABB.hasNaN() as boolean

myAABB.hasNaN();

Name: inflate

Return Type: AABB

ZenScript
Copy
AABB.inflate(scalar as double) as AABB
ParameterType
Parameter
scalar
Type
double

Name: inflate

Return Type: AABB

ZenScript
Copy
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

Name: intersect

Return Type: AABB

ZenScript
Copy
AABB.intersect(other as AABB) as AABB
ParameterType
Parameter
other
Type
AABB

Name: intersects

Return Type: boolean

ZenScript
Copy
AABB.intersects(other as AABB) as boolean
ParameterType
Parameter
other
Type
AABB

Name: intersects

Return Type: boolean

ZenScript
Copy
AABB.intersects(minVec as Vec3, maxVec as Vec3) as boolean
ParameterType
Parameter
minVec
Type
Vec3
Parameter
maxVec
Type
Vec3

Name: intersects

Return Type: boolean

ZenScript
Copy
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

Name: max

Return Type: double

ZenScript
Copy
AABB.max(direction as Axis) as double
ParameterType
Parameter
direction
Type
Axis

Name: min

Return Type: double

ZenScript
Copy
AABB.min(direction as Axis) as double
ParameterType
Parameter
direction
Type
Axis

Name: minmax

Return Type: AABB

ZenScript
Copy
AABB.minmax(other as AABB) as AABB
ParameterType
Parameter
other
Type
AABB

Name: move

Return Type: AABB

ZenScript
Copy
AABB.move(pos as BlockPos) as AABB
ParameterType
Parameter
pos
Type
BlockPos

Name: move

Return Type: AABB

ZenScript
Copy
AABB.move(vec as Vec3) as AABB
ParameterType
Parameter
vec
Type
Vec3

Name: move

Return Type: AABB

ZenScript
Copy
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

Name: setMaxX

Return Type: AABB

ZenScript
Copy
AABB.setMaxX(maxX as double) as AABB
ParameterType
Parameter
maxX
Type
double

Name: setMaxY

Return Type: AABB

ZenScript
Copy
AABB.setMaxY(maxY as double) as AABB
ParameterType
Parameter
maxY
Type
double

Name: setMaxZ

Return Type: AABB

ZenScript
Copy
AABB.setMaxZ(maxZ as double) as AABB
ParameterType
Parameter
maxZ
Type
double

Name: setMinX

Return Type: AABB

ZenScript
Copy
AABB.setMinX(minX as double) as AABB
ParameterType
Parameter
minX
Type
double

Name: setMinY

Return Type: AABB

ZenScript
Copy
AABB.setMinY(minY as double) as AABB
ParameterType
Parameter
minY
Type
double

Name: setMinZ

Return Type: AABB

ZenScript
Copy
AABB.setMinZ(minZ as double) as AABB
ParameterType
Parameter
minZ
Type
double
이름TypeHas GetterHas Setter
이름
center
Type
Vec3
Has Getter
true
Has Setter
false
이름
hasNaN
Type
boolean
Has Getter
true
Has Setter
false
이름
size
Type
double
Has Getter
true
Has Setter
false
이름
xSize
Type
double
Has Getter
true
Has Setter
false
이름
ySize
Type
double
Has Getter
true
Has Setter
false
이름
zSize
Type
double
Has Getter
true
Has Setter
false