Class MinecraftFolder
The Minecraft folder structure. All method will return the path related to a minecraft root like .minecraft
.
🏭 Constructors
constructor
new MinecraftFolder(root: string): MinecraftFolder
Parameters
- root:
string
Return Type
MinecraftFolder
Defined in: packages/core/folder.ts:22
🏷️ Properties
root
root: string
Defined in: packages/core/folder.ts:4, packages/core/folder.ts:22
🔑 Accessors
assets
Defined in: packages/core/folder.ts:26
lastestLog
Defined in: packages/core/folder.ts:32
launcherProfile
Defined in: packages/core/folder.ts:31
libraries
Defined in: packages/core/folder.ts:27
logs
Defined in: packages/core/folder.ts:29
maps
Defined in: packages/core/folder.ts:33
mods
Defined in: packages/core/folder.ts:24
options
Defined in: packages/core/folder.ts:30
resourcepacks
Defined in: packages/core/folder.ts:25
saves
Defined in: packages/core/folder.ts:34
screenshots
Defined in: packages/core/folder.ts:35
versions
Defined in: packages/core/folder.ts:28
🔧 Methods
getAsset
getAsset(hash: string): string
Parameters
- hash:
string
Return Type
string
Defined in: packages/core/folder.ts:58
getAssetsIndex
getAssetsIndex(versionAssets: string): string
Parameters
- versionAssets:
string
Return Type
string
Defined in: packages/core/folder.ts:57
getLibraryByPath
getLibraryByPath(libraryPath: string): string
Parameters
- libraryPath:
string
Return Type
string
Defined in: packages/core/folder.ts:53
getLog
getLog(fileName: string): string
Parameters
- fileName:
string
Return Type
string
Defined in: packages/core/folder.ts:50
getLogConfig
getLogConfig(file: string): string
Parameters
- file:
string
Return Type
string
Defined in: packages/core/folder.ts:59
getMapIcon
getMapIcon(map: string): string
Parameters
- map:
string
Return Type
string
Defined in: packages/core/folder.ts:52
getMapInfo
getMapInfo(map: string): string
Parameters
- map:
string
Return Type
string
Defined in: packages/core/folder.ts:51
getMod
getMod(fileName: string): string
Parameters
- fileName:
string
Return Type
string
Defined in: packages/core/folder.ts:49
getNativesRoot
getNativesRoot(version: string): string
Parameters
- version:
string
Return Type
string
Defined in: packages/core/folder.ts:37
getPath
getPath(path: string[]): string
Parameters
- path:
string[]
Return Type
string
Defined in: packages/core/folder.ts:60
getResourcePack
getResourcePack(fileName: string): string
Parameters
- fileName:
string
Return Type
string
Defined in: packages/core/folder.ts:48
getVersionAll
getVersionAll(version: string): string[]
Parameters
- version:
string
Return Type
string[]
Defined in: packages/core/folder.ts:41
getVersionJar
getVersionJar(version: string, type: string): string
Parameters
- version:
string
- type:
string
Return Type
string
Defined in: packages/core/folder.ts:40
getVersionJson
getVersionJson(version: string): string
Parameters
- version:
string
Return Type
string
Defined in: packages/core/folder.ts:39
getVersionRoot
getVersionRoot(version: string): string
Parameters
- version:
string
Return Type
string
Defined in: packages/core/folder.ts:38
from
from(location: MinecraftLocation): MinecraftFolder
Normal a Minecraft folder from a folder or string
Parameters
- location:
MinecraftLocation
Return Type
MinecraftFolder
Defined in: packages/core/folder.ts:14