Latite Scripting Documentation (Exports)
Exports > world/dimension > Dimension
Interface
Source: world/dimension.d.ts:1
exists():
boolean
Returns true if in a dimension, returns false if not. You will only be able to use the Dimension methods if you are in a world.
Source: world/dimension.d.ts:5
boolean
getBlock( x:
number, y:number, z:number):Block
Gets a block at the specified position. Will return null if no block was found. (If it's air, it will also return a Block)
Source: world/dimension.d.ts:13
| Parameter | Type | Description |
|---|---|---|
| x | number |
Integer for x coordinate |
| y | number |
Integer for y coordinate |
| z | number |
Integer for z coordinate |
getName():
string
Gets the dimension's name, for example, "Overworld"
Source: world/dimension.d.ts:19
string