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.
import crafttweaker.api.util.math.AABB;Methods
Return Type: boolean
AABB.contains(other as Vec3) as boolean| Parameter | Type | Description |
|---|---|---|
Parameter other | Type Vec3 | Description No Description Provided |
Return Type: boolean
AABB.contains(x as double, y as double, z as double) as boolean| Parameter | Type | Description |
|---|---|---|
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
AABB.contract(x as double, y as double, z as double) as AABB| Parameter | Type | Description |
|---|---|---|
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
AABB.deflate(scalar as double) as AABB| Parameter | Type | Description |
|---|---|---|
Parameter scalar | Type double | Description No Description Provided |
Return Type: AABB
AABB.deflate(x as double, y as double, z as double) as AABB| Parameter | Type | Description |
|---|---|---|
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
AABB.expandTowards(x as double, y as double, z as double) as AABB| Parameter | Type | Description |
|---|---|---|
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
// AABB.getCenter() as Vec3
myAABB.getCenter();Return Type: double
// AABB.getSize() as double
myAABB.getSize();Return Type: double
// AABB.getXsize() as double
myAABB.getXsize();Return Type: double
// AABB.getYsize() as double
myAABB.getYsize();Return Type: double
// AABB.getZsize() as double
myAABB.getZsize();Return Type: boolean
// AABB.hasNaN() as boolean
myAABB.hasNaN();Return Type: AABB
AABB.inflate(scalar as double) as AABB| Parameter | Type | Description |
|---|---|---|
Parameter scalar | Type double | Description No Description Provided |
Return Type: AABB
AABB.inflate(x as double, y as double, z as double) as AABB| Parameter | Type | Description |
|---|---|---|
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: boolean
AABB.intersects(other as AABB) as boolean| Parameter | Type | Description |
|---|---|---|
Parameter other | Type AABB | Description No Description Provided |
Return Type: boolean
AABB.intersects(minX as double, minY as double, minZ as double, maxX as double, maxY as double, maxZ as double) as boolean| Parameter | Type | Description |
|---|---|---|
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
AABB.max(direction as Axis) as double| Parameter | Type | Description |
|---|---|---|
Parameter direction | Type Axis | Description No Description Provided |
Return Type: double
AABB.min(direction as Axis) as double| Parameter | Type | Description |
|---|---|---|
Parameter direction | Type Axis | Description No Description Provided |
Return Type: AABB
AABB.move(x as double, y as double, z as double) as AABB| Parameter | Type | Description |
|---|---|---|
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
AABB.setMaxX(maxX as double) as AABB| Parameter | Type | Description |
|---|---|---|
Parameter maxX | Type double | Description No Description Provided |
Return Type: AABB
AABB.setMaxY(maxY as double) as AABB| Parameter | Type | Description |
|---|---|---|
Parameter maxY | Type double | Description No Description Provided |
Return Type: AABB
AABB.setMaxZ(maxZ as double) as AABB| Parameter | Type | Description |
|---|---|---|
Parameter maxZ | Type double | Description No Description Provided |
Return Type: AABB
AABB.setMinX(minX as double) as AABB| Parameter | Type | Description |
|---|---|---|
Parameter minX | Type double | Description No Description Provided |
Return Type: AABB
AABB.setMinY(minY as double) as AABB| Parameter | Type | Description |
|---|---|---|
Parameter minY | Type double | Description No Description Provided |
Return Type: AABB
AABB.setMinZ(minZ as double) as AABB| Parameter | Type | Description |
|---|---|---|
Parameter minZ | Type double | Description No Description Provided |
Properties
| Name | Type | Has Getter | Has Setter | Description |
|---|---|---|---|---|
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 |