Importare la Classe

Link to importare-la-classe

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?
ParametroTipo
Parametro
minVec
Tipo
Vec3
Parametro
maxVec
Tipo
Vec3

Name: contains

Return Type: boolean

ZenScript
Copy
AABB.contains(other as Vec3) as boolean
ParametroTipo
Parametro
other
Tipo
Vec3

Name: contains

Return Type: boolean

ZenScript
Copy
AABB.contains(x as double, y as double, z as double) as boolean
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Name: contract

Return Type: AABB

ZenScript
Copy
AABB.contract(x as double, y as double, z as double) as AABB
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Name: deflate

Return Type: AABB

ZenScript
Copy
AABB.deflate(scalar as double) as AABB
ParametroTipo
Parametro
scalar
Tipo
double

Name: deflate

Return Type: AABB

ZenScript
Copy
AABB.deflate(x as double, y as double, z as double) as AABB
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Name: expandTowards

Return Type: AABB

ZenScript
Copy
AABB.expandTowards(vec as Vec3) as AABB
ParametroTipo
Parametro
vec
Tipo
Vec3

Name: expandTowards

Return Type: AABB

ZenScript
Copy
AABB.expandTowards(x as double, y as double, z as double) as AABB
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
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
ParametroTipo
Parametro
scalar
Tipo
double

Name: inflate

Return Type: AABB

ZenScript
Copy
AABB.inflate(x as double, y as double, z as double) as AABB
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Name: intersect

Return Type: AABB

ZenScript
Copy
AABB.intersect(other as AABB) as AABB
ParametroTipo
Parametro
other
Tipo
AABB

Name: intersects

Return Type: boolean

ZenScript
Copy
AABB.intersects(other as AABB) as boolean
ParametroTipo
Parametro
other
Tipo
AABB

Name: intersects

Return Type: boolean

ZenScript
Copy
AABB.intersects(minVec as Vec3, maxVec as Vec3) as boolean
ParametroTipo
Parametro
minVec
Tipo
Vec3
Parametro
maxVec
Tipo
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
ParametroTipo
Parametro
minX
Tipo
double
Parametro
minY
Tipo
double
Parametro
minZ
Tipo
double
Parametro
maxX
Tipo
double
Parametro
maxY
Tipo
double
Parametro
maxZ
Tipo
double

Name: max

Return Type: double

ZenScript
Copy
AABB.max(direction as Axis) as double
ParametroTipo
Parametro
direction
Tipo
Axis

Name: min

Return Type: double

ZenScript
Copy
AABB.min(direction as Axis) as double
ParametroTipo
Parametro
direction
Tipo
Axis

Name: minmax

Return Type: AABB

ZenScript
Copy
AABB.minmax(other as AABB) as AABB
ParametroTipo
Parametro
other
Tipo
AABB

Name: move

Return Type: AABB

ZenScript
Copy
AABB.move(pos as BlockPos) as AABB
ParametroTipo
Parametro
pos
Tipo
BlockPos

Name: move

Return Type: AABB

ZenScript
Copy
AABB.move(vec as Vec3) as AABB
ParametroTipo
Parametro
vec
Tipo
Vec3

Name: move

Return Type: AABB

ZenScript
Copy
AABB.move(x as double, y as double, z as double) as AABB
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Name: setMaxX

Return Type: AABB

ZenScript
Copy
AABB.setMaxX(maxX as double) as AABB
ParametroTipo
Parametro
maxX
Tipo
double

Name: setMaxY

Return Type: AABB

ZenScript
Copy
AABB.setMaxY(maxY as double) as AABB
ParametroTipo
Parametro
maxY
Tipo
double

Name: setMaxZ

Return Type: AABB

ZenScript
Copy
AABB.setMaxZ(maxZ as double) as AABB
ParametroTipo
Parametro
maxZ
Tipo
double

Name: setMinX

Return Type: AABB

ZenScript
Copy
AABB.setMinX(minX as double) as AABB
ParametroTipo
Parametro
minX
Tipo
double

Name: setMinY

Return Type: AABB

ZenScript
Copy
AABB.setMinY(minY as double) as AABB
ParametroTipo
Parametro
minY
Tipo
double

Name: setMinZ

Return Type: AABB

ZenScript
Copy
AABB.setMinZ(minZ as double) as AABB
ParametroTipo
Parametro
minZ
Tipo
double
NomeTipoHa GetterHa Setter
Nome
center
Tipo
Vec3
Ha Getter
Ha Setter
no
Nome
hasNaN
Tipo
boolean
Ha Getter
Ha Setter
no
Nome
size
Tipo
double
Ha Getter
Ha Setter
no
Nome
xSize
Tipo
double
Ha Getter
Ha Setter
no
Nome
ySize
Tipo
double
Ha Getter
Ha Setter
no
Nome
zSize
Tipo
double
Ha Getter
Ha Setter
no