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.

script.zs
import crafttweaker.api.util.math.Vec3i;

Implements

Undocumented Interfaces

Comparable<Vec3i>

Members

above() as Vec3i
script.zs
// Vec3i.above() as Vec3i;
myVec3i.above();

Return Type: Vec3i

above(distance as int) as Vec3i
script.zs
// Vec3i.above(distance as int) as Vec3i;
myVec3i.above(myInt);

Parameters:

distance Type: int

Return Type: Vec3i

below() as Vec3i
script.zs
// Vec3i.below() as Vec3i;
myVec3i.below();

Return Type: Vec3i

below(distance as int) as Vec3i
script.zs
// Vec3i.below(distance as int) as Vec3i;
myVec3i.below(myInt);

Parameters:

distance Type: int

Return Type: Vec3i

closerThan(other as Vec3i, maxDistance as double) as bool
script.zs
// Vec3i.closerThan(other as Vec3i, maxDistance as double) as bool;
myVec3i.closerThan(myVec3i, myDouble);

Parameters:

other Type: Vec3i
maxDistance Type: double

Return Type: bool

compareTo(other as Vec3i) as int
script.zs
// Vec3i.compareTo(other as Vec3i) as int;
myVec3i.compareTo(myVec3i);

Parameters:

other Type: Vec3i

Return Type: int

cross(other as Vec3i) as Vec3i
script.zs
// Vec3i.cross(other as Vec3i) as Vec3i;
myVec3i.cross(myVec3i);

Parameters:

other Type: Vec3i

Return Type: Vec3i

distManhattan(other as Vec3i) as int
script.zs
// Vec3i.distManhattan(other as Vec3i) as int;
myVec3i.distManhattan(myVec3i);

Parameters:

other Type: Vec3i

Return Type: int

distSqr(other as Vec3i) as double
script.zs
// Vec3i.distSqr(other as Vec3i) as double;
myVec3i.distSqr(myVec3i);

Parameters:

other Type: Vec3i

Return Type: double

distToCenterSqr(position as Position) as double
script.zs
// Vec3i.distToCenterSqr(position as Position) as double;
myVec3i.distToCenterSqr(myPosition);

Parameters:

position Type: Position

Return Type: double

distToCenterSqr(x as double, y as double, z as double) as double
script.zs
// Vec3i.distToCenterSqr(x as double, y as double, z as double) as double;
myVec3i.distToCenterSqr(myDouble, myDouble, myDouble);

Parameters:

x Type: double
y Type: double
z Type: double

Return Type: double

east() as Vec3i
script.zs
// Vec3i.east() as Vec3i;
myVec3i.east();

Return Type: Vec3i

east(distance as int) as Vec3i
script.zs
// Vec3i.east(distance as int) as Vec3i;
myVec3i.east(myInt);

Parameters:

distance Type: int

Return Type: Vec3i

getValue(axis as Axis) as int
script.zs
// Vec3i.getValue(axis as Axis) as int;
myVec3i.getValue(myAxis);

Parameters:

axis Type: Axis

Return Type: int

multiply(scalar as int) as Vec3i
script.zs
// Vec3i.multiply(scalar as int) as Vec3i;
myVec3i.multiply(myInt);

Parameters:

scalar Type: int

Return Type: Vec3i

north() as Vec3i
script.zs
// Vec3i.north() as Vec3i;
myVec3i.north();

Return Type: Vec3i

north(distance as int) as Vec3i
script.zs
// Vec3i.north(distance as int) as Vec3i;
myVec3i.north(myInt);

Parameters:

distance Type: int

Return Type: Vec3i

offset(x as int, y as int, z as int) as Vec3i
script.zs
// Vec3i.offset(x as int, y as int, z as int) as Vec3i;
myVec3i.offset(myInt, myInt, myInt);

Parameters:

x Type: int
y Type: int
z Type: int

Return Type: Vec3i

offset(other as Vec3i) as Vec3i
script.zs
// Vec3i.offset(other as Vec3i) as Vec3i;
myVec3i.offset(myVec3i);

Parameters:

other Type: Vec3i

Return Type: Vec3i

relative(direction as Direction) as Vec3i
script.zs
// Vec3i.relative(direction as Direction) as Vec3i;
myVec3i.relative(myDirection);

Parameters:

direction Type: Direction

Return Type: Vec3i

relative(direction as Direction, distance as int) as Vec3i
script.zs
// Vec3i.relative(direction as Direction, distance as int) as Vec3i;
myVec3i.relative(myDirection, myInt);

Parameters:

direction Type: Direction
distance Type: int

Return Type: Vec3i

relative(axis as Axis, distanec as int) as Vec3i
script.zs
// Vec3i.relative(axis as Axis, distanec as int) as Vec3i;
myVec3i.relative(myAxis, myInt);

Parameters:

axis Type: Axis
distanec Type: int

Return Type: Vec3i

south() as Vec3i
script.zs
// Vec3i.south() as Vec3i;
myVec3i.south();

Return Type: Vec3i

south(distance as int) as Vec3i
script.zs
// Vec3i.south(distance as int) as Vec3i;
myVec3i.south(myInt);

Parameters:

distance Type: int

Return Type: Vec3i

subtract(other as Vec3i) as Vec3i
script.zs
// Vec3i.subtract(other as Vec3i) as Vec3i;
myVec3i.subtract(myVec3i);

Parameters:

other Type: Vec3i

Return Type: Vec3i

Getter
script.zs
// Vec3i.toShortString as string
myVec3i.toShortString

Return Type: string

toShortString() as string
script.zs
// Vec3i.toShortString() as string;
myVec3i.toShortString();

Return Type: string

west() as Vec3i
script.zs
// Vec3i.west() as Vec3i;
myVec3i.west();

Return Type: Vec3i

west(distance as int) as Vec3i
script.zs
// Vec3i.west(distance as int) as Vec3i;
myVec3i.west(myInt);

Parameters:

distance Type: int

Return Type: Vec3i

Getter
script.zs
// Vec3i.x as int
myVec3i.x

Return Type: int

x() as int
script.zs
// Vec3i.x() as int;
myVec3i.x();

Return Type: int

Getter
script.zs
// Vec3i.y as int
myVec3i.y

Return Type: int

y() as int
script.zs
// Vec3i.y() as int;
myVec3i.y();

Return Type: int

Getter
script.zs
// Vec3i.z as int
myVec3i.z

Return Type: int

z() as int
script.zs
// Vec3i.z() as int;
myVec3i.z();

Return Type: int