GlobalPos
Link to globalpos
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 Copyimport 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
Static Methods
Link to static-methods
Name: of
Return Type: GlobalPos
ZenScript CopyGlobalPos.of($$0 as ResourceKey<Level>, $$1 as BlockPos) as GlobalPos
Parameter | Type |
---|---|
Parameter $$0 | Type ResourceKey<Level> |
Parameter $$1 | Type BlockPos |
Properties
Link to properties
Name | Type | Has Getter | Has Setter |
---|---|---|---|
Name dimension | Type ResourceKey<Level> | Has Getter true | Has Setter false |
Name pos | Type BlockPos | Has Getter true | Has Setter false |