package net.acomputerdog.BlazeLoader.api.base;

import net.acomputerdog.BlazeLoader.main.BlazeLoader;
import net.minecraft.src.EntityClientPlayerMP;
import net.minecraft.src.ILogAgent;
import net.minecraft.src.Minecraft;

import java.io.File;

/**
 * Basic API.  Contains simple functions and references to commonly used single-instance classes.
 */
public class ApiBase {

    /**
     * The instance of Minecraft
     */
    public static Minecraft theMinecraft = null;

    /**
     * The game logger
     */
    public static ILogAgent globalLogger = null;

    /**
     * Local player controller
     */
    public static EntityClientPlayerMP localPlayer = null;

    /**
     * Location of Minecraft's working directory (.minecraft).
     */
    public static File mainDir = new File("./");

    /**
     * Location of the working directory for mods.  Mods should load and save configurations, resources, etc. here.
     */
    public static File modDir = new File("./mods/");

    /**
     * Shuts down the game with a specified error code.  Use 0 for normal shutdown.
     * @param code The error code to return to the system after shutdown.
     */
    public static void shutdown(int code){
        BlazeLoader.shutdown(code);
    }

    /**
     * Shuts down the game with error code 0 (no error).
     */
    public static void shutdown(){
        shutdown(0);
    }
}

package net.acomputerdog.BlazeLoader.api.base;

import net.acomputerdog.BlazeLoader.main.BlazeLoader;
import net.acomputerdog.BlazeLoader.proxy.MinecraftProxy;
import net.minecraft.src.EntityClientPlayerMP;
import net.minecraft.src.ILogAgent;

import java.io.File;

/**
 * Basic API.  Contains simple functions and references to commonly used single-instance classes.
 */
public class ApiBase {

    /**
     * The instance of Minecraft
     */
    public static MinecraftProxy theMinecraft = null;

    /**
     * The game logger
     */
    public static ILogAgent globalLogger = null;

    /**
     * Local player controller
     */
    public static EntityClientPlayerMP localPlayer = null;

    /**
     * Location of Minecraft's working directory (.minecraft).
     */
    public static File mainDir = new File("./");

    /**
     * Location of the working directory for mods.  Mods should load and save configurations, resources, etc. here.
     */
    public static File modDir = new File("./mods/");

    /**
     * Shuts down the game with a specified error code.  Use 0 for normal shutdown.
     * @param code The error code to return to the system after shutdown.
     */
    public static void shutdown(int code){
        BlazeLoader.shutdown(code);
    }

    /**
     * Shuts down the game with error code 0 (no error).
     */
    public static void shutdown(){
        shutdown(0);
    }
}

Change ApiBase.theMinecraft to be instance of MinecraftProxy