Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Properties

address?: string
featuresList: Feature[]

A list of all the Feature objects in the parcel

owner: string = ""

Owner of the parcel

players: Map<string, Player>

A Map of all the players connected to the parcel; <token -> player>

snapshots: Snapshot[]

A list of all the snapshots of the parcel; Is empty until fetchSnapshots() is called.

x1: number
x2: number
y1: number
y2: number
z1: number
z2: number

Accessors

  • get allowLoggedInOnly(): boolean
  • set allowLoggedInOnly(state: boolean): void
  • Returns boolean

  • Parameters

    • state: boolean

    Returns void

  • get allowedWallets(): string[]
  • Returns string[]

  • get isPrivate(): boolean
  • set isPrivate(state: boolean): void
  • Returns boolean

  • Parameters

    • state: boolean

    Returns void

  • get summary(): { contributors?: string[]; features?: FeatureDescription[]; id: string | number; palette?: string[]; tileset?: string; voxels?: string }
  • Returns a summary of the parcel

    Returns { contributors?: string[]; features?: FeatureDescription[]; id: string | number; palette?: string[]; tileset?: string; voxels?: string }

    the properties of the parcel object.

    • Optional contributors?: string[]
    • Optional features?: FeatureDescription[]
    • id: string | number
    • Optional palette?: string[]
    • Optional tileset?: string
    • Optional voxels?: string

Methods

  • allow(): void
  • debug(): void
  • disallow(): void
  • fetch(): void
  • fetchSnapshots(callback?: null | Function): void
  • Parameters

    • callback: null | Function = null

    Returns void

  • getFeatureById(id: string): undefined | Feature
  • getFeatureByUuid(uuid: string): undefined | Feature
  • getFeaturesByType(type: string): Feature[]
  • getPlayerByUuid(uuid: string): undefined | Player
  • getPlayerByWallet(wallet: string): undefined | null | Player
  • getPlayersWithinParcel(): Player[]
  • isWalletAllowedIfPrivate(wallet: string): boolean
  • removeFeature(f: Feature, shouldBroadcast?: boolean): void
  • setSnapshot(): void
  • start(): void

Generated using TypeDoc