Перейти к основному содержанию

ModPack

@since

2.2.1b85

Index

Interfaces

DirectoryExtractStrategy

DirectoryExtractStrategy:

assignToDirectory

  • Parameters

    Returns void

getAssignedDirectory

getEntryName

  • getEntryName(str: string, file: File): string
  • Parameters

    • str: string
    • file: File

    Returns string

getFilesToExtract

  • getFilesToExtract(): List<File>
  • Returns List<File>

getFullEntryName

  • getFullEntryName(file: File): string
  • Parameters

    • file: File

    Returns string

DirectoryRequestStrategy

DirectoryRequestStrategy:

assignToDirectory

  • Parameters

    Returns void

assure

  • assure(location: string, name: string): File
  • Parameters

    • location: string
    • name: string

    Returns File

get

  • get(str: string): File
  • get(str: string, str2: string): File
  • Parameters

    • str: string

    Returns File

getAll

  • getAll(str: string): List<File>
  • Parameters

    • str: string

    Returns List<File>

getAllFiles

  • getAllFiles(): List<File>
  • Returns List<File>

getAllLocations

  • getAllLocations(): List<string>
  • Returns List<string>

getAssignedDirectory

remove

  • remove(location: string, name: string): boolean
  • Parameters

    • location: string
    • name: string

    Returns boolean

DirectorySetRequestHandler

DirectorySetRequestHandler:

add

get

  • get(location: string, name: string): File
  • get(location: string): File
  • Parameters

    • location: string
    • name: string

    Returns File

getAllAtLocation

  • getAllAtLocation(location: string): List<File>
  • Parameters

    • location: string

    Returns List<File>

getAllLocations

  • getAllLocations(): List<string>
  • Returns List<string>

getDirectories

DirectoryUpdateStrategy

DirectoryUpdateStrategy:

assignToDirectory

  • Parameters

    Returns void

beginUpdate

  • beginUpdate(): void
  • Returns void

finishUpdate

  • finishUpdate(): void
  • Returns void

getAssignedDirectory

updateFile

  • updateFile(str: string, stream: InputStream): void
  • Parameters

    • str: string
    • stream: InputStream

    Returns void

IDirectoryAssignable

IDirectoryAssignable:

assignToDirectory

getAssignedDirectory

ModPack

ModPack:

addDirectory

getAllDirectories

getDirectoriesOfType

getDirectoryOfType

getExternalServersFile

  • getExternalServersFile(): File
  • @since

    2.3.1b116


    Returns File

getIconFile

  • getIconFile(): File
  • Returns File

getJsAdapter

getManifest

getManifestFile

  • getManifestFile(): File
  • Returns File

getPreferences

getRequestHandler

getRootDirectory

  • getRootDirectory(): File
  • Returns File

reloadAndValidateManifest

  • reloadAndValidateManifest(): boolean
  • Returns boolean

ModPackDeclaredDirectory

ModPackDeclaredDirectory:

readonlypath

path: string

readonlytype

type: number

getPath

  • getPath(): string
  • Returns string

getType

  • getType(): number
  • Returns number

ModPackDirectory

ModPackDirectory:

assignToModPack

  • assignToModPack(pack: ModPack): void
  • Parameters

    Returns void

assureDirectoryRoot

  • assureDirectoryRoot(): boolean
  • Returns boolean

getExtractStrategy

getLocalPathFromEntry

  • getLocalPathFromEntry(entryName: string): string
  • Parameters

    • entryName: string

    Returns string

getLocation

  • getLocation(): File
  • Returns File

getPathPattern

  • getPathPattern(): string
  • Returns string

getPathPatternRegex

  • getPathPatternRegex(): Pattern
  • Returns Pattern

getRequestStrategy

getType

  • getType(): number
  • Returns number

getUpdateStrategy

ModPackJsAdapter

ModPackJsAdapter:

Interface representing ModPack.

getAllDirectories

getDirectoriesOfType

getDirectoryOfType

getManifest

getModPack

getModsDirectoryPath

  • getModsDirectoryPath(): string
  • Returns string

getPreferences

getRequestHandler

getRootDirectory

  • getRootDirectory(): File
  • Returns File

getRootDirectoryPath

  • getRootDirectoryPath(): string
  • Returns string

ModPackManifest

ModPackManifest:

createDeclaredDirectoriesForModPack

edit

getAuthor

  • getAuthor(): string
  • Returns string

getDeclaredDirectories

getDescription

  • getDescription(): string
  • Returns string

getDisplayedName

  • getDisplayedName(): string
  • Returns string

getPackName

  • getPackName(): string
  • Returns string

getVersionCode

  • getVersionCode(): number
  • Returns number

getVersionName

  • getVersionName(): string
  • Returns string

loadFile

  • loadFile(file: File): void
  • Parameters

    • file: File

    Returns void

loadInputStream

  • loadInputStream(stream: InputStream): void
  • Parameters

    • stream: InputStream

    Returns void

loadJson

  • loadJson(json: JSONObject): void
  • Parameters

    • json: JSONObject

    Returns void

setAuthor

  • setAuthor(author: string): void
  • Parameters

    • author: string

    Returns void

setDescription

  • setDescription(descr: string): void
  • Parameters

    • descr: string

    Returns void

setDisplayedName

  • setDisplayedName(name: string): void
  • Parameters

    • name: string

    Returns void

setPackName

  • setPackName(name: string): void
  • Parameters

    • name: string

    Returns void

setVersionCode

  • setVersionCode(code: number): void
  • Parameters

    • code: number

    Returns void

setVersionName

  • setVersionName(name: string): void
  • Parameters

    • name: string

    Returns void

ModPackManifestEditor

ModPackManifestEditor:

addIfMissing

commit

  • commit(): void
  • Returns void

put

ModPackPreferences

ModPackPreferences:

getBoolean

  • getBoolean(key: string, fallback: boolean): boolean
  • Parameters

    • key: string
    • fallback: boolean

    Returns boolean

getDouble

  • getDouble(key: string, fallback: number): number
  • Parameters

    • key: string
    • fallback: number

    Returns number

getFile

  • getFile(): File
  • Returns File

getInt

  • getInt(key: string, fallback: number): number
  • Parameters

    • key: string
    • fallback: number

    Returns number

getLong

  • getLong(key: string, fallback: number): number
  • Parameters

    • key: string
    • fallback: number

    Returns number

getModPack

getString

  • getString(key: string, fallback: string): string
  • Parameters

    • key: string
    • fallback: string

    Returns string

reload

save

setBoolean

setDouble

setInt

setLong

setString

Type Aliases

ModPackDeclaredDirectoryType

ModPackDeclaredDirectoryType: number

Crutch to replace ModPackManifest.DeclaredDirectoryType enum:

  • 0 - RESOURCE
  • 1 - USER_DATA
  • 2 - CONFIG
  • 3 - CACHE
  • 4 - INVALID

ModPackDirectoryType

ModPackDirectoryType: number

Crutch to replace ModPackDirectory.DirectoryType enum:

  • 0 - MODS
  • 1 - MOD_ASSETS
  • 2 - ENGINE
  • 3 - CONFIG
  • 4 - CACHE
  • 5 - RESOURCE_PACKS
  • 6 - BEHAVIOR_PACKS
  • 7 - TEXTURE_PACKS
  • 8 - CUSTOM