Vec3i
Importing the class
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;
Implements
Undocumented Interfaces
Comparable<Vec3i>
Members
distToCenterSqr(position as Position) as double
distToCenterSqr(x as double, y as double, z as double) as 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
offset(x as int, y as int, z as int) as Vec3i
offset(other as Vec3i) as Vec3i
relative(direction as Direction) as Vec3i
relative(direction as Direction, distance as int) as Vec3i
relative(axis as Axis, distanec as int) as Vec3i
Getter
// Vec3i.toShortString as stringmyVec3i.toShortString
Return Type:
string
toShortString() as string
// Vec3i.toShortString() as string;myVec3i.toShortString();
Return Type:
string
Getter
// Vec3i.x as intmyVec3i.x
Return Type:
int
x() as int
// Vec3i.x() as int;myVec3i.x();
Return Type:
int
Getter
// Vec3i.y as intmyVec3i.y
Return Type:
int
y() as int
// Vec3i.y() as int;myVec3i.y();
Return Type:
int
Getter
// Vec3i.z as intmyVec3i.z
Return Type:
int
z() as int
// Vec3i.z() as int;myVec3i.z();
Return Type:
int