MutableBlockPos
Link to mutableblockpos
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.MutableBlockPos;
Extending BlockPos
Link to extending-blockpos
MutableBlockPos extends BlockPos. That means all methods available in BlockPos are also available in MutableBlockPos
Metodi
Link to metodi
Name: clamp
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.clamp(axis as Axis, min as int, max as int) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro axis | Tipo Axis | Descrizione No Description Provided |
Parametro min | Tipo int | Descrizione No Description Provided |
Parametro max | Tipo int | Descrizione No Description Provided |
Name: move
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.move(direction as Direction) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro direction | Tipo Direction | Descrizione No Description Provided |
Name: move
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.move(other as Vec3i) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Vec3i | Descrizione No Description Provided |
Name: move
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.move(direction as Direction, distance as int) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro direction | Tipo Direction | Descrizione No Description Provided |
Parametro distance | Tipo int | Descrizione No Description Provided |
Name: move
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.move(x as int, y as int, z as int) as MutableBlockPos
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: 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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro valore | Tipo long | Descrizione No Description Provided |
Name: setValue
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setValue(value as Vec3i) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro valore | Tipo Vec3i | Descrizione No Description Provided |
Name: setValue
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setValue(x as double, y as double, z as double) as MutableBlockPos
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: setValue
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setValue(x as int, y as int, z as int) as MutableBlockPos
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: setValue
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setValue(axisCycle as AxisCycle, x as int, y as int, z as int) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro axisCycle | Tipo AxisCycle | Descrizione No Description Provided |
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: setWithOffset
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setWithOffset(other as Vec3i, direction as Direction) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Vec3i | Descrizione No Description Provided |
Parametro direction | Tipo Direction | Descrizione No Description Provided |
Name: setWithOffset
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setWithOffset(other as Vec3i, offset as Vec3i) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Vec3i | Descrizione No Description Provided |
Parametro offset | Tipo Vec3i | Descrizione No Description Provided |
Name: setWithOffset
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setWithOffset(other as Vec3i, x as int, y as int, z as int) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro other | Tipo Vec3i | Descrizione No Description Provided |
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: setX
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setX(x as int) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro x | Tipo int | Descrizione No Description Provided |
Name: setY
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setY(y as int) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro y | Tipo int | Descrizione No Description Provided |
Name: setZ
Return Type: MutableBlockPos
ZenScript CopyMutableBlockPos.setZ(z as int) as MutableBlockPos
Parametro | Tipo | Descrizione |
---|---|---|
Parametro z | Tipo int | Descrizione No Description Provided |