public class GuiButton extends Gui
Modifier and Type | Field and Description |
---|---|
protected static ResourceLocation |
buttonTextures |
java.lang.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.
|
protected boolean |
field_82253_i |
protected int |
height
Button height in pixels
|
int |
id
ID for this control.
|
protected int |
width
Button width in pixels
|
int |
xPosition
The x position of this control.
|
int |
yPosition
The y position of this control.
|
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiButton(int par1,
int par2,
int par3,
int par4,
int par5,
java.lang.String par6Str) |
GuiButton(int par1,
int par2,
int par3,
java.lang.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() |
protected int |
getHoverState(boolean par1)
Returns 0 if the button is disabled, 1 if the mouse is NOT hovering over this button and 2 if it IS hovering over
this button.
|
protected void |
mouseDragged(Minecraft par1Minecraft,
int par2,
int par3)
Fired when the mouse button is dragged.
|
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, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine
protected static final ResourceLocation buttonTextures
protected int width
protected int height
public int xPosition
public int yPosition
public java.lang.String displayString
public int id
public boolean enabled
public boolean drawButton
protected boolean field_82253_i
public GuiButton(int par1, int par2, int par3, java.lang.String par4Str)
public GuiButton(int par1, int par2, int par3, int par4, int par5, java.lang.String par6Str)
protected int getHoverState(boolean par1)
public void drawButton(Minecraft par1Minecraft, int par2, int par3)
protected void mouseDragged(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)