001 package net.minecraft.src; 002 003 import cpw.mods.fml.common.Side; 004 import cpw.mods.fml.common.asm.SideOnly; 005 006 @SideOnly(Side.CLIENT) 007 public class GuiErrorScreen extends GuiScreen 008 { 009 /** 010 * Unused class. Would contain a message drawn to the center of the screen. 011 */ 012 private String message1; 013 014 /** 015 * Unused class. Would contain a message drawn to the center of the screen. 016 */ 017 private String message2; 018 019 public GuiErrorScreen() 020 { 021 } 022 023 /** 024 * Draws the screen and all the components in it. 025 */ 026 public void drawScreen(int par1, int par2, float par3) 027 { 028 this.drawGradientRect(0, 0, this.width, this.height, -12574688, -11530224); 029 this.drawCenteredString(this.fontRenderer, this.message1, this.width / 2, 90, 16777215); 030 this.drawCenteredString(this.fontRenderer, this.message2, this.width / 2, 110, 16777215); 031 super.drawScreen(par1, par2, par3); 032 } 033 034 /** 035 * Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e). 036 */ 037 protected void keyTyped(char par1, int par2) {} 038 }