Home Commands Examples Getting Started With Scripts Global Keywords
BracketDumpers BracketHandlers BracketValidators ResourceLocationBracketHandler

Position

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.api.util.Position;

Members

Getter
script.zs
// Position.x as double
myPosition.x

Return Type: double

x() as double
script.zs
// Position.x() as double;
myPosition.x();

Return Type: double

Getter
script.zs
// Position.y as double
myPosition.y

Return Type: double

y() as double
script.zs
// Position.y() as double;
myPosition.y();

Return Type: double

Getter
script.zs
// Position.z as double
myPosition.z

Return Type: double

z() as double
script.zs
// Position.z() as double;
myPosition.z();

Return Type: double