minecraft_dir

Function minecraft_dir 

Source
pub fn minecraft_dir() -> Option<PathBuf>
Expand description

Return the location of the user’s .minecraft directory.

Windows: %appdata%\.minecraft
Mac: $HOME/Library/Application Support/minecraft
Linux: $HOME/.minecraft

If the environment variable is not set, this will return None.