public class GuiScreen extends Gui
Modifier and Type | Field and Description |
---|---|
boolean |
allowUserInput |
protected java.util.List |
buttonList
A list of all the buttons in this container.
|
protected FontRenderer |
fontRenderer
The FontRenderer used by GuiScreen
|
int |
height
The height of the screen object.
|
protected Minecraft |
mc
Reference to the Minecraft object.
|
int |
width
The width of the screen object.
|
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiScreen() |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton par1GuiButton)
Fired when a control is clicked.
|
void |
confirmClicked(boolean par1,
int par2) |
boolean |
doesGuiPauseGame()
Returns true if this GUI should pause the game when it is displayed in single-player
|
void |
drawBackground(int par1)
Draws the background (i is always 0 as of 1.2.2)
|
void |
drawDefaultBackground()
Draws either a gradient over the background screen (when it exists) or a flat gradient over background.png
|
void |
drawScreen(int par1,
int par2,
float par3)
Draws the screen and all the components in it.
|
void |
drawWorldBackground(int par1) |
static java.lang.String |
getClipboardString()
Returns a string stored in the system clipboard.
|
void |
handleInput()
Delegates mouse and keyboard input.
|
void |
handleKeyboardInput()
Handles keyboard input.
|
void |
handleMouseInput()
Handles mouse input.
|
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
static boolean |
isCtrlKeyDown() |
static boolean |
isShiftKeyDown() |
protected void |
keyTyped(char par1,
int par2)
Fired when a key is typed.
|
protected void |
mouseClicked(int par1,
int par2,
int par3)
Called when the mouse is clicked.
|
protected void |
mouseClickMove(int par1,
int par2,
int par3,
long par4)
Called when a mouse button is pressed and the mouse is moved around.
|
protected void |
mouseMovedOrUp(int par1,
int par2,
int par3)
Called when the mouse is moved or a mouse button is released.
|
void |
onGuiClosed()
Called when the screen is unloaded.
|
static void |
setClipboardString(java.lang.String par0Str)
store a string in the system clipboard
|
void |
setWorldAndResolution(Minecraft par1Minecraft,
int par2,
int par3)
Causes the screen to lay out its subcomponents again.
|
void |
updateScreen()
Called from the main game loop to update the screen.
|
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
protected Minecraft mc
public int width
public int height
protected java.util.List buttonList
public boolean allowUserInput
protected FontRenderer fontRenderer
public void drawScreen(int par1, int par2, float par3)
protected void keyTyped(char par1, int par2)
public static java.lang.String getClipboardString()
public static void setClipboardString(java.lang.String par0Str)
protected void mouseClicked(int par1, int par2, int par3)
protected void mouseMovedOrUp(int par1, int par2, int par3)
protected void mouseClickMove(int par1, int par2, int par3, long par4)
protected void actionPerformed(GuiButton par1GuiButton)
public void setWorldAndResolution(Minecraft par1Minecraft, int par2, int par3)
public void initGui()
public void handleInput()
public void handleMouseInput()
public void handleKeyboardInput()
public void updateScreen()
public void onGuiClosed()
public void drawDefaultBackground()
public void drawWorldBackground(int par1)
public void drawBackground(int par1)
public boolean doesGuiPauseGame()
public void confirmClicked(boolean par1, int par2)
public static boolean isCtrlKeyDown()
public static boolean isShiftKeyDown()