Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Area

Hierarchy

  • Area

Index

Constructors

constructor

Properties

Private from

from: Location

Private to

Methods

fromRange

  • fromRange(range: number): Area
  • fromRange(range: [number, number, number]): Area

getFromLocation

getRange

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

getToLocation

toJson

  • toJson(modifier?: LocationModifier): { from: string; to: string }
  • 序列化

    Parameters

    • modifier: LocationModifier = ''

      标识符

    Returns { from: string; to: string }

    • from: string
    • to: string

toRangeNbtString

  • toRangeNbtString(): string

toString

  • toString(modifier?: LocationModifier): string
  • 格式化,如:1 1 1 10 10 10

    Parameters

    • modifier: LocationModifier = ''

      标识符

    Returns string

Static fromLocations

Static fromRange

Static toRangeNbtString

  • toRangeNbtString(dx: number, dy: number, dz: number): string

Generated using TypeDoc