YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.client.gui.GuiScreen Class Reference
Inheritance diagram for net.minecraft.client.gui.GuiScreen:
net.minecraft.client.gui.Gui cpw.mods.fml.client.GuiModList cpw.mods.fml.client.GuiModsMissingForServer cpw.mods.fml.client.GuiSortingProblem net.minecraft.client.gui.achievement.GuiAchievements net.minecraft.client.gui.achievement.GuiStats net.minecraft.client.gui.GuiChat net.minecraft.client.gui.GuiCommandBlock net.minecraft.client.gui.GuiControls net.minecraft.client.gui.GuiCreateFlatWorld net.minecraft.client.gui.GuiCreateWorld net.minecraft.client.gui.GuiDisconnected net.minecraft.client.gui.GuiDownloadTerrain net.minecraft.client.gui.GuiErrorScreen net.minecraft.client.gui.GuiFlatPresets net.minecraft.client.gui.GuiGameOver net.minecraft.client.gui.GuiIngameMenu net.minecraft.client.gui.GuiLanguage net.minecraft.client.gui.GuiMainMenu net.minecraft.client.gui.GuiMemoryErrorScreen net.minecraft.client.gui.GuiMultiplayer net.minecraft.client.gui.GuiOptions net.minecraft.client.gui.GuiProgress net.minecraft.client.gui.GuiRenameWorld net.minecraft.client.gui.GuiScreenAddServer net.minecraft.client.gui.GuiScreenBook net.minecraft.client.gui.GuiScreenConfigureWorld net.minecraft.client.gui.GuiScreenCreateOnlineWorld net.minecraft.client.gui.GuiScreenDemo net.minecraft.client.gui.GuiScreenDisconnectedOnline net.minecraft.client.gui.GuiScreenEditOnlineWorld net.minecraft.client.gui.GuiScreenInvite net.minecraft.client.gui.GuiScreenLongRunningTask net.minecraft.client.gui.GuiScreenOnlineServers net.minecraft.client.gui.GuiScreenResetWorld net.minecraft.client.gui.GuiScreenServerList net.minecraft.client.gui.GuiScreenSubscription net.minecraft.client.gui.GuiSelectWorld net.minecraft.client.gui.GuiShareToLan net.minecraft.client.gui.GuiSnooper net.minecraft.client.gui.GuiVideoSettings net.minecraft.client.gui.GuiWinGame net.minecraft.client.gui.GuiYesNo net.minecraft.client.gui.inventory.GuiContainer net.minecraft.client.gui.inventory.GuiEditSign net.minecraft.client.gui.ScreenChatOptions net.minecraft.client.multiplayer.GuiConnecting net.minecraft.client.texturepacks.GuiTexturePacks

Public Member Functions

void drawScreen (int par1, int par2, float par3)
 
void setWorldAndResolution (Minecraft par1Minecraft, int par2, int par3)
 
void initGui ()
 
void handleInput ()
 
void handleMouseInput ()
 
void handleKeyboardInput ()
 
void updateScreen ()
 
void onGuiClosed ()
 
void drawDefaultBackground ()
 
void drawWorldBackground (int par1)
 
void drawBackground (int par1)
 
boolean doesGuiPauseGame ()
 
void confirmClicked (boolean par1, int par2)
 
- Public Member Functions inherited from net.minecraft.client.gui.Gui
void drawCenteredString (FontRenderer par1FontRenderer, String par2Str, int par3, int par4, int par5)
 
void drawString (FontRenderer par1FontRenderer, String par2Str, int par3, int par4, int par5)
 
void drawTexturedModalRect (int par1, int par2, int par3, int par4, int par5, int par6)
 
void drawTexturedModelRectFromIcon (int par1, int par2, Icon par3Icon, int par4, int par5)
 

Static Public Member Functions

static String getClipboardString ()
 
static void setClipboardString (String par0Str)
 
static boolean isCtrlKeyDown ()
 
static boolean isShiftKeyDown ()
 
- Static Public Member Functions inherited from net.minecraft.client.gui.Gui
static void drawRect (int par0, int par1, int par2, int par3, int par4)
 

Public Attributes

int width
 
int height
 
boolean allowUserInput = false
 
GuiParticle guiParticles
 

Static Public Attributes

static final boolean isMacOs = Minecraft.getOs() == EnumOS.MACOS
 

Protected Member Functions

void keyTyped (char par1, int par2)
 
void mouseClicked (int par1, int par2, int par3)
 
void mouseMovedOrUp (int par1, int par2, int par3)
 
void func_85041_a (int par1, int par2, int par3, long par4)
 
void actionPerformed (GuiButton par1GuiButton)
 
