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

Mod

Index

Namespaces

BuildConfig

BuildConfig:

BuildableDir

BuildableDir:

dir

dir: string

json

json: JSONObject

targetSource

targetSource: string

isRelatedSource

  • isRelatedSource(source: Source): boolean
  • Parameters

    • source: Source

    Returns boolean

setDir

  • setDir(dir: string): void
  • Parameters

    • dir: string

    Returns void

setTargetSource

  • setTargetSource(dir: string): void
  • Parameters

    • dir: string

    Returns void

DeclaredDirectory

DeclaredDirectory:

readonlypath

path: string

readonlyversion

version: any

getFile

  • getFile(root: File): File
  • Parameters

    • root: File

    Returns File

DefaultConfig

DefaultConfig:

apiInstance

apiInstance: any

behaviorPacksDir

behaviorPacksDir: string

buildType

buildType: number

readonlygameVersion

gameVersion: any

json

json: JSONObject

libDir

libDir: string

optimizationLevel

optimizationLevel: number

resourcePacksDir

resourcePacksDir: string

setupScriptDir

setupScriptDir: string

setAPI

  • setAPI(api: any): void
  • Parameters

    • api: any

    Returns void

setBuildType

  • setBuildType(type: number): void
  • Parameters

    • type: number

    Returns void

setLibDir

  • setLibDir(dir: string): void
  • Parameters

    • dir: string

    Returns void

setMinecraftBehaviorPacksDir

  • setMinecraftBehaviorPacksDir(dir: string): void
  • Parameters

    • dir: string

    Returns void

setMinecraftResourcePacksDir

  • setMinecraftResourcePacksDir(dir: string): void
  • Parameters

    • dir: string

    Returns void

setOptimizationLevel

  • setOptimizationLevel(level: number): void
  • Parameters

    • level: number

    Returns void

setSetupScriptDir

  • setSetupScriptDir(dir: string): void
  • Parameters

    • dir: string

    Returns void

ResourceDir

ResourceDir:

readonlygameVersion

gameVersion: any

json

json: JSONObject

resourceType

resourceType: number

setPath

  • setPath(path: string): void
  • Parameters

    • path: string

    Returns void

setResourceType

  • setResourceType(type: number): void
  • Parameters

    • type: number

    Returns void

Source

Source:

apiInstance

apiInstance: any

readonlygameVersion

gameVersion: any

json

json: JSONObject

optimizationLevel

optimizationLevel: number

path

path: string

sourceName

sourceName: string

sourceType

sourceType: number

setAPI

  • setAPI(api: any): void
  • Parameters

    • api: any

    Returns void

setOptimizationLevel

  • setOptimizationLevel(level: number): void
  • Parameters

    • level: number

    Returns void

setPath

  • setPath(path: string): void
  • Parameters

    • path: string

    Returns void

setSourceName

  • setSourceName(sourceName: string): void
  • Parameters

    • sourceName: string

    Returns void

setSourceType

  • setSourceType(type: number): void
  • Parameters

    • type: number

    Returns void

Interfaces

BuildConfig

BuildConfig:

buildableDirs

buildableDirs: ArrayList<BuildableDir>

defaultConfig

defaultConfig: DefaultConfig

javaDirectories

javaDirectories: ArrayList<DeclaredDirectory>

nativeDirectories

nativeDirectories: ArrayList<DeclaredDirectory>

resourceDirs

resourceDirs: ArrayList<ResourceDir>

sourcesToCompile

sourcesToCompile: ArrayList<Source>

findRelatedBuildableDir

  • findRelatedBuildableDir(source: Source): BuildableDir
  • Parameters

    • source: Source

    Returns BuildableDir

getAllSourcesToCompile

  • getAllSourcesToCompile(useApi: boolean): ArrayList<Source>
  • Parameters

    • useApi: boolean

    Returns ArrayList<Source>

getBuildType

  • getBuildType(): number
  • Returns number

getDefaultAPI

  • getDefaultAPI(): any
  • Returns any

getName

  • getName(): string
  • Returns string

isValid

  • isValid(): boolean
  • Returns boolean

read

  • read(): boolean
  • Returns boolean

save

  • save(file: File): void
  • save(): void
  • Parameters

    • file: File

    Returns void

validate

  • validate(): void
  • Returns void

CompiledSources

CompiledSources:

addCompiledSource

  • addCompiledSource(name: string, file: File, className: string): void
  • Parameters

    • name: string
    • file: File
    • className: string

    Returns void

getCompiledSourceFilesFor

  • getCompiledSourceFilesFor(name: string): File[]
  • Parameters

    • name: string

    Returns File[]

getTargetCompilationFile

  • getTargetCompilationFile(sourcePath: string): File
  • Parameters

    • sourcePath: string

    Returns File

reset

  • reset(): void
  • Returns void

saveSourceList

  • saveSourceList(): void
  • Returns void

ModJsAdapter

ModJsAdapter:

buildConfig

buildConfig: BuildConfig

config

config: Config

dir

dir: string

isEnabled

isEnabled: boolean

isModRunning

isModRunning: boolean

RunLauncherScripts

  • RunLauncherScripts(): void
  • Returns void

RunMod

  • RunMod(additionalScope: any): void
  • Parameters

    • additionalScope: any

    Returns void

RunPreloaderScripts

  • RunPreloaderScripts(): void
  • Returns void

configureMultiplayer

  • configureMultiplayer(name: string, version: string, isClientOnly: boolean): void
  • Parameters

    • name: string
    • version: string
    • isClientOnly: boolean

    Returns void

createCompiledSources

getBuildType

  • getBuildType(): number
  • Returns number

getConfig

getFormattedAPIName

  • getFormattedAPIName(): string
  • Returns string

getGuiIcon

  • getGuiIcon(): string
  • Returns string

getInfoProperty

  • getInfoProperty(name: string): string
  • Parameters

    • name: string

    Returns string

getModPack

getModPackLocationName

  • getModPackLocationName(): string
  • @since

    2.2.1b85


    Returns string

getMultiplayerName

  • getMultiplayerName(): string
  • Returns string

getMultiplayerVersion

  • getMultiplayerVersion(): string
  • Returns string

getName

  • getName(): string
  • Returns string

getVersion

  • getVersion(): string
  • Returns string

isClientOnly

  • isClientOnly(): boolean
  • Returns boolean

isConfiguredForMultiplayer

  • isConfiguredForMultiplayer(): boolean
  • Returns boolean

onImport

  • onImport(): void
  • Returns void

runCustomSource

  • runCustomSource(name: string, additionalScope: any): void
  • Parameters

    • name: string
    • additionalScope: any

    Returns void

setBuildType

  • setBuildType(type: number): void
  • setBuildType(type: release | develop): void
  • Parameters

    • type: number

    Returns void

setModPackAndLocation

  • setModPackAndLocation(pack: ModPack, locationName: string): void
  • @since

    2.2.1b85


    Parameters

    Returns void

Type Aliases

BuildType

BuildType: number
  • 0 - RELEASE
  • 1 - DEVELOP

ResourceDirType

ResourceDirType: number
  • 0 - RESOURCE
  • 1 - GUI

SourceType

SourceType: number
  • 0 - PRELOADER
  • 1 - LAUNCHER
  • 2 - MOD
  • 3 - CUSTOM
  • 4 - LIBRARY