Implements

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Parameters

    • Optionaltowns: {
          area: number;
          balance?: number;
          bounds: TownBounds;
          colours: {
              fill: `#${string}`;
              outline: `#${string}`;
          };
          flags: {
              capital: boolean;
              explosion: boolean;
              fire: boolean;
              mobs: boolean;
              public: boolean;
              pvp: boolean;
          };
          founder?: string;
          mayor: string;
          name: string;
          nation: string;
          opacities?: {
              fill: Opacity;
              outline: Opacity;
          };
          outlaws?: string[];
          residents: string[];
          timestamps?: {
              founded: number;
              joinedNation?: number;
          };
          trusted?: string[];
          wiki?: string;
          x: number;
          z: number;
      }[]

    Returns Promise<{
        allies?: string[];
        area: number;
        capital: {
            name: string;
            x: string | number;
            z: string | number;
        };
        enemies?: string[];
        king: string;
        mapColorHexCode?: string;
        name: string;
        ranks?: {
            [key: string]: string[];
        };
        residents: string[];
        spawn?: {
            pitch?: number;
            world: string;
            x: string | number;
            y?: string | number;
            yaw?: number;
            z: string | number;
        };
        stats?: {
            balance: number;
            maxTownBlocks?: number;
            numResidents?: number;
            numTownBlocks?: number;
            numTowns?: number;
        };
        status?: Partial<{
            isCapital: boolean;
            isNPC: boolean;
            isNeutral: boolean;
            isOnline: boolean;
            isOpen: boolean;
            isOverClaimed: boolean;
            isPublic: boolean;
            isRuined: boolean;
        }>;
        towns: string[];
        uuid?: string;
        wiki?: string;
    }[]>

  • Internal

    Parameters

    • Rest...nationList: string[]

    Returns Promise<{
        allies?: string[];
        area: number;
        capital: {
            name: string;
            x: string | number;
            z: string | number;
        };
        enemies?: string[];
        king: string;
        mapColorHexCode?: string;
        name: string;
        ranks?: {
            [key: string]: string[];
        };
        residents: string[];
        spawn?: {
            pitch?: number;
            world: string;
            x: string | number;
            y?: string | number;
            yaw?: number;
            z: string | number;
        };
        stats?: {
            balance: number;
            maxTownBlocks?: number;
            numResidents?: number;
            numTownBlocks?: number;
            numTowns?: number;
        };
        status?: Partial<{
            isCapital: boolean;
            isNPC: boolean;
            isNeutral: boolean;
            isOnline: boolean;
            isOpen: boolean;
            isOverClaimed: boolean;
            isPublic: boolean;
            isRuined: boolean;
        }>;
        towns: string[];
        uuid?: string;
        wiki?: string;
    } | NotFoundError | ({
        allies?: string[];
        area: number;
        capital: {
            name: string;
            x: string | number;
            z: string | number;
        };
        enemies?: string[];
        king: string;
        mapColorHexCode?: string;
        name: string;
        ranks?: {
            [key: string]: string[];
        };
        residents: string[];
        spawn?: {
            pitch?: number;
            world: string;
            x: string | number;
            y?: string | number;
            yaw?: number;
            z: string | number;
        };
        stats?: {
            balance: number;
            maxTownBlocks?: number;
            numResidents?: number;
            numTownBlocks?: number;
            numTowns?: number;
        };
        status?: Partial<{
            isCapital: boolean;
            isNPC: boolean;
            isNeutral: boolean;
            isOnline: boolean;
            isOpen: boolean;
            isOverClaimed: boolean;
            isPublic: boolean;
            isRuined: boolean;
        }>;
        towns: string[];
        uuid?: string;
        wiki?: string;
    } | NotFoundError)[]>

  • Parameters

    • townName: string
    • nationless: boolean = true

    Returns Promise<{
        allies?: string[];
        area: number;
        capital: {
            name: string;
            x: string | number;
            z: string | number;
        };
        enemies?: string[];
        king: string;
        mapColorHexCode?: string;
        name: string;
        ranks?: {
            [key: string]: string[];
        };
        residents: string[];
        spawn?: {
            pitch?: number;
            world: string;
            x: string | number;
            y?: string | number;
            yaw?: number;
            z: string | number;
        };
        stats?: {
            balance: number;
            maxTownBlocks?: number;
            numResidents?: number;
            numTownBlocks?: number;
            numTowns?: number;
        };
        status?: Partial<{
            isCapital: boolean;
            isNPC: boolean;
            isNeutral: boolean;
            isOnline: boolean;
            isOpen: boolean;
            isOverClaimed: boolean;
            isPublic: boolean;
            isRuined: boolean;
        }>;
        towns: string[];
        uuid?: string;
        wiki?: string;
    }[]>

  • Parameters

    • location: StrictPoint2D
    • radius: StrictPoint2D
    • Optionalnations: {
          allies?: string[];
          area: number;
          capital: {
              name: string;
              x: string | number;
              z: string | number;
          };
          enemies?: string[];
          king: string;
          mapColorHexCode?: string;
          name: string;
          ranks?: {
              [key: string]: string[];
          };
          residents: string[];
          spawn?: {
              pitch?: number;
              world: string;
              x: string | number;
              y?: string | number;
              yaw?: number;
              z: string | number;
          };
          stats?: {
              balance: number;
              maxTownBlocks?: number;
              numResidents?: number;
              numTownBlocks?: number;
              numTowns?: number;
          };
          status?: Partial<{
              isCapital: boolean;
              isNPC: boolean;
              isNeutral: boolean;
              isOnline: boolean;
              isOpen: boolean;
              isOverClaimed: boolean;
              isPublic: boolean;
              isRuined: boolean;
          }>;
          towns: string[];
          uuid?: string;
          wiki?: string;
      }[]

    Returns Promise<{
        allies?: string[];
        area: number;
        capital: {
            name: string;
            x: string | number;
            z: string | number;
        };
        enemies?: string[];
        king: string;
        mapColorHexCode?: string;
        name: string;
        ranks?: {
            [key: string]: string[];
        };
        residents: string[];
        spawn?: {
            pitch?: number;
            world: string;
            x: string | number;
            y?: string | number;
            yaw?: number;
            z: string | number;
        };
        stats?: {
            balance: number;
            maxTownBlocks?: number;
            numResidents?: number;
            numTownBlocks?: number;
            numTowns?: number;
        };
        status?: Partial<{
            isCapital: boolean;
            isNPC: boolean;
            isNeutral: boolean;
            isOnline: boolean;
            isOpen: boolean;
            isOverClaimed: boolean;
            isPublic: boolean;
            isRuined: boolean;
        }>;
        towns: string[];
        uuid?: string;
        wiki?: string;
    }[]>