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
Copy
import crafttweaker.api.util.math.MutableBlockPos;

Extending BlockPos

Link to extending-blockpos

MutableBlockPos extends BlockPos. That means all methods available in BlockPos are also available in MutableBlockPos

Name: clamp

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.clamp(axis as Axis, min as int, max as int) as MutableBlockPos
ParametroTipo
Parametro
axis
Tipo
Axis
Parametro
min
Tipo
int
Parametro
max
Tipo
int

Name: move

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.move(direction as Direction) as MutableBlockPos
ParametroTipo
Parametro
direction
Tipo
Direction

Name: move

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.move(other as Vec3i) as MutableBlockPos
ParametroTipo
Parametro
other
Tipo
Vec3i

Name: move

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.move(direction as Direction, distance as int) as MutableBlockPos
ParametroTipo
Parametro
direction
Tipo
Direction
Parametro
distance
Tipo
int

Name: move

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.move(x as int, y as int, z as int) as MutableBlockPos
ParametroTipo
Parametro
x
Tipo
int
Parametro
y
Tipo
int
Parametro
z
Tipo
int

Name: mutable

Return Type: MutableBlockPos

ZenScript
Copy
// MutableBlockPos.mutable() as MutableBlockPos

myMutableBlockPos.mutable();

Name: setValue

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setValue(value as long) as MutableBlockPos
ParametroTipo
Parametro
valore
Tipo
long

Name: setValue

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setValue(value as Vec3i) as MutableBlockPos
ParametroTipo
Parametro
valore
Tipo
Vec3i

Name: setValue

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setValue(x as double, y as double, z as double) as MutableBlockPos
ParametroTipo
Parametro
x
Tipo
double
Parametro
y
Tipo
double
Parametro
z
Tipo
double

Name: setValue

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setValue(x as int, y as int, z as int) as MutableBlockPos
ParametroTipo
Parametro
x
Tipo
int
Parametro
y
Tipo
int
Parametro
z
Tipo
int

Name: setValue

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setValue(axisCycle as AxisCycle, x as int, y as int, z as int) as MutableBlockPos
ParametroTipo
Parametro
axisCycle
Tipo
AxisCycle
Parametro
x
Tipo
int
Parametro
y
Tipo
int
Parametro
z
Tipo
int

Name: setWithOffset

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setWithOffset(other as Vec3i, direction as Direction) as MutableBlockPos
ParametroTipo
Parametro
other
Tipo
Vec3i
Parametro
direction
Tipo
Direction

Name: setWithOffset

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setWithOffset(other as Vec3i, offset as Vec3i) as MutableBlockPos
ParametroTipo
Parametro
other
Tipo
Vec3i
Parametro
offset
Tipo
Vec3i

Name: setWithOffset

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setWithOffset(other as Vec3i, x as int, y as int, z as int) as MutableBlockPos
ParametroTipo
Parametro
other
Tipo
Vec3i
Parametro
x
Tipo
int
Parametro
y
Tipo
int
Parametro
z
Tipo
int

Name: setX

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setX(x as int) as MutableBlockPos
ParametroTipo
Parametro
x
Tipo
int

Name: setY

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setY(y as int) as MutableBlockPos
ParametroTipo
Parametro
y
Tipo
int

Name: setZ

Return Type: MutableBlockPos

ZenScript
Copy
MutableBlockPos.setZ(z as int) as MutableBlockPos
ParametroTipo
Parametro
z
Tipo
int