Home Migration Guide Getting Started With Scripts Commands Examples
BracketHandlers

IPosition

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.dispenser.IPosition;

Methods

Return Type: double

script.zs
// IPosition.getX() as double
myIPosition.getX();

Return Type: double

script.zs
// IPosition.getY() as double
myIPosition.getY();

Return Type: double

script.zs
// IPosition.getZ() as double
myIPosition.getZ();

Properties

NameTypeHas GetterHas SetterDescription
Name
x
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
y
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided
Name
z
Type
double
Has Getter
true
Has Setter
false
Description
No Description Provided