AABB
Link to aabb
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 Copyimport crafttweaker.api.util.math.AABB;
Metodi
Link to metodi
Name: contains
Return Type: boolean
ZenScript CopyAABB.contains(other as Vec3) as boolean
Parametro | Tipo |
---|---|
Parametro other | Tipo Vec3 |
Name: contains
Return Type: boolean
ZenScript CopyAABB.contains(x as double, y as double, z as double) as boolean
Parametro | Tipo |
---|---|
Parametro x | Tipo double |
Parametro y | Tipo double |
Parametro z | Tipo double |
Name: contract
Return Type: AABB
ZenScript CopyAABB.contract(x as double, y as double, z as double) as AABB
Parametro | Tipo |
---|---|
Parametro x | Tipo double |
Parametro y | Tipo double |
Parametro z | Tipo double |
Name: deflate
Return Type: AABB
ZenScript CopyAABB.deflate(scalar as double) as AABB
Parametro | Tipo |
---|---|
Parametro scalar | Tipo double |
Name: deflate
Return Type: AABB
ZenScript CopyAABB.deflate(x as double, y as double, z as double) as AABB
Parametro | Tipo |
---|---|
Parametro x | Tipo double |
Parametro y | Tipo double |
Parametro z | Tipo double |
Name: expandTowards
Return Type: AABB
ZenScript CopyAABB.expandTowards(x as double, y as double, z as double) as AABB
Parametro | Tipo |
---|---|
Parametro x | Tipo double |
Parametro y | Tipo double |
Parametro z | Tipo 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
Parametro | Tipo |
---|---|
Parametro scalar | Tipo double |
Name: inflate
Return Type: AABB
ZenScript CopyAABB.inflate(x as double, y as double, z as double) as AABB
Parametro | Tipo |
---|---|
Parametro x | Tipo double |
Parametro y | Tipo double |
Parametro z | Tipo double |
Name: intersects
Return Type: boolean
ZenScript CopyAABB.intersects(other as AABB) as boolean
Parametro | Tipo |
---|---|
Parametro other | Tipo 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
Parametro | Tipo |
---|---|
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 CopyAABB.max(direction as Axis) as double
Parametro | Tipo |
---|---|
Parametro direction | Tipo Axis |
Name: min
Return Type: double
ZenScript CopyAABB.min(direction as Axis) as double
Parametro | Tipo |
---|---|
Parametro direction | Tipo Axis |
Name: move
Return Type: AABB
ZenScript CopyAABB.move(x as double, y as double, z as double) as AABB
Parametro | Tipo |
---|---|
Parametro x | Tipo double |
Parametro y | Tipo double |
Parametro z | Tipo double |
Name: setMaxX
Return Type: AABB
ZenScript CopyAABB.setMaxX(maxX as double) as AABB
Parametro | Tipo |
---|---|
Parametro maxX | Tipo double |
Name: setMaxY
Return Type: AABB
ZenScript CopyAABB.setMaxY(maxY as double) as AABB
Parametro | Tipo |
---|---|
Parametro maxY | Tipo double |
Name: setMaxZ
Return Type: AABB
ZenScript CopyAABB.setMaxZ(maxZ as double) as AABB
Parametro | Tipo |
---|---|
Parametro maxZ | Tipo double |
Name: setMinX
Return Type: AABB
ZenScript CopyAABB.setMinX(minX as double) as AABB
Parametro | Tipo |
---|---|
Parametro minX | Tipo double |
Name: setMinY
Return Type: AABB
ZenScript CopyAABB.setMinY(minY as double) as AABB
Parametro | Tipo |
---|---|
Parametro minY | Tipo double |
Name: setMinZ
Return Type: AABB
ZenScript CopyAABB.setMinZ(minZ as double) as AABB
Parametro | Tipo |
---|---|
Parametro minZ | Tipo double |
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter |
---|---|---|---|
Nome center | Tipo Vec3 | Ha Getter sì | Ha Setter no |
Nome hasNaN | Tipo boolean | Ha Getter sì | Ha Setter no |
Nome size | Tipo double | Ha Getter sì | Ha Setter no |
Nome xSize | Tipo double | Ha Getter sì | Ha Setter no |
Nome ySize | Tipo double | Ha Getter sì | Ha Setter no |
Nome zSize | Tipo double | Ha Getter sì | Ha Setter no |