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);
    }
}

@@ -95,16 +95,74 @@
 Loader;%0A
+import net.acomputerdog.BlazeLoader.proxy.MinecraftProxy;%0A
 import n
@@ -239,44 +239,8 @@
 ent;
-%0Aimport net.minecraft.src.Minecraft;
 %0A%0Aim
@@ -465,16 +465,21 @@
 inecraft
+Proxy
  theMine

Change ApiBase.theMinecraft to be instance of MinecraftProxy