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.
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
MutableBlockPos.clamp(axis as Axis, min as int, max as int) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter axis | Type Axis | Description No Description Provided |
Parameter min | Type int | Description No Description Provided |
Parameter max | Type int | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.move(direction as Direction) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter direction | Type Direction | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.move(other as Vec3i) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter other | Type Vec3i | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.move(direction as Direction, distance as int) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter direction | Type Direction | Description No Description Provided |
Parameter distance | Type int | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.move(x as int, y as int, z as int) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter x | Type int | Description No Description Provided |
Parameter y | Type int | Description No Description Provided |
Parameter z | Type int | Description No Description Provided |
Return Type: MutableBlockPos
// MutableBlockPos.mutable() as MutableBlockPos
myMutableBlockPos.mutable();
Return Type: MutableBlockPos
MutableBlockPos.setValue(value as long) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter value | Type long | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.setValue(value as Vec3i) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter value | Type Vec3i | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.setValue(x as double, y as double, z as double) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter x | Type double | Description No Description Provided |
Parameter y | Type double | Description No Description Provided |
Parameter z | Type double | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.setValue(x as int, y as int, z as int) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter x | Type int | Description No Description Provided |
Parameter y | Type int | Description No Description Provided |
Parameter z | Type int | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.setValue(axisCycle as AxisCycle, x as int, y as int, z as int) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter axisCycle | Type AxisCycle | Description No Description Provided |
Parameter x | Type int | Description No Description Provided |
Parameter y | Type int | Description No Description Provided |
Parameter z | Type int | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.setWithOffset(other as Vec3i, direction as Direction) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter other | Type Vec3i | Description No Description Provided |
Parameter direction | Type Direction | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.setWithOffset(other as Vec3i, offset as Vec3i) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter other | Type Vec3i | Description No Description Provided |
Parameter offset | Type Vec3i | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.setWithOffset(other as Vec3i, x as int, y as int, z as int) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter other | Type Vec3i | Description No Description Provided |
Parameter x | Type int | Description No Description Provided |
Parameter y | Type int | Description No Description Provided |
Parameter z | Type int | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.setX(x as int) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter x | Type int | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.setY(y as int) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter y | Type int | Description No Description Provided |
Return Type: MutableBlockPos
MutableBlockPos.setZ(z as int) as MutableBlockPos
Parameter | Type | Description |
---|---|---|
Parameter z | Type int | Description No Description Provided |