env

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package env provides directories used by the launcher for various data.

Index

Constants

This section is empty.

Variables

View Source
var AssetsDir string // Game assets directory and asset index
View Source
var AuthStorePath string // Path of the global authentication store
View Source
var CachesDir string // Caches directory, e.g. version metadata, version manifest.
View Source
var InstancesDir string // Instances directory
View Source
var JavaDir string // Mojang Java installations
View Source
var LibrariesDir string // Java libraries directory
View Source
var RootDir string // Base launcher directory. Defaults to "$HOME/.minecraft"
View Source
var TmpDir string // Directory for temporary files

Functions

func SetDirs

func SetDirs(rootDir string) error

SetDirs sets all directories to defaults from rootDir. These values can also be changed individually. However, they should not be changed between operations, as the launcher will not be able to find necessary files.

Types

This section is empty.

Directories

Path Synopsis
Package auth provides functions related to game authentication.
Package auth provides functions related to game authentication.
Package launcher provides the necessary functions to start the game.
Package launcher provides the necessary functions to start the game.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL