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.

script.zs
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

Methods

Return Type: Vec3i

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

Return Type: Vec3i

script.zs
Vec3i.above(distance as int) as Vec3i
ParameterTypeDescription
Parameter
distance
Type
int
Description
No Description Provided

Return Type: Vec3i

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

Return Type: Vec3i

script.zs
Vec3i.below(distance as int) as Vec3i
ParameterTypeDescription
Parameter
distance
Type
int
Description
No Description Provided

Return Type: boolean

script.zs
Vec3i.closerThan(other as Vec3i, maxDistance as double) as boolean
ParameterTypeDescription
Parameter
other
Type
Vec3i
Description
No Description Provided
Parameter
maxDistance
Type
double
Description
No Description Provided

Return Type: boolean

script.zs
Vec3i.closerThan(position as Position, maxDistance as double) as boolean
ParameterTypeDescription
Parameter
position
Type
Position
Description
No Description Provided
Parameter
maxDistance
Type
double
Description
No Description Provided

Return Type: int

script.zs
Vec3i.compareTo(other as Vec3i) as int
ParameterTypeDescription
Parameter
other
Type
Vec3i
Description
No Description Provided

Return Type: Vec3i

script.zs
Vec3i.cross(other as Vec3i) as Vec3i
ParameterTypeDescription
Parameter
other
Type
Vec3i
Description
No Description Provided

Return Type: int

script.zs
Vec3i.distManhattan(other as Vec3i) as int
ParameterTypeDescription
Parameter
other
Type
Vec3i
Description
No Description Provided

Return Type: double

script.zs
Vec3i.distSqr(other as Vec3i) as double
ParameterTypeDescription
Parameter
other
Type
Vec3i
Description
No Description Provided

Return Type: double

script.zs
Vec3i.distSqr(other as Vec3i, useCenter as boolean) as double
ParameterTypeDescription
Parameter
other
Type
Vec3i
Description
No Description Provided
Parameter
useCenter
Type
boolean
Description
No Description Provided

Return Type: double

script.zs
Vec3i.distSqr(position as Position, other as boolean) as double
ParameterTypeDescription
Parameter
position
Type
Position
Description
No Description Provided
Parameter
other
Type
boolean
Description
No Description Provided

Return Type: double

script.zs
Vec3i.distSqr(x as double, y as double, z as double, useCenter as boolean) as double
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided
Parameter
useCenter
Type
boolean
Description
No Description Provided

Return Type: Vec3i

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

Return Type: Vec3i

script.zs
Vec3i.east(distance as int) as Vec3i
ParameterTypeDescription
Parameter
distance
Type
int
Description
No Description Provided

Return Type: int

script.zs
Vec3i.getValue(axis as Axis) as int
ParameterTypeDescription
Parameter
axis
Type
Axis
Description
No Description Provided

Return Type: int

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

Return Type: int

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

Return Type: int

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

Return Type: Vec3i

script.zs
Vec3i.multiply(scalar as int) as Vec3i
ParameterTypeDescription
Parameter
scalar
Type
int
Description
No Description Provided

Return Type: Vec3i

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

Return Type: Vec3i

script.zs
Vec3i.north(distance as int) as Vec3i
ParameterTypeDescription
Parameter
distance
Type
int
Description
No Description Provided

Return Type: Vec3i

script.zs
Vec3i.offset(other as Vec3i) as Vec3i
ParameterTypeDescription
Parameter
other
Type
Vec3i
Description
No Description Provided

Return Type: Vec3i

script.zs
Vec3i.offset(x as double, y as double, z as double) as Vec3i
ParameterTypeDescription
Parameter
x
Type
double
Description
No Description Provided
Parameter
y
Type
double
Description
No Description Provided
Parameter
z
Type
double
Description
No Description Provided

Return Type: Vec3i

script.zs
Vec3i.offset(x as int, y as int, z as int) as Vec3i
ParameterTypeDescription
Parameter
x
Type
int
Description
No Description Provided
Parameter
y
Type
int
Description
No Description Provided
Parameter
z
Type
int
Description
No Description Provided

Return Type: Vec3i

script.zs
Vec3i.relative(direction as Direction) as Vec3i
ParameterTypeDescription
Parameter
direction
Type
Direction
Description
No Description Provided

Return Type: Vec3i

script.zs
Vec3i.relative(axis as Axis, distanec as int) as Vec3i
ParameterTypeDescription
Parameter
axis
Type
Axis
Description
No Description Provided
Parameter
distanec
Type
int
Description
No Description Provided

Return Type: Vec3i

script.zs
Vec3i.relative(direction as Direction, distance as int) as Vec3i
ParameterTypeDescription
Parameter
direction
Type
Direction
Description
No Description Provided
Parameter
distance
Type
int
Description
No Description Provided

Return Type: Vec3i

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

Return Type: Vec3i

script.zs
Vec3i.south(distance as int) as Vec3i
ParameterTypeDescription
Parameter
distance
Type
int
Description
No Description Provided

Return Type: Vec3i

script.zs
Vec3i.subtract(other as Vec3i) as Vec3i
ParameterTypeDescription
Parameter
other
Type
Vec3i
Description
No Description Provided

Return Type: string

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

Return Type: Vec3i

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

Return Type: Vec3i

script.zs
Vec3i.west(distance as int) as Vec3i
ParameterTypeDescription
Parameter
distance
Type
int
Description
No Description Provided

Properties

NameTypeHas GetterHas SetterDescription
Name
toShortString
Type
string
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
x
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
y
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
z
Type
int
Has Getter
true
Has Setter
false
Description
No Description Provided