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 |
enabled
True if this control is enabled, false to disable.
|
protected boolean |
field_146123_n |
protected int |
height
Button height in pixels
|
int |
id |
int |
packedFGColour |
boolean |
visible
Hides the button completely if false.
|
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 p_146112_1_,
int p_146112_2_,
int p_146112_3_)
Draws this button to the screen.
|
void |
func_146111_b(int p_146111_1_,
int p_146111_2_) |
void |
func_146113_a(SoundHandler p_146113_1_) |
boolean |
func_146115_a() |
int |
getButtonWidth() |
protected int |
getHoverState(boolean p_146114_1_)
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 p_146119_1_,
int p_146119_2_,
int p_146119_3_)
Fired when the mouse button is dragged.
|
boolean |
mousePressed(Minecraft p_146116_1_,
int p_146116_2_,
int p_146116_3_)
Returns true if the mouse has been pressed on this control.
|
void |
mouseReleased(int p_146118_1_,
int p_146118_2_)
Fired when the mouse button is released.
|
drawCenteredString, drawGradientRect, drawHorizontalLine, drawRect, drawString, drawTexturedModalRect, drawTexturedModelRectFromIcon, drawVerticalLine, func_146110_a
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 visible
protected boolean field_146123_n
public int packedFGColour
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 p_146114_1_)
public void drawButton(Minecraft p_146112_1_, int p_146112_2_, int p_146112_3_)
protected void mouseDragged(Minecraft p_146119_1_, int p_146119_2_, int p_146119_3_)
public void mouseReleased(int p_146118_1_, int p_146118_2_)
public boolean mousePressed(Minecraft p_146116_1_, int p_146116_2_, int p_146116_3_)
public boolean func_146115_a()
public void func_146111_b(int p_146111_1_, int p_146111_2_)
public void func_146113_a(SoundHandler p_146113_1_)
public int getButtonWidth()