Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Pack

Hierarchy

  • Pack

Index

Constructors

constructor

Properties

Private Readonly #options

#options: PackOptions

Private #scope

#scope: string | boolean

作用域

isModule

isModule: boolean = false

Accessors

mcmeta

  • get mcmeta(): Mcmeta

packname

  • get packname(): string

scope

  • get scope(): string | boolean

Methods

add

create

  • create(): {}

Private createFunctionTagFile

  • createFunctionTagFile(tagList: File<{}>[]): void

Private createMcmeta

load

  • load(): void

Static cacheFile

Static cachePack

  • cachePack(pack: Pack): void

Static existFile

Static existPack

  • existPack(pack: Pack): boolean

Static getPackVersion

  • getPackVersion(gameVersion?: string): 3 | 4 | 5 | 6 | 7
    • 1.13-1.14 版本为 4
    • 1.15 版本为 5
    • 1.16.2-1.16.4 版本为 6
    • 1.17 版本为 7

    Parameters

    • gameVersion: string = ''

      游戏版本,例如1.17.1

    Returns 3 | 4 | 5 | 6 | 7

Generated using TypeDoc