GameEnvironment.java
918 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* This file is part of LiteLoader.
* Copyright (C) 2012-16 Adam Mummery-Smith
* All Rights Reserved.
*/
package com.mumfrey.liteloader.launch;
import java.io.File;
public interface GameEnvironment
{
/**
* Get the game directory, this is the root directory of the game profile
* specified by the user in the launcher.
*/
public abstract File getGameDirectory();
/**
* Get the assets directory
*/
public abstract File getAssetsDirectory();
/**
* Get the active profile name
*/
public abstract String getProfile();
/**
* Get the "mods" folder, used to get the base path for enumerators and
* config for legacy mods.
*/
public abstract File getModsFolder();
/**
* Get the path to a JSON file describing a mod repository layout, can be
* null if not defined
*/
public abstract String getModsRepoFile();
}