    001    package cpw.mods.fml.client;
    002
    003    import cpw.mods.fml.common.Loader;
    004    import cpw.mods.fml.common.WrongMinecraftVersionException;
    005    import net.minecraft.src.GuiErrorScreen;
    006
    007    public class GuiCustomModLoadingErrorScreen extends GuiErrorScreen
    008    {
    009        private CustomModLoadingErrorDisplayException customException;
    010        public GuiCustomModLoadingErrorScreen(CustomModLoadingErrorDisplayException customException)
    011        {
    012            this.customException = customException;
    013        }
    014        @Override
    015
    016        /**
    017         * Adds the buttons (and other controls) to the screen in question.
    018         */
    019        public void initGui()
    020        {
    021            super.initGui();
    022            this.customException.initGui(this, fontRenderer);
    023        }
    024        @Override
    025
    026        /**
    027         * Draws the screen and all the components in it.
    028         */
    029        public void drawScreen(int par1, int par2, float par3)
    030        {
    031            this.drawDefaultBackground();
    032            this.customException.drawScreen(this, fontRenderer, par1, par2, par3);
    033        }
    034    }