public class GuiSlider extends GuiButton
Modifier and Type | Class and Description |
---|---|
static interface |
GuiSlider.FormatHelper |
Modifier and Type | Field and Description |
---|---|
private GuiSlider.FormatHelper |
formatHelper |
boolean |
isMouseDown |
private float |
max |
private float |
min |
private java.lang.String |
name |
private GuiPageButtonList.GuiResponder |
responder |
private float |
sliderPosition |
buttonTextures, displayString, enabled, height, hovered, id, visible, width, xPosition, yPosition
icons, optionsBackground, statIcons, 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 |
---|---|
float |
func_175217_d() |
void |
func_175218_a(float p_175218_1_,
boolean p_175218_2_) |
void |
func_175219_a(float p_175219_1_) |
float |
func_175220_c() |
private java.lang.String |
getDisplayString() |
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.
|
drawButton, drawButtonForegroundLayer, getButtonWidth, isMouseOver, playPressSound, setWidth
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private float sliderPosition
public boolean isMouseDown
private java.lang.String name
private final float min
private final float max
private final GuiPageButtonList.GuiResponder responder
private GuiSlider.FormatHelper formatHelper
public 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 func_175220_c()
public void func_175218_a(float p_175218_1_, boolean p_175218_2_)
public float func_175217_d()
private java.lang.String getDisplayString()
protected int getHoverState(boolean mouseOver)
getHoverState
in class GuiButton
protected void mouseDragged(Minecraft mc, int mouseX, int mouseY)
mouseDragged
in class GuiButton
public void func_175219_a(float p_175219_1_)
public boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
mousePressed
in class GuiButton
public void mouseReleased(int mouseX, int mouseY)
mouseReleased
in class GuiButton