Vec3i
Link to vec3i
Импорт класса
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 Copyimport 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
- Comparable<Vec3i>
Методы
Link to методы
Name: above
Return Type: Vec3i
ZenScript CopyVec3i.above(distance as int) as Vec3i
Параметр | Тип |
---|---|
Параметр distance | Тип int |
Name: below
Return Type: Vec3i
ZenScript CopyVec3i.below(distance as int) as Vec3i
Параметр | Тип |
---|---|
Параметр distance | Тип int |
Name: closerThan
Return Type: boolean
ZenScript CopyVec3i.closerThan(other as Vec3i, maxDistance as double) as boolean
Параметр | Тип |
---|---|
Параметр other | Тип Vec3i |
Параметр maxDistance | Тип double |
Name: compareTo
Return Type: int
ZenScript CopyVec3i.compareTo(other as Vec3i) as int
Параметр | Тип |
---|---|
Параметр other | Тип Vec3i |
Name: distManhattan
Return Type: int
ZenScript CopyVec3i.distManhattan(other as Vec3i) as int
Параметр | Тип |
---|---|
Параметр other | Тип Vec3i |
Name: distSqr
Return Type: double
ZenScript CopyVec3i.distSqr(other as Vec3i) as double
Параметр | Тип |
---|---|
Параметр other | Тип Vec3i |
Name: distToCenterSqr
Return Type: double
ZenScript CopyVec3i.distToCenterSqr(position as Position) as double
Параметр | Тип |
---|---|
Параметр position | Тип Position |
Name: distToCenterSqr
Return Type: double
ZenScript CopyVec3i.distToCenterSqr(x as double, y as double, z as double) as double
Параметр | Тип |
---|---|
Параметр x | Тип double |
Параметр y | Тип double |
Параметр z | Тип double |
Name: east
Return Type: Vec3i
ZenScript CopyVec3i.east(distance as int) as Vec3i
Параметр | Тип |
---|---|
Параметр distance | Тип int |
Name: getValue
Return Type: int
ZenScript CopyVec3i.getValue(axis as Axis) as int
Параметр | Тип |
---|---|
Параметр axis | Тип Axis |
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 CopyVec3i.multiply(scalar as int) as Vec3i
Параметр | Тип |
---|---|
Параметр scalar | Тип int |
Name: north
Return Type: Vec3i
ZenScript CopyVec3i.north(distance as int) as Vec3i
Параметр | Тип |
---|---|
Параметр distance | Тип int |
Name: offset
Return Type: Vec3i
ZenScript CopyVec3i.offset(x as double, y as double, z as double) as Vec3i
Параметр | Тип |
---|---|
Параметр x | Тип double |
Параметр y | Тип double |
Параметр z | Тип double |
Name: offset
Return Type: Vec3i
ZenScript CopyVec3i.offset(x as int, y as int, z as int) as Vec3i
Параметр | Тип |
---|---|
Параметр x | Тип int |
Параметр y | Тип int |
Параметр z | Тип int |
Name: south
Return Type: Vec3i
ZenScript CopyVec3i.south(distance as int) as Vec3i
Параметр | Тип |
---|---|
Параметр distance | Тип int |
Name: toShortString
Return Type: string
ZenScript Copy// Vec3i.toShortString() as string
myVec3i.toShortString();
Name: west
Return Type: Vec3i
ZenScript CopyVec3i.west(distance as int) as Vec3i
Параметр | Тип |
---|---|
Параметр distance | Тип int |
Свойства
Link to свойства
Название | Тип | Имеет Getter | Имеет Setter |
---|---|---|---|
Название toShortString | Тип string | Имеет Getter true | Имеет Setter false |
Название x | Тип int | Имеет Getter true | Имеет Setter false |
Название y | Тип int | Имеет Getter true | Имеет Setter false |
Название z | Тип int | Имеет Getter true | Имеет Setter false |