MutableBlockPos
Link to mutableblockpos
Импорт класса
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.MutableBlockPos;
Extending BlockPos
Link to extending-blockpos
MutableBlockPos extends BlockPos. That means all methods available in BlockPos are also available in MutableBlockPos
Методы
Link to методы
Name: clamp
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.clamp(axis as Axis, min as int, max as int) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр axis | Тип Axis |
Параметр min | Тип int |
Параметр max | Тип int |
Name: move
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.move(direction as Direction) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр direction | Тип Direction |
Name: move
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.move(other as Vec3i) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр other | Тип Vec3i |
Name: move
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.move(direction as Direction, distance as int) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр direction | Тип Direction |
Параметр distance | Тип int |
Name: move
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.move(x as int, y as int, z as int) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр x | Тип int |
Параметр y | Тип int |
Параметр z | Тип int |
Name: mutable
Return Type: MutableBlockPos
ZenScript Copy// MutableBlockPos.mutable() as MutableBlockPos
myMutableBlockPos.mutable();
Name: setValue
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setValue(value as long) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр value | Тип long |
Name: setValue
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setValue(value as Vec3i) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр value | Тип Vec3i |
Name: setValue
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setValue(x as double, y as double, z as double) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр x | Тип double |
Параметр y | Тип double |
Параметр z | Тип double |
Name: setValue
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setValue(x as int, y as int, z as int) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр x | Тип int |
Параметр y | Тип int |
Параметр z | Тип int |
Name: setValue
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setValue(axisCycle as AxisCycle, x as int, y as int, z as int) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр axisCycle | Тип AxisCycle |
Параметр x | Тип int |
Параметр y | Тип int |
Параметр z | Тип int |
Name: setWithOffset
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setWithOffset(other as Vec3i, direction as Direction) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр other | Тип Vec3i |
Параметр direction | Тип Direction |
Name: setWithOffset
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setWithOffset(other as Vec3i, offset as Vec3i) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр other | Тип Vec3i |
Параметр offset | Тип Vec3i |
Name: setWithOffset
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setWithOffset(other as Vec3i, x as int, y as int, z as int) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр other | Тип Vec3i |
Параметр x | Тип int |
Параметр y | Тип int |
Параметр z | Тип int |
Name: setX
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setX(x as int) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр x | Тип int |
Name: setY
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setY(y as int) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр y | Тип int |
Name: setZ
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setZ(z as int) as MutableBlockPos
Параметр | Тип |
---|---|
Параметр z | Тип int |