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

GlobalPos

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.GlobalPos;

Members

Getter
script.zs
// GlobalPos.dimension as ResourceKey<Level>
myGlobalPos.dimension

Return Type: ResourceKey<Level>

static of($$0 as ResourceKey<Level>, $$1 as BlockPos) as GlobalPos
script.zs
// GlobalPos.of($$0 as ResourceKey<Level>, $$1 as BlockPos) as GlobalPos;
GlobalPos.of(myResourceKey, myBlockPos);

Parameters:

Return Type: GlobalPos

Getter
script.zs
// GlobalPos.pos as BlockPos
myGlobalPos.pos

Return Type: BlockPos