Импорт класса

Link to импорт-класса

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.

ZenScript
Copy
import crafttweaker.api.util.math.Vec3i;

Implemented Interfaces

Link to implemented-interfaces

Vec3i implements the following interfaces. That means all methods defined in these interfaces are also available in Vec3i

Name: above

Return Type: Vec3i

ZenScript
Copy
// Vec3i.above() as Vec3i

myVec3i.above();

Name: above

Return Type: Vec3i

ZenScript
Copy
Vec3i.above(distance as int) as Vec3i
ПараметрТипОписание
Параметр
distance
Тип
int
Описание
No Description Provided

Name: below

Return Type: Vec3i

ZenScript
Copy
// Vec3i.below() as Vec3i

myVec3i.below();

Name: below

Return Type: Vec3i

ZenScript
Copy
Vec3i.below(distance as int) as Vec3i
ПараметрТипОписание
Параметр
distance
Тип
int
Описание
No Description Provided

Name: closerThan

Return Type: boolean

ZenScript
Copy
Vec3i.closerThan(other as Vec3i, maxDistance as double) as boolean
ПараметрТипОписание
Параметр
other
Тип
Vec3i
Описание
No Description Provided
Параметр
maxDistance
Тип
double
Описание
No Description Provided

Name: closerThan

Return Type: boolean

ZenScript
Copy
Vec3i.closerThan(position as Position, maxDistance as double) as boolean
ПараметрТипОписание
Параметр
position
Тип
Position
Описание
No Description Provided
Параметр
maxDistance
Тип
double
Описание
No Description Provided

Name: compareTo

Return Type: int

ZenScript
Copy
Vec3i.compareTo(other as Vec3i) as int
ПараметрТипОписание
Параметр
other
Тип
Vec3i
Описание
No Description Provided

Name: cross

Return Type: Vec3i

ZenScript
Copy
Vec3i.cross(other as Vec3i) as Vec3i
ПараметрТипОписание
Параметр
other
Тип
Vec3i
Описание
No Description Provided

Name: distManhattan

Return Type: int

ZenScript
Copy
Vec3i.distManhattan(other as Vec3i) as int
ПараметрТипОписание
Параметр
other
Тип
Vec3i
Описание
No Description Provided

Name: distSqr

Return Type: double

ZenScript
Copy
Vec3i.distSqr(other as Vec3i) as double
ПараметрТипОписание
Параметр
other
Тип
Vec3i
Описание
No Description Provided

Name: distSqr

Return Type: double

ZenScript
Copy
Vec3i.distSqr(other as Vec3i, useCenter as boolean) as double
ПараметрТипОписание
Параметр
other
Тип
Vec3i
Описание
No Description Provided
Параметр
useCenter
Тип
boolean
Описание
No Description Provided

Name: distSqr

Return Type: double

ZenScript
Copy
Vec3i.distSqr(position as Position, other as boolean) as double
ПараметрТипОписание
Параметр
position
Тип
Position
Описание
No Description Provided
Параметр
other
Тип
boolean
Описание
No Description Provided

Name: distSqr

Return Type: double

ZenScript
Copy
Vec3i.distSqr(x as double, y as double, z as double, useCenter as boolean) as double
ПараметрТипОписание
Параметр
x
Тип
double
Описание
No Description Provided
Параметр
y
Тип
double
Описание
No Description Provided
Параметр
z
Тип
double
Описание
No Description Provided
Параметр
useCenter
Тип
boolean
Описание
No Description Provided

Name: east

Return Type: Vec3i

ZenScript
Copy
// Vec3i.east() as Vec3i

myVec3i.east();

Name: east

Return Type: Vec3i

ZenScript
Copy
Vec3i.east(distance as int) as Vec3i
ПараметрТипОписание
Параметр
distance
Тип
int
Описание
No Description Provided

Name: getValue

Return Type: int

ZenScript
Copy
Vec3i.getValue(axis as Axis) as int
ПараметрТипОписание
Параметр
axis
Тип
Axis
Описание
No Description Provided

