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, yPosition
icons, 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, setWidth
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private 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)
GuiButton
getHoverState
in class GuiButton
protected void mouseDragged(Minecraft mc, int mouseX, int mouseY)
GuiButton
mouseDragged
in class GuiButton
public boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
GuiButton
mousePressed
in class GuiButton
public void playPressSound(SoundHandler soundHandlerIn)
playPressSound
in class GuiButton
public void mouseReleased(int mouseX, int mouseY)
GuiButton
mouseReleased
in class GuiButton