    001    package net.minecraft.src;
    002
    003    import cpw.mods.fml.common.Side;
    004    import cpw.mods.fml.common.asm.SideOnly;
    005    import java.applet.Applet;
    006    import java.applet.AppletStub;
    007    import java.net.MalformedURLException;
    008    import java.net.URL;
    009    import java.util.Map;
    010
    011    @SideOnly(Side.CLIENT)
    012    public class MinecraftFakeLauncher extends Applet implements AppletStub
    013    {
    014        final Map field_74534_a;
    015
    016        public MinecraftFakeLauncher(Map par1Map)
    017        {
    018            this.field_74534_a = par1Map;
    019        }
    020
    021        public void appletResize(int par1, int par2) {}
    022
    023        public boolean isActive()
    024        {
    025            return true;
    026        }
    027
    028        public URL getDocumentBase()
    029        {
    030            try
    031            {
    032                return new URL("http://www.minecraft.net/game/");
    033            }
    034            catch (MalformedURLException var2)
    035            {
    036                var2.printStackTrace();
    037                return null;
    038            }
    039        }
    040
    041        public String getParameter(String par1Str)
    042        {
    043            if (this.field_74534_a.containsKey(par1Str))
    044            {
    045                return (String)this.field_74534_a.get(par1Str);
    046            }
    047            else
    048            {
    049                System.err.println("Client asked for parameter: " + par1Str);
    050                return null;
    051            }
    052        }
    053    }