ModPack
Index
Interfaces
Type Aliases
Interfaces
DirectoryExtractStrategy
assignToDirectory
Parameters
dir: ModPackDirectory
Returns void
getAssignedDirectory
Returns ModPackDeclaredDirectory
getEntryName
Parameters
str: string
file: File
Returns string
getFilesToExtract
Returns List<File>
getFullEntryName
Parameters
file: File
Returns string
DirectoryRequestStrategy
assignToDirectory
Parameters
dir: ModPackDirectory
Returns void
assure
Parameters
location: string
name: string
Returns File
get
Parameters
str: string
Returns File
getAll
Parameters
str: string
Returns List<File>
getAllFiles
Returns List<File>
getAllLocations
Returns List<string>
getAssignedDirectory
Returns ModPackDeclaredDirectory
remove
Parameters
location: string
name: string
Returns boolean
DirectorySetRequestHandler
add
Parameters
dir: ModPackDirectory
Returns void
get
Parameters
location: string
name: string
Returns File
getAllAtLocation
Parameters
location: string
Returns List<File>
getAllLocations
Returns List<string>
getDirectories
Returns List<ModPackDirectory>
DirectoryUpdateStrategy
assignToDirectory
Parameters
dir: ModPackDirectory
Returns void
beginUpdate
Returns void
finishUpdate
Returns void
getAssignedDirectory
Returns ModPackDeclaredDirectory
updateFile
Parameters
str: string
stream: InputStream
Returns void
IDirectoryAssignable
assignToDirectory
Parameters
dir: ModPackDirectory
Returns void
getAssignedDirectory
Returns ModPackDeclaredDirectory
ModPack
addDirectory
Parameters
directory: ModPackDirectory
Returns ModPack
getAllDirectories
Returns List<ModPackDirectory>
getDirectoriesOfType
Parameters
type: number
Returns List<ModPackDirectory>
getDirectoryOfType
Parameters
type: number
Returns ModPackDirectory
getExternalServersFile
Returns File
getIconFile
Returns File
getJsAdapter
Returns ModPackJsAdapter
getManifest
Returns ModPackManifest
getManifestFile
Returns File
getPreferences
Returns ModPackPreferences
getRequestHandler
Parameters
type: number
Returns DirectorySetRequestHandler
getRootDirectory
Returns File
reloadAndValidateManifest
Returns boolean
ModPackDeclaredDirectory
readonlypath
readonlytype
getPath
Returns string
getType
Returns number
ModPackDirectory
assignToModPack
Parameters
pack: ModPack
Returns void
assureDirectoryRoot
Returns boolean
getExtractStrategy
Returns DirectoryExtractStrategy
getLocalPathFromEntry
Parameters
entryName: string
Returns string
getLocation
Returns File
getPathPattern
Returns string
getPathPatternRegex
Returns Pattern
getRequestStrategy
Returns DirectoryRequestStrategy
getType
Returns number
getUpdateStrategy
Returns DirectoryUpdateStrategy
ModPackJsAdapter
Interface representing ModPack.
getAllDirectories
Returns ModPackDirectory[]
getDirectoriesOfType
Parameters
type: string
Returns ModPackDirectory[]
getDirectoryOfType
Parameters
type: string
Returns ModPackDirectory
getManifest
Returns ModPackManifest
getModPack
Returns ModPack
getModsDirectoryPath
Returns string
getPreferences
Returns ModPackPreferences
getRequestHandler
Parameters
type: string
Returns DirectorySetRequestHandler
getRootDirectory
Returns File
getRootDirectoryPath
Returns string
ModPackManifest
createDeclaredDirectoriesForModPack
Parameters
pack: ModPack
Returns List<ModPackDirectory>
edit
Returns ModPackManifestEditor
getAuthor
Returns string
getDeclaredDirectories
Returns List<ModPackDeclaredDirectory>
getDescription
Returns string
getDisplayedName
Returns string
getPackName
Returns string
getVersionCode
Returns number
getVersionName
Returns string
loadFile
Parameters
file: File
Returns void
loadInputStream
Parameters
stream: InputStream
Returns void
loadJson
Parameters
json: JSONObject
Returns void
setAuthor
Parameters
author: string
Returns void
setDescription
Parameters
descr: string
Returns void
setDisplayedName
Parameters
name: string
Returns void
setPackName
Parameters
name: string
Returns void
setVersionCode
Parameters
code: number
Returns void
setVersionName
Parameters
name: string
Returns void
ModPackManifestEditor
addIfMissing
Parameters
key: string
value: any
Returns ModPackManifestEditor
commit
Returns void
put
Parameters
key: string
value: any
Returns ModPackManifestEditor
ModPackPreferences
getBoolean
Parameters
key: string
fallback: boolean
Returns boolean
getDouble
Parameters
key: string
fallback: number
Returns number
getFile
Returns File
getInt
Parameters
key: string
fallback: number
Returns number
getLong
Parameters
key: string
fallback: number
Returns number
getModPack
Returns ModPack
getString
Parameters
key: string
fallback: string
Returns string
reload
Returns ModPackPreferences
save
Returns ModPackPreferences
setBoolean
Parameters
key: string
value: boolean
Returns ModPackPreferences
setDouble
Parameters
key: string
value: number
Returns ModPackPreferences
setInt
Parameters
key: string
value: number
Returns ModPackPreferences
setLong
Parameters
key: string
value: number
Returns ModPackPreferences
setString
Parameters
key: string
value: string
Returns ModPackPreferences
Type Aliases
ModPackDeclaredDirectoryType
Crutch to replace ModPackManifest.DeclaredDirectoryType enum:
- 0 - RESOURCE
- 1 - USER_DATA
- 2 - CONFIG
- 3 - CACHE
- 4 - INVALID
ModPackDirectoryType
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
2.2.1b85