- Protected Member Functions inherited from net.minecraft.client.gui.Gui
void drawHorizontalLine (int par1, int par2, int par3, int par4)
 
void drawVerticalLine (int par1, int par2, int par3, int par4)
 
void drawGradientRect (int par1, int par2, int par3, int par4, int par5, int par6)
 

Protected Attributes

Minecraft mc
 
List buttonList = new ArrayList()
 
FontRenderer fontRenderer
 
- Protected Attributes inherited from net.minecraft.client.gui.Gui
float zLevel = 0.0F
 

Member Function Documentation

void net.minecraft.client.gui.GuiScreen.actionPerformed ( GuiButton  par1GuiButton)
protected

Fired when a control is clicked. This is the equivalent of ActionListener.actionPerformed(ActionEvent e).

void net.minecraft.client.gui.GuiScreen.confirmClicked ( boolean  par1,
int  par2 
)
boolean net.minecraft.client.gui.GuiScreen.doesGuiPauseGame ( )

Returns true if this GUI should pause the game when it is displayed in single-player

void net.minecraft.client.gui.GuiScreen.drawBackground ( int  par1)

Draws the background (i is always 0 as of 1.2.2)

void net.minecraft.client.gui.GuiScreen.drawDefaultBackground ( )

Draws either a gradient over the background screen (when it exists) or a flat gradient over background.png

void net.minecraft.client.gui.GuiScreen.drawScreen ( int  par1,
int  par2,
float  par3 
)

Draws the screen and all the components in it.

void net.minecraft.client.gui.GuiScreen.drawWorldBackground ( int  par1)
void net.minecraft.client.gui.GuiScreen.func_85041_a ( int  par1,
int  par2,
int  par3,
long  par4 
)
protected
static String net.minecraft.client.gui.GuiScreen.getClipboardString ( )
static

Returns a string stored in the system clipboard.

void net.minecraft.client.gui.GuiScreen.handleInput ( )

Delegates mouse and keyboard input.

void net.minecraft.client.gui.GuiScreen.handleKeyboardInput ( )

Handles keyboard input.

void net.minecraft.client.gui.GuiScreen.handleMouseInput ( )

Handles mouse input.

void net.minecraft.client.gui.GuiScreen.initGui ( )

Adds the buttons (and other controls) to the screen in question.

static boolean net.minecraft.client.gui.GuiScreen.isCtrlKeyDown ( )
static
static boolean net.minecraft.client.gui.GuiScreen.isShiftKeyDown ( )
static
void net.minecraft.client.gui.GuiScreen.keyTyped ( char  par1,
int  par2 
)
protected

Fired when a key is typed. This is the equivalent of KeyListener.keyTyped(KeyEvent e).

void net.minecraft.client.gui.GuiScreen.mouseClicked ( int  par1,
int  par2,
int  par3 
)
protected

Called when the mouse is clicked.

void net.minecraft.client.gui.GuiScreen.mouseMovedOrUp ( int  par1,
int  par2,
int  par3 
)
protected

Called when the mouse is moved or a mouse button is released. Signature: (mouseX, mouseY, which) which==-1 is mouseMove, which==0 or which==1 is mouseUp

void net.minecraft.client.gui.GuiScreen.onGuiClosed ( )

Called when the screen is unloaded. Used to disable keyboard repeat events

static void net.minecraft.client.gui.GuiScreen.setClipboardString ( String  par0Str)
static

store a string in the system clipboard

void net.minecraft.client.gui.GuiScreen.setWorldAndResolution ( Minecraft  par1Minecraft,
int  par2,
int  par3 
)

Causes the screen to lay out its subcomponents again. This is the equivalent of the Java call Container.validate()

void net.minecraft.client.gui.GuiScreen.updateScreen ( )

Called from the main game loop to update the screen.

Member Data Documentation

boolean net.minecraft.client.gui.GuiScreen.allowUserInput = false
List net.minecraft.client.gui.GuiScreen.buttonList = new ArrayList()
protected

A list of all the buttons in this container.

FontRenderer net.minecraft.client.gui.GuiScreen.fontRenderer
protected

The FontRenderer used by GuiScreen

GuiParticle net.minecraft.client.gui.GuiScreen.guiParticles
int net.minecraft.client.gui.GuiScreen.height

The height of the screen object.

final boolean net.minecraft.client.gui.GuiScreen.isMacOs = Minecraft.getOs() == EnumOS.MACOS
static
Minecraft net.minecraft.client.gui.GuiScreen.mc
protected

Reference to the Minecraft object.

int net.minecraft.client.gui.GuiScreen.width

The width of the screen object.


The documentation for this class was generated from the following file: