MutableBlockPos

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.MutableBlockPos;

Extending BlockPos

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

Methods

Return Type: MutableBlockPos

script.zs
MutableBlockPos.clamp(axis as Axis, min as int, max as int) as MutableBlockPos
ParameterType
Parameter
axis
Type
Axis
Parameter
min
Type
int
Parameter
max
Type
int

Return Type: MutableBlockPos

script.zs
MutableBlockPos.move(direction as Direction) as MutableBlockPos
ParameterType
Parameter
direction
Type
Direction

Return Type: MutableBlockPos

script.zs
MutableBlockPos.move(other as Vec3i) as MutableBlockPos
ParameterType
Parameter
other
Type
Vec3i

Return Type: MutableBlockPos

script.zs
MutableBlockPos.move(direction as Direction, distance as int) as MutableBlockPos
ParameterType
Parameter
direction
Type
Direction
Parameter
distance
Type
int

Return Type: MutableBlockPos

script.zs
MutableBlockPos.move(x as int, y as int, z as int) as MutableBlockPos
ParameterType
Parameter
x
Type
int
Parameter
y
Type
int
Parameter
z
Type
int

Return Type: MutableBlockPos

script.zs
// MutableBlockPos.mutable() as MutableBlockPos
myMutableBlockPos.mutable();

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setValue(value as long) as MutableBlockPos
ParameterType
Parameter
value
Type
long

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setValue(value as Vec3i) as MutableBlockPos
ParameterType
Parameter
value
Type
Vec3i

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setValue(x as double, y as double, z as double) as MutableBlockPos
ParameterType
Parameter
x
Type
double
Parameter
y
Type
double
Parameter
z
Type
double

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setValue(x as int, y as int, z as int) as MutableBlockPos
ParameterType
Parameter
x
Type
int
Parameter
y
Type
int
Parameter
z
Type
int

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setValue(axisCycle as AxisCycle, x as int, y as int, z as int) as MutableBlockPos
ParameterType
Parameter
axisCycle
Type
AxisCycle
Parameter
x
Type
int
Parameter
y
Type
int
Parameter
z
Type
int

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setWithOffset(other as Vec3i, direction as Direction) as MutableBlockPos
ParameterType
Parameter
other
Type
Vec3i
Parameter
direction
Type
Direction

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setWithOffset(other as Vec3i, offset as Vec3i) as MutableBlockPos
ParameterType
Parameter
other
Type
Vec3i
Parameter
offset
Type
Vec3i

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setWithOffset(other as Vec3i, x as int, y as int, z as int) as MutableBlockPos
ParameterType
Parameter
other
Type
Vec3i
Parameter
x
Type
int
Parameter
y
Type
int
Parameter
z
Type
int

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setX(x as int) as MutableBlockPos
ParameterType
Parameter
x
Type
int

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setY(y as int) as MutableBlockPos
ParameterType
Parameter
y
Type
int

Return Type: MutableBlockPos

script.zs
MutableBlockPos.setZ(z as int) as MutableBlockPos
ParameterType
Parameter
z
Type
int