class GuiScreenOptionsSounds.Button extends GuiButton
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
field_146152_s |
private SoundCategory |
field_146153_r |
boolean |
field_146155_p |
float |
field_146156_o |
buttonTextures, displayString, enabled, height, hovered, id, visible, width, xPosition, yPositionicons, optionsBackground, statIcons, zLevel| Constructor and Description |
|---|
Button(int p_i45024_2_,
int p_i45024_3_,
int p_i45024_4_,
SoundCategory p_i45024_5_,
boolean p_i45024_6_) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getHoverState(boolean mouseOver)
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 mc,
int mouseX,
int mouseY)
Fired when the mouse button is dragged.
|
boolean |
mousePressed(Minecraft mc,
int mouseX,
int mouseY)
Returns true if the mouse has been pressed on this control.
|
void |
mouseReleased(int mouseX,
int mouseY)
Fired when the mouse button is released.
|
void |
playPressSound(SoundHandler soundHandlerIn) |
drawButton, drawButtonForegroundLayer, getButtonWidth, isMouseOver, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineprivate final SoundCategory field_146153_r
private final java.lang.String field_146152_s
public float field_146156_o
public boolean field_146155_p
public Button(int p_i45024_2_,
int p_i45024_3_,
int p_i45024_4_,
SoundCategory p_i45024_5_,
boolean p_i45024_6_)
protected int getHoverState(boolean mouseOver)
GuiButtongetHoverState in class GuiButtonprotected void mouseDragged(Minecraft mc, int mouseX, int mouseY)
GuiButtonmouseDragged in class GuiButtonpublic boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
GuiButtonmousePressed in class GuiButtonpublic void playPressSound(SoundHandler soundHandlerIn)
playPressSound in class GuiButtonpublic void mouseReleased(int mouseX,
int mouseY)
GuiButtonmouseReleased in class GuiButton