Vec3i
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.Vec3i;Implemented Interfaces
Vec3i implements the following interfaces. That means all methods defined in these interfaces are also available in Vec3i
- Comparable<Vec3i>
Methods
Return Type: Vec3i
// Vec3i.above() as Vec3i
myVec3i.above();Return Type: Vec3i
Vec3i.above(distance as int) as Vec3i| Parameter | Type |
|---|---|
Parameter distance | Type int |
Return Type: Vec3i
// Vec3i.below() as Vec3i
myVec3i.below();Return Type: Vec3i
Vec3i.below(distance as int) as Vec3i| Parameter | Type |
|---|---|
Parameter distance | Type int |
Return Type: boolean
Vec3i.closerThan(other as Vec3i, maxDistance as double) as boolean| Parameter | Type |
|---|---|
Parameter other | Type Vec3i |
Parameter maxDistance | Type double |
Return Type: int
Vec3i.compareTo(other as Vec3i) as int| Parameter | Type |
|---|---|
Parameter other | Type Vec3i |
Return Type: int
Vec3i.distManhattan(other as Vec3i) as int| Parameter | Type |
|---|---|
Parameter other | Type Vec3i |
Return Type: double
Vec3i.distSqr(other as Vec3i) as double| Parameter | Type |
|---|---|
Parameter other | Type Vec3i |
Return Type: double
Vec3i.distToCenterSqr(position as Position) as double| Parameter | Type |
|---|---|
Parameter position | Type Position |
Return Type: double
Vec3i.distToCenterSqr(x as double, y as double, z as double) as double| Parameter | Type |
|---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Return Type: Vec3i
// Vec3i.east() as Vec3i
myVec3i.east();Return Type: Vec3i
Vec3i.east(distance as int) as Vec3i| Parameter | Type |
|---|---|
Parameter distance | Type int |
Return Type: int
// Vec3i.getX() as int
myVec3i.getX();Return Type: int
// Vec3i.getY() as int
myVec3i.getY();Return Type: int
// Vec3i.getZ() as int
myVec3i.getZ();Return Type: Vec3i
Vec3i.multiply(scalar as int) as Vec3i| Parameter | Type |
|---|---|
Parameter scalar | Type int |
Return Type: Vec3i
// Vec3i.north() as Vec3i
myVec3i.north();Return Type: Vec3i
Vec3i.north(distance as int) as Vec3i| Parameter | Type |
|---|---|
Parameter distance | Type int |
Return Type: Vec3i
Vec3i.offset(x as double, y as double, z as double) as Vec3i| Parameter | Type |
|---|---|
Parameter x | Type double |
Parameter y | Type double |
Parameter z | Type double |
Return Type: Vec3i
Vec3i.offset(x as int, y as int, z as int) as Vec3i| Parameter | Type |
|---|---|
Parameter x | Type int |
Parameter y | Type int |
Parameter z | Type int |
Return Type: Vec3i
// Vec3i.south() as Vec3i
myVec3i.south();Return Type: Vec3i
Vec3i.south(distance as int) as Vec3i| Parameter | Type |
|---|---|
Parameter distance | Type int |
Return Type: string
// Vec3i.toShortString() as string
myVec3i.toShortString();Return Type: Vec3i
// Vec3i.west() as Vec3i
myVec3i.west();Return Type: Vec3i
Vec3i.west(distance as int) as Vec3i| Parameter | Type |
|---|---|
Parameter distance | Type int |
Properties
| Name | Type | Has Getter | Has Setter |
|---|---|---|---|
Name toShortString | Type string | Has Getter true | Has Setter false |
Name x | Type int | Has Getter true | Has Setter false |
Name y | Type int | Has Getter true | Has Setter false |
Name z | Type int | Has Getter true | Has Setter false |