GameEnvironment.java 918 Bytes
/*
 * 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();
}