public class GuiSlider extends GuiButton
| Modifier and Type | Class and Description |
|---|---|
static interface |
GuiSlider.FormatHelper |
| Modifier and Type | Field and Description |
|---|---|
boolean |
isMouseDown |
BUTTON_TEXTURES, displayString, enabled, height, hovered, id, packedFGColour, visible, width, xPosition, yPositionICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiSlider(GuiPageButtonList.GuiResponder guiResponder,
int idIn,
int x,
int y,
java.lang.String name,
float min,
float max,
float defaultValue,
GuiSlider.FormatHelper formatter) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getHoverState(boolean mouseOver) |
float |
getSliderPosition() |
float |
getSliderValue() |
protected void |
mouseDragged(Minecraft mc,
int mouseX,
int mouseY) |
boolean |
mousePressed(Minecraft mc,
int mouseX,
int mouseY) |
void |
mouseReleased(int mouseX,
int mouseY) |
void |
setSliderPosition(float p_175219_1_) |
void |
setSliderValue(float p_175218_1_,
boolean p_175218_2_) |
drawButton, drawButtonForegroundLayer, getButtonWidth, isMouseOver, playPressSound, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLinepublic GuiSlider(GuiPageButtonList.GuiResponder guiResponder, int idIn, int x, int y, java.lang.String name, float min, float max, float defaultValue, GuiSlider.FormatHelper formatter)
public float getSliderValue()
public void setSliderValue(float p_175218_1_,
boolean p_175218_2_)
public float getSliderPosition()
protected int getHoverState(boolean mouseOver)
getHoverState in class GuiButtonprotected void mouseDragged(Minecraft mc, int mouseX, int mouseY)
mouseDragged in class GuiButtonpublic void setSliderPosition(float p_175219_1_)
public boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
mousePressed in class GuiButtonpublic void mouseReleased(int mouseX,
int mouseY)
mouseReleased in class GuiButton