AABB
Link to aabb
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 Copyimport crafttweaker.api.util.math.AABB;
Methods
Link to methods
Name: contains
Return Type: boolean
ZenScript CopyAABB.contains(other as Vec3) as boolean
Parameter | Type |
---|---|
Parameter other | Type Vec3 |
Name: contains
Return Type: boolean
ZenScript CopyAABB.contains(x as double, y as double, z as double) as boolean
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Name: contract
Return Type: AABB
ZenScript CopyAABB.contract(x as double, y as double, z as double) as AABB
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Name: deflate
Return Type: AABB
ZenScript CopyAABB.deflate(scalar as double) as AABB
Parameter | Type |
---|---|
Parameter scalar | Type double |
Name: deflate
Return Type: AABB
ZenScript CopyAABB.deflate(x as double, y as double, z as double) as AABB
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Name: expandTowards
Return Type: AABB
ZenScript CopyAABB.expandTowards(x as double, y as double, z as double) as AABB
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
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 CopyAABB.inflate(scalar as double) as AABB
Parameter | Type |
---|---|
Parameter scalar | Type double |
Name: inflate
Return Type: AABB
ZenScript CopyAABB.inflate(x as double, y as double, z as double) as AABB
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Name: intersects
Return Type: boolean
ZenScript CopyAABB.intersects(other as AABB) as boolean
Parameter | Type |
---|---|
Parameter other | Type AABB |
Name: intersects
Return Type: boolean
ZenScript CopyAABB.intersects(minX as double, minY as double, minZ as double, maxX as double, maxY as double, maxZ as double) as boolean
Parameter | Type |
---|---|
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 CopyAABB.max(direction as Axis) as double
Parameter | Type |
---|---|
Parameter direction | Type Axis |
Name: min
Return Type: double
ZenScript CopyAABB.min(direction as Axis) as double
Parameter | Type |
---|---|
Parameter direction | Type Axis |
Name: move
Return Type: AABB
ZenScript CopyAABB.move(x as double, y as double, z as double) as AABB
Parameter | Type |
---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Name: setMaxX
Return Type: AABB
ZenScript CopyAABB.setMaxX(maxX as double) as AABB
Parameter | Type |
---|---|
Parameter maxX | Type double |
Name: setMaxY
Return Type: AABB
ZenScript CopyAABB.setMaxY(maxY as double) as AABB
Parameter | Type |
---|---|
Parameter maxY | Type double |
Name: setMaxZ
Return Type: AABB
ZenScript CopyAABB.setMaxZ(maxZ as double) as AABB
Parameter | Type |
---|---|
Parameter maxZ | Type double |
Name: setMinX
Return Type: AABB
ZenScript CopyAABB.setMinX(minX as double) as AABB
Parameter | Type |
---|---|
Parameter minX | Type double |
Name: setMinY
Return Type: AABB
ZenScript CopyAABB.setMinY(minY as double) as AABB
Parameter | Type |
---|---|
Parameter minY | Type double |
Name: setMinZ
Return Type: AABB
ZenScript CopyAABB.setMinZ(minZ as double) as AABB
Parameter | Type |
---|---|
Parameter minZ | Type double |
Properties
Link to properties
Name | Type | Has Getter | Has 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 |