public class GuiButton extends Gui
Modifier and Type | Field and Description |
---|---|
String |
displayString
The string displayed on this control.
|
boolean |
drawButton
Hides the button completely if false.
|
boolean |
enabled
True if this control is enabled, false to disable.
|
int |
id
ID for this control.
|
int |
xPosition
The x position of this control.
|
int |
yPosition
The y position of this control.
|
icons, optionsBackground, statIcons
Constructor and Description |
---|
GuiButton(int par1,
int par2,
int par3,
int par4,
int par5,
String par6Str) |
GuiButton(int par1,
int par2,
int par3,
String par4Str) |
Modifier and Type | Method and Description |
---|---|
void |
drawButton(Minecraft par1Minecraft,
int par2,
int par3)
Draws this button to the screen.
|
void |
func_82251_b(int par1,
int par2) |
boolean |
func_82252_a() |
boolean |
mousePressed(Minecraft par1Minecraft,
int par2,
int par3)
Returns true if the mouse has been pressed on this control.
|
void |
mouseReleased(int par1,
int par2)
Fired when the mouse button is released.
|
drawCenteredString, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon
public int xPosition
public int yPosition
public String displayString
public int id
public boolean enabled
public boolean drawButton
public GuiButton(int par1, int par2, int par3, String par4Str)
public GuiButton(int par1, int par2, int par3, int par4, int par5, String par6Str)
public void drawButton(Minecraft par1Minecraft, int par2, int par3)
public void mouseReleased(int par1, int par2)
public boolean mousePressed(Minecraft par1Minecraft, int par2, int par3)
public boolean func_82252_a()
public void func_82251_b(int par1, int par2)