If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.util.math . Vec3i;
Undocumented Interfaces Comparable <Vec3i >
// Vec3i.above() as Vec3i;
Return Type:
Vec3i
// Vec3i.above(distance as int) as Vec3i;
Return Type:
Vec3i
// Vec3i.below() as Vec3i;
Return Type:
Vec3i
// Vec3i.below(distance as int) as Vec3i;
Return Type:
Vec3i
// Vec3i.closerThan(other as Vec3i, maxDistance as double) as bool;
myVec3i . closerThan(myVec3i, myDouble);
Parameters:
maxDistance: double
Type: double
Return Type:
bool
// Vec3i.compareTo(other as Vec3i) as int;
myVec3i . compareTo(myVec3i);
Return Type:
int
// Vec3i.cross(other as Vec3i) as Vec3i;
Return Type:
Vec3i
// Vec3i.distManhattan(other as Vec3i) as int;
myVec3i . distManhattan(myVec3i);
Return Type:
int
// Vec3i.distSqr(other as Vec3i) as double;
myVec3i . distSqr(myVec3i);
Return Type:
double
// Vec3i.distToCenterSqr(position as Position) as double;
myVec3i . distToCenterSqr(myPosition);
Return Type:
double
// Vec3i.distToCenterSqr(x as double, y as double, z as double) as double;
myVec3i . distToCenterSqr(myDouble, myDouble, myDouble);
Parameters:
x: double
Type: double
y: double
Type: double
z: double
Type: double
Return Type:
double
// Vec3i.east() as Vec3i;
Return Type:
Vec3i
// Vec3i.east(distance as int) as Vec3i;
Return Type:
Vec3i
// Vec3i.getValue(axis as Axis) as int;
myVec3i . getValue(myAxis);
Return Type:
int
// Vec3i.multiply(scalar as int) as Vec3i;
Return Type:
Vec3i
// Vec3i.north() as Vec3i;
Return Type:
Vec3i
// Vec3i.north(distance as int) as Vec3i;
Return Type:
Vec3i
// Vec3i.offset(x as int, y as int, z as int) as Vec3i;
myVec3i . offset(myInt, myInt, myInt);
Parameters:
x: int
Type: int
y: int
Type: int
z: int
Type: int
Return Type:
Vec3i
// Vec3i.offset(other as Vec3i) as Vec3i;
Return Type:
Vec3i
// Vec3i.relative(direction as Direction) as Vec3i;
myVec3i . relative(myDirection);
Return Type:
Vec3i
// Vec3i.relative(direction as Direction, distance as int) as Vec3i;
myVec3i . relative(myDirection, myInt);
Return Type:
Vec3i
// Vec3i.relative(axis as Axis, distanec as int) as Vec3i;
myVec3i . relative(myAxis, myInt);
Return Type:
Vec3i
// Vec3i.south() as Vec3i;
Return Type:
Vec3i
// Vec3i.south(distance as int) as Vec3i;
Return Type:
Vec3i
// Vec3i.subtract(other as Vec3i) as Vec3i;
myVec3i . subtract(myVec3i);
Return Type:
Vec3i
// Vec3i.toShortString as string
Return Type:
string
// Vec3i.toShortString() as string;
Return Type:
string
// Vec3i.west() as Vec3i;
Return Type:
Vec3i
// Vec3i.west(distance as int) as Vec3i;
Return Type:
Vec3i