Skip to content
Flint
Dokumentation

location

typePaper

A position in a world.

Egenskaber 9

location.x: number
skrivebeskyttetPaper

X coordinate.

location.y: number
skrivebeskyttetPaper

Y coordinate.

location.z: number
skrivebeskyttetPaper

Z coordinate.

location.yaw: number
skrivebeskyttetPaper

Horizontal rotation.

location.pitch: number
skrivebeskyttetPaper

Vertical rotation.

location.world: world
skrivebeskyttetPaper

The world.

location.block: block
skrivebeskyttetPaper

The block at this position.

location.highest: block
skrivebeskyttetPaper

The highest solid block in this column.

location.center: location
skrivebeskyttetPaper

The middle of the block this location is in.

Metoder 4

A new location moved by the given amounts.

True if the location is inside the box between two corners. A simple region check.

Entities within a radius of this location.

Distance to another location in the same world.