Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Location

坐标类

Hierarchy

  • Location

Index

Constructors

constructor

Properties

x

x: number

坐标x

y

y: number

坐标y

z

z: number

坐标z

Methods

getRange

  • getRange(location: Location): [number, number, number]

merge

multiply

  • multiply(matrix: number): Location
  • multiply(matrix: [number, number, number]): Location

toAbsolute

  • toAbsolute(): string

toArray

  • toArray(): [number, number, number]

toJson

  • toJson(): { x: number; y: number; z: number }

toLocal

  • toLocal(): string

toNbtString

  • toNbtString(): string

toRelative

  • toRelative(): string

toString

  • toString(modifier?: LocationModifier): string

translate

Static from

Generated using TypeDoc