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 |
fontRendererObj
The FontRenderer used by GuiScreen
|
int |
height
The height of the screen object.
|
protected static RenderItem |
itemRender
Holds a instance of RenderItem, used to draw the achievement icons on screen (is based on ItemStack)
|
protected java.util.List |
labelList
A list of all the labels in this container.
|
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 p_146284_1_) |
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 p_146278_1_)
Draws the background (i is always 0 as of 1.2.2)
|
protected void |
drawCreativeTabHoveringText(java.lang.String p_146279_1_,
int p_146279_2_,
int p_146279_3_)
Draws the text when mouse is over creative inventory tab.
|
void |
drawDefaultBackground()
Draws either a gradient over the background screen (when it exists) or a flat gradient over background.png
|
protected void |
drawHoveringText(java.util.List p_146283_1_,
int p_146283_2_,
int p_146283_3_,
FontRenderer font) |
void |
drawScreen(int par1,
int par2,
float par3)
Draws the screen and all the components in it.
|
void |
drawWorldBackground(int p_146270_1_) |
protected void |
func_146283_a(java.util.List p_146283_1_,
int p_146283_2_,
int p_146283_3_) |
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()
Returns true if either windows ctrl key is down or if either mac meta key is down
|
static boolean |
isShiftKeyDown()
Returns true if either shift key is down
|
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 p_146273_1_,
int p_146273_2_,
int p_146273_3_,
long p_146273_4_)
Called when a mouse button is pressed and the mouse is moved around.
|
protected void |
mouseMovedOrUp(int p_146286_1_,
int p_146286_2_,
int p_146286_3_)
Called when the mouse is moved or a mouse button is released.
|
void |
onGuiClosed()
Called when the screen is unloaded.
|
protected void |
renderToolTip(ItemStack p_146285_1_,
int p_146285_2_,
int p_146285_3_) |
static void |
setClipboardString(java.lang.String p_146275_0_)
Stores the given string in the system clipboard
|
void |
setWorldAndResolution(Minecraft p_146280_1_,
int p_146280_2_,
int p_146280_3_)
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, func_146110_a
protected static RenderItem itemRender
public Minecraft mc
public int width
public int height
protected java.util.List buttonList
protected java.util.List labelList
public boolean allowUserInput
protected FontRenderer fontRendererObj
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 p_146275_0_)
protected void renderToolTip(ItemStack p_146285_1_, int p_146285_2_, int p_146285_3_)
protected void drawCreativeTabHoveringText(java.lang.String p_146279_1_, int p_146279_2_, int p_146279_3_)
protected void func_146283_a(java.util.List p_146283_1_, int p_146283_2_, int p_146283_3_)
protected void drawHoveringText(java.util.List p_146283_1_, int p_146283_2_, int p_146283_3_, FontRenderer font)
protected void mouseClicked(int par1, int par2, int par3)
protected void mouseMovedOrUp(int p_146286_1_, int p_146286_2_, int p_146286_3_)
protected void mouseClickMove(int p_146273_1_, int p_146273_2_, int p_146273_3_, long p_146273_4_)
protected void actionPerformed(GuiButton p_146284_1_)
public void setWorldAndResolution(Minecraft p_146280_1_, int p_146280_2_, int p_146280_3_)
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 p_146270_1_)
public void drawBackground(int p_146278_1_)
public boolean doesGuiPauseGame()
public void confirmClicked(boolean par1, int par2)
public static boolean isCtrlKeyDown()
public static boolean isShiftKeyDown()