class GuiScreenOptionsSounds.Button extends GuiButton
| Modifier and Type | Field and Description |
|---|---|
private SoundCategory |
category |
private java.lang.String |
categoryName |
boolean |
pressed |
float |
volume |
BUTTON_TEXTURES, displayString, enabled, height, hovered, id, packedFGColour, visible, width, x, yICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
Button(int buttonId,
int x,
int y,
SoundCategory categoryIn,
boolean master) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getHoverState(boolean mouseOver) |
protected void |
mouseDragged(Minecraft mc,
int mouseX,
int mouseY) |
boolean |
mousePressed(Minecraft mc,
int mouseX,
int mouseY) |
void |
mouseReleased(int mouseX,
int mouseY) |
void |
playPressSound(SoundHandler soundHandlerIn) |
drawButton, drawButtonForegroundLayer, getButtonWidth, isMouseOver, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineprivate final SoundCategory category
private final java.lang.String categoryName
public float volume
public boolean pressed
public Button(int buttonId,
int x,
int y,
SoundCategory categoryIn,
boolean master)
protected int getHoverState(boolean mouseOver)
getHoverState in class GuiButtonprotected void mouseDragged(Minecraft mc, int mouseX, int mouseY)
mouseDragged in class GuiButtonpublic boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
mousePressed in class GuiButtonpublic void playPressSound(SoundHandler soundHandlerIn)
playPressSound in class GuiButtonpublic void mouseReleased(int mouseX,
int mouseY)
mouseReleased in class GuiButton