Importing the class

Link to 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.

ZenScript
Copy
import crafttweaker.api.util.GlobalPos;

Extending Record

Link to extending-record

GlobalPos extends Record. That means all methods available in Record are also available in GlobalPos

Name: of

Return Type: GlobalPos

ZenScript
Copy
GlobalPos.of($$0 as ResourceKey<Level>, $$1 as BlockPos) as GlobalPos
ParameterType
Parameter
$$0
Type
ResourceKey<Level>
Parameter
$$1
Type
BlockPos
NameTypeHas GetterHas Setter
Name
dimension
Type
ResourceKey<Level>
Has Getter
true
Has Setter
false
Name
pos
Type
BlockPos
Has Getter
true
Has Setter
false