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
ParameterTypeDescription
Parameter
minVec
Type
Vec3
Description
No Description Provided
Parameter
maxVec
Type
Vec3
Description
No Description Provided

Link to g--1

Name: contains

Return Type: boolean

ZenScript
Copy
AABB.contains(other as Vec3) as boolean
ParameterTypeDescription
Parameter
other
Type
Vec3
Description
No Description Provided

Link to g--2

Name: contains

Return Type: boolean

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

Link to g--3

Name: contract

Return Type: AABB

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

Name: deflate

Return Type: AABB

ZenScript
Copy
AABB.deflate(scalar as double) as AABB
ParameterTypeDescription
Parameter
scalar
Type
double
Description
No Description Provided

Name: deflate

Return Type: AABB

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

Link to g--6

Name: expandTowards

Return Type: AABB

ZenScript
Copy
AABB.expandTowards(vec as Vec3) as AABB
ParameterTypeDescription
Parameter
vec
Type
Vec3
Description
No Description Provided

Link to g--7

Name: expandTowards

Return Type: AABB

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

Link to g--8

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
ParameterTypeDescription
Parameter
scalar
Type
double
Description
No Description Provided

Name: inflate

Return Type: AABB

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

Link to g--16

Name: intersect

Return Type: AABB

ZenScript
Copy
AABB.intersect(other as AABB) as AABB
ParameterTypeDescription
Parameter
other
Type
AABB
Description
No Description Provided

Link to g--17

Name: intersects

Return Type: boolean

ZenScript
Copy
AABB.intersects(other as AABB) as boolean
ParameterTypeDescription
Parameter
other
Type
AABB
Description
No Description Provided

Link to g--18

Name: intersects

Return Type: boolean

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

Link to g--19

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

Name: max

Return Type: double

ZenScript
Copy
AABB.max(direction as Axis) as double
ParameterTypeDescription
Parameter
direction
Type
Axis
Description
No Description Provided

Name: min

Return Type: double

ZenScript
Copy
AABB.min(direction as Axis) as double
ParameterTypeDescription
Parameter
direction
Type
Axis
Description
No Description Provided

Name: minmax

Return Type: AABB

ZenScript
Copy
AABB.minmax(other as AABB) as AABB
ParameterTypeDescription
Parameter
other
Type
AABB
Description
No Description Provided

Name: move

Return Type: AABB

ZenScript
Copy
AABB.move(pos as BlockPos) as AABB
ParameterTypeDescription
Parameter
pos
Type
BlockPos
Description
No Description Provided

Name: move

Return Type: AABB

ZenScript
Copy
AABB.move(vec as Vec3) as AABB
ParameterTypeDescription
Parameter
vec
Type
Vec3
Description
No Description Provided

Name: move

Return Type: AABB

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

Name: setMaxX

Return Type: AABB

ZenScript
Copy
AABB.setMaxX(maxX as double) as AABB
ParameterTypeDescription
Parameter
maxX
Type
double
Description
No Description Provided

Name: setMaxY

Return Type: AABB

ZenScript
Copy
AABB.setMaxY(maxY as double) as AABB
ParameterTypeDescription
Parameter
maxY
Type
double
Description
No Description Provided

Name: setMaxZ

Return Type: AABB

ZenScript
Copy
AABB.setMaxZ(maxZ as double) as AABB
ParameterTypeDescription
Parameter
maxZ
Type
double
Description
No Description Provided

Name: setMinX

Return Type: AABB

ZenScript
Copy
AABB.setMinX(minX as double) as AABB
ParameterTypeDescription
Parameter
minX
Type
double
Description
No Description Provided

Name: setMinY

Return Type: AABB

ZenScript
Copy
AABB.setMinY(minY as double) as AABB
ParameterTypeDescription
Parameter
minY
Type
double
Description
No Description Provided

Name: setMinZ

Return Type: AABB

ZenScript
Copy
AABB.setMinZ(minZ as double) as AABB
ParameterTypeDescription
Parameter
minZ
Type
double
Description
No Description Provided
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