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 |
int |
height
Button height in pixels
|
int |
id |
int |
packedFGColour |
boolean |
visible
Hides the button completely if false.
|
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 p_i1021_1_,
int p_i1021_2_,
int p_i1021_3_,
int p_i1021_4_,
int p_i1021_5_,
java.lang.String p_i1021_6_) |
GuiButton(int p_i1020_1_,
int p_i1020_2_,
int p_i1020_3_,
java.lang.String p_i1020_4_) |
| 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 |
func_154310_c() |
int |
getButtonWidth() |
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, func_152125_aprotected static final ResourceLocation buttonTextures
public int width
public 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 p_i1020_1_,
int p_i1020_2_,
int p_i1020_3_,
java.lang.String p_i1020_4_)
public GuiButton(int p_i1021_1_,
int p_i1021_2_,
int p_i1021_3_,
int p_i1021_4_,
int p_i1021_5_,
java.lang.String p_i1021_6_)
public 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()
public int func_154310_c()