Name: getX

Return Type: int

ZenScript
Copy
// Vec3i.getX() as int

myVec3i.getX();

Name: getY

Return Type: int

ZenScript
Copy
// Vec3i.getY() as int

myVec3i.getY();

Name: getZ

Return Type: int

ZenScript
Copy
// Vec3i.getZ() as int

myVec3i.getZ();

Name: multiply

Return Type: Vec3i

ZenScript
Copy
Vec3i.multiply(scalar as int) as Vec3i
ПараметрТипОписание
Параметр
scalar
Тип
int
Описание
No Description Provided

Name: north

Return Type: Vec3i

ZenScript
Copy
// Vec3i.north() as Vec3i

myVec3i.north();

Name: north

Return Type: Vec3i

ZenScript
Copy
Vec3i.north(distance as int) as Vec3i
ПараметрТипОписание
Параметр
distance
Тип
int
Описание
No Description Provided

Name: offset

Return Type: Vec3i

ZenScript
Copy
Vec3i.offset(other as Vec3i) as Vec3i
ПараметрТипОписание
Параметр
other
Тип
Vec3i
Описание
No Description Provided

Name: offset

Return Type: Vec3i

ZenScript
Copy
Vec3i.offset(x as double, y as double, z as double) as Vec3i
ПараметрТипОписание
Параметр
x
Тип
double
Описание
No Description Provided
Параметр
y
Тип
double
Описание
No Description Provided
Параметр
z
Тип
double
Описание
No Description Provided

Name: offset

Return Type: Vec3i

ZenScript
Copy
Vec3i.offset(x as int, y as int, z as int) as Vec3i
ПараметрТипОписание
Параметр
x
Тип
int
Описание
No Description Provided
Параметр
y
Тип
int
Описание
No Description Provided
Параметр
z
Тип
int
Описание
No Description Provided

Name: relative

Return Type: Vec3i

ZenScript
Copy
Vec3i.relative(direction as Direction) as Vec3i
ПараметрТипОписание
Параметр
direction
Тип
Direction
Описание
No Description Provided

Name: relative

Return Type: Vec3i

ZenScript
Copy
Vec3i.relative(axis as Axis, distanec as int) as Vec3i
ПараметрТипОписание
Параметр
axis
Тип
Axis
Описание
No Description Provided
Параметр
distanec
Тип
int
Описание
No Description Provided

Name: relative

Return Type: Vec3i

ZenScript
Copy
Vec3i.relative(direction as Direction, distance as int) as Vec3i
ПараметрТипОписание
Параметр
direction
Тип
Direction
Описание
No Description Provided
Параметр
distance
Тип
int
Описание
No Description Provided

Name: south

Return Type: Vec3i

ZenScript
Copy
// Vec3i.south() as Vec3i

myVec3i.south();

Name: south

Return Type: Vec3i

ZenScript
Copy
Vec3i.south(distance as int) as Vec3i
ПараметрТипОписание
Параметр
distance
Тип
int
Описание
No Description Provided

Name: subtract

Return Type: Vec3i

ZenScript
Copy
Vec3i.subtract(other as Vec3i) as Vec3i
ПараметрТипОписание
Параметр
other
Тип
Vec3i
Описание
No Description Provided

Name: toShortString

Return Type: string

ZenScript
Copy
// Vec3i.toShortString() as string

myVec3i.toShortString();

Name: west

Return Type: Vec3i

ZenScript
Copy
// Vec3i.west() as Vec3i

myVec3i.west();

Name: west

Return Type: Vec3i

ZenScript
Copy
Vec3i.west(distance as int) as Vec3i
ПараметрТипОписание
Параметр
distance
Тип
int
Описание
No Description Provided

Свойства

Link to свойства

НазваниеТипИмеет GetterИмеет SetterОписание
Название
toShortString
Тип
string
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
x
Тип
int
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
y
Тип
int
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided
Название
z
Тип
int
Имеет Getter
true
Имеет Setter
false
Описание
No Description Provided