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 | Description |
---|---|---|
Parameter other | Type Vec3 | Description No Description Provided |
Name: contains
Return Type: boolean
ZenScript CopyAABB.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 |
Name: contract
Return Type: AABB
ZenScript CopyAABB.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 |
Name: deflate
Return Type: AABB
ZenScript CopyAABB.deflate(scalar as double) as AABB
Parameter | Type | Description |
---|---|---|
Parameter scalar | Type double | Description No Description Provided |
Name: deflate
Return Type: AABB
ZenScript CopyAABB.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 |
Name: expandTowards
Return Type: AABB
ZenScript CopyAABB.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 |
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 | Description |
---|---|---|
Parameter scalar | Type double | Description No Description Provided |
Name: inflate
Return Type: AABB
ZenScript CopyAABB.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 |
Name: intersects
Return Type: boolean
ZenScript CopyAABB.intersects(other as AABB) as boolean
Parameter | Type | Description |
---|---|---|
Parameter other | Type AABB | Description No Description Provided |
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 | 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 |
Name: max
Return Type: double
ZenScript CopyAABB.max(direction as Axis) as double
Parameter | Type | Description |
---|---|---|
Parameter direction | Type Axis | Description No Description Provided |
Name: min
Return Type: double
ZenScript CopyAABB.min(direction as Axis) as double
Parameter | Type | Description |
---|---|---|
Parameter direction | Type Axis | Description No Description Provided |
Name: move
Return Type: AABB
ZenScript CopyAABB.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 |
Name: setMaxX
Return Type: AABB
ZenScript CopyAABB.setMaxX(maxX as double) as AABB
Parameter | Type | Description |
---|---|---|
Parameter maxX | Type double | Description No Description Provided |
Name: setMaxY
Return Type: AABB
ZenScript CopyAABB.setMaxY(maxY as double) as AABB
Parameter | Type | Description |
---|---|---|
Parameter maxY | Type double | Description No Description Provided |
Name: setMaxZ
Return Type: AABB
ZenScript CopyAABB.setMaxZ(maxZ as double) as AABB
Parameter | Type | Description |
---|---|---|
Parameter maxZ | Type double | Description No Description Provided |
Name: setMinX
Return Type: AABB
ZenScript CopyAABB.setMinX(minX as double) as AABB
Parameter | Type | Description |
---|---|---|
Parameter minX | Type double | Description No Description Provided |
Name: setMinY
Return Type: AABB
ZenScript CopyAABB.setMinY(minY as double) as AABB
Parameter | Type | Description |
---|---|---|
Parameter minY | Type double | Description No Description Provided |
Name: setMinZ
Return Type: AABB
ZenScript CopyAABB.setMinZ(minZ as double) as AABB
Parameter | Type | Description |
---|---|---|
Parameter minZ | Type double | Description No Description Provided |
Properties
Link to properties
이름 | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
이름 center | Type Vec3 | Has Getter true | Has Setter false | Description No Description Provided |
이름 hasNaN | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
이름 size | Type double | Has Getter true | Has Setter false | Description No Description Provided |
이름 xSize | Type double | Has Getter true | Has Setter false | Description No Description Provided |
이름 ySize | Type double | Has Getter true | Has Setter false | Description No Description Provided |
이름 zSize | Type double | Has Getter true | Has Setter false | Description No Description Provided |