Vec3i
Link to vec3i
Importare la Classe
Link to importare-la-classe
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;
Interfacce Implementate
Link to interfacce-implementate
Vec3i implements the following interfaces. That means all methods defined in these interfaces are also available in Vec3i
- Comparable<Vec3i>
Metodi
Link to metodi
Name: above
Return Type: Vec3i
ZenScript CopyVec3i.above(distance as int) as Vec3i
Parametro | Tipo | Descrizione |
---|---|---|
Parametro distance | Tipo int | Descrizione No Description Provided |
Name: below
Return Type: Vec3i
ZenScript CopyVec3i.below(distance as int) as Vec3i
Parametro | Tipo | Descrizione |
---|---|---|
Parametro distance | Tipo int | Descrizione No Description Provided |
Name: closerThan
Return Type: boolean
ZenScript CopyVec3i.closerThan(other as Vec3i, maxDistance as double) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Vec3i | Descrizione No Description Provided |
Parametro maxDistance | Tipo double | Descrizione No Description Provided |
Name: closerThan
Return Type: boolean
ZenScript CopyVec3i.closerThan(position as Position, maxDistance as double) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro position | Tipo Position | Descrizione No Description Provided |
Parametro maxDistance | Tipo double | Descrizione No Description Provided |
Name: compareTo
Return Type: int
ZenScript CopyVec3i.compareTo(other as Vec3i) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Vec3i | Descrizione No Description Provided |
Name: distManhattan
Return Type: int
ZenScript CopyVec3i.distManhattan(other as Vec3i) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Vec3i | Descrizione No Description Provided |
Name: distSqr
Return Type: double
ZenScript CopyVec3i.distSqr(other as Vec3i) as double
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Vec3i | Descrizione No Description Provided |
Name: distSqr
Return Type: double
ZenScript CopyVec3i.distSqr(other as Vec3i, useCenter as boolean) as double
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Vec3i | Descrizione No Description Provided |
Parametro useCenter | Tipo boolean | Descrizione No Description Provided |
Name: distSqr
Return Type: double
ZenScript CopyVec3i.distSqr(position as Position, other as boolean) as double
Parametro | Tipo | Descrizione |
---|---|---|
Parametro position | Tipo Position | Descrizione No Description Provided |
Parametro other | Tipo boolean | Descrizione No Description Provided |
Name: distSqr
Return Type: double
ZenScript CopyVec3i.distSqr(x as double, y as double, z as double, useCenter as boolean) as double
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo double | Descrizione No Description Provided |
Parametro y | Tipo double | Descrizione No Description Provided |
Parametro z | Tipo double | Descrizione No Description Provided |
Parametro useCenter | Tipo boolean | Descrizione No Description Provided |
Name: east
Return Type: Vec3i
ZenScript CopyVec3i.east(distance as int) as Vec3i
Parametro | Tipo | Descrizione |
---|---|---|
Parametro distance | Tipo int | Descrizione No Description Provided |
Name: getValue
Return Type: int
ZenScript CopyVec3i.getValue(axis as Axis) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro axis | Tipo Axis | Descrizione 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 CopyVec3i.multiply(scalar as int) as Vec3i
Parametro | Tipo | Descrizione |
---|---|---|
Parametro scalar | Tipo int | Descrizione No Description Provided |
Name: north
Return Type: Vec3i
ZenScript CopyVec3i.north(distance as int) as Vec3i
Parametro | Tipo | Descrizione |
---|---|---|
Parametro distance | Tipo int | Descrizione No Description Provided |
Name: offset
Return Type: Vec3i
ZenScript CopyVec3i.offset(x as double, y as double, z as double) as Vec3i
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo double | Descrizione No Description Provided |
Parametro y | Tipo double | Descrizione No Description Provided |
Parametro z | Tipo double | Descrizione No Description Provided |
Name: offset
Return Type: Vec3i
ZenScript CopyVec3i.offset(x as int, y as int, z as int) as Vec3i
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo int | Descrizione No Description Provided |
Parametro y | Tipo int | Descrizione No Description Provided |
Parametro z | Tipo int | Descrizione No Description Provided |
Name: south
Return Type: Vec3i
ZenScript CopyVec3i.south(distance as int) as Vec3i
Parametro | Tipo | Descrizione |
---|---|---|
Parametro distance | Tipo int | Descrizione No Description Provided |
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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro distance | Tipo int | Descrizione No Description Provided |
Proprietà
Link to proprietà
Nome | Tipo | Ha Getter | Ha Setter | Descrizione |
---|---|---|---|---|
Nome toShortString | Tipo string | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome x | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome y | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |
Nome z | Tipo int | Ha Getter sì | Ha Setter no | Descrizione No Description Provided |