Documentation
¶
Index ¶
- Constants
- func BackupWorld(worldDir string) string
- func BackupWorldWithVersion(worldDir string, versionName string) string
- func CanWriteToDir(path string) bool
- func CancelMsixvcDownload()
- func CopyVersionDataFromGDK(isPreview bool, targetName string) string
- func CopyVersionDataFromVersion(sourceName string, targetName string) string
- func CreateDesktopShortcut(name string) string
- func CreateFolder(parent string, name string) string
- func DeleteDownloadedMsixvc(version string, versionType string) string
- func DeleteVersionFolder(name string) string
- func FetchHistoricalVersions(preferCN bool) map[string]interface{}
- func GetBaseRoot() string
- func GetContentRoots(name string) types.ContentRoots
- func GetDriveStats(root string) map[string]uint64
- func GetInstallerDir() string
- func GetPathModTime(path string) int64
- func GetPathSize(path string) int64
- func GetVersionLogoDataUrl(name string) string
- func GetVersionMeta(name string) versions.VersionMeta
- func GetVersionsDir() string
- func GetWorldIconDataUrl(worldDir string) string
- func GetWorldLevelName(worldDir string) string
- func ImportMcworld(name string, player string, fileName string, data []byte, overwrite bool) string
- func InstallExtractMsixvc(ctx context.Context, name string, folderName string, isPreview bool) string
- func IsProcessRunningAtPath(exePath string) bool
- func ListDir(path string) []types.FileEntry
- func ListDrives() []string
- func ListInheritableVersionNames(versionType string) []string
- func ListVersionMetas() []versions.VersionMeta
- func OpenGameDataExplorer(isPreview bool)
- func OpenModsExplorer(name string)
- func OpenPathDir(dir string)
- func OpenWorldsExplorer(name string, isPreview bool)
- func ReadWorldLevelDatFields(worldDir string) map[string]any
- func ReadWorldLevelDatFieldsAt(worldDir string, path []string) map[string]any
- func ReconcileRegisteredFlags()
- func RemoveVersionLogo(name string) string
- func RenameVersionFolder(oldName string, newName string) string
- func ResetBaseRoot() string
- func ResolveDownloadedMsixvc(version string, versionType string) string
- func ResumeMsixvcDownload()
- func SaveVersionLogoDataUrl(name string, dataUrl string) string
- func SaveVersionLogoFromPath(name string, filePath string) string
- func SaveVersionMeta(name string, gameVersion string, typeStr string, enableIsolation bool, ...) string
- func SetBaseRoot(root string) string
- func SetWorldLevelName(worldDir string, name string) string
- func StartImportServer() (*http.Server, net.Listener, string)
- func StartMsixvcDownload(ctx context.Context, url string) string
- func TestMirrorLatencies(urls []string, timeoutMs int) []map[string]interface{}
- func ValidateVersionFolderName(name string) string
- func WriteWorldLevelDatFields(worldDir string, args map[string]any) string
- func WriteWorldLevelDatFieldsAt(worldDir string, args map[string]any) string
- type ContentCounts
- type KnownFolder
- type VersionStatus
Constants ¶
View Source
const ( EventExtractError = "extract.error" EventExtractDone = "extract.done" EventExtractProgress = "extract.progress" )
Variables ¶
This section is empty.
Functions ¶
func BackupWorld ¶
func BackupWorldWithVersion ¶
func CanWriteToDir ¶
func CancelMsixvcDownload ¶
func CancelMsixvcDownload()
func CopyVersionDataFromGDK ¶
func CreateDesktopShortcut ¶
func CreateFolder ¶
func DeleteDownloadedMsixvc ¶
func DeleteVersionFolder ¶
func FetchHistoricalVersions ¶
func GetBaseRoot ¶
func GetBaseRoot() string
func GetContentRoots ¶
func GetContentRoots(name string) types.ContentRoots
func GetDriveStats ¶
func GetInstallerDir ¶
func GetInstallerDir() string
func GetPathModTime ¶
func GetPathSize ¶
func GetVersionLogoDataUrl ¶
func GetVersionMeta ¶ added in v0.0.20
func GetVersionMeta(name string) versions.VersionMeta
func GetVersionsDir ¶
func GetVersionsDir() string
func GetWorldIconDataUrl ¶
func GetWorldLevelName ¶
func ImportMcworld ¶
func InstallExtractMsixvc ¶
func IsProcessRunningAtPath ¶
func ListDrives ¶
func ListDrives() []string
func ListVersionMetas ¶
func ListVersionMetas() []versions.VersionMeta
func OpenGameDataExplorer ¶
func OpenGameDataExplorer(isPreview bool)
func OpenModsExplorer ¶
func OpenModsExplorer(name string)
func OpenPathDir ¶
func OpenPathDir(dir string)
func OpenWorldsExplorer ¶
func ReadWorldLevelDatFields ¶
func ReconcileRegisteredFlags ¶ added in v0.0.20
func ReconcileRegisteredFlags()
func RemoveVersionLogo ¶
func RenameVersionFolder ¶
func ResetBaseRoot ¶
func ResetBaseRoot() string
func ResolveDownloadedMsixvc ¶
func ResumeMsixvcDownload ¶
func ResumeMsixvcDownload()
func SaveVersionLogoDataUrl ¶
func SaveVersionLogoFromPath ¶
func SaveVersionMeta ¶
func SetBaseRoot ¶
func SetWorldLevelName ¶
func TestMirrorLatencies ¶
Types ¶
type ContentCounts ¶
type ContentCounts struct {
Worlds int `json:"worlds"`
ResourcePacks int `json:"resourcePacks"`
BehaviorPacks int `json:"behaviorPacks"`
}
func GetContentCounts ¶
func GetContentCounts(name string) ContentCounts
type KnownFolder ¶
func ListKnownFolders ¶
func ListKnownFolders() []KnownFolder
type VersionStatus ¶
type VersionStatus struct {
Version string `json:"version"`
IsInstalled bool `json:"isInstalled"`
IsDownloaded bool `json:"isDownloaded"`
Type string `json:"type"`
}
func GetAllVersionsStatus ¶
func GetAllVersionsStatus(versionsList []map[string]interface{}) []VersionStatus
func GetVersionStatus ¶
func GetVersionStatus(version string, versionType string) VersionStatus
Click to show internal directories.
Click to hide internal directories.