public class GuiSliderNew extends GuiButtonExtNew
| Modifier and Type | Class and Description |
|---|---|
static interface |
GuiSliderNew.ISlider |
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
dispString |
boolean |
dragging
Is this slider control being dragged.
|
boolean |
drawString |
double |
maxValue |
double |
minValue |
GuiSliderNew.ISlider |
parent |
int |
precision |
boolean |
showDecimal |
double |
sliderValue
The value of this slider control.
|
java.lang.String |
suffix |
| Constructor and Description |
|---|
GuiSliderNew(int id,
int xPos,
int yPos,
int width,
int height,
java.lang.String prefix,
java.lang.String suf,
double minVal,
double maxVal,
double currentVal,
boolean showDec,
boolean drawStr) |
GuiSliderNew(int id,
int xPos,
int yPos,
int width,
int height,
java.lang.String prefix,
java.lang.String suf,
double minVal,
double maxVal,
double currentVal,
boolean showDec,
boolean drawStr,
GuiSliderNew.ISlider par) |
GuiSliderNew(int id,
int xPos,
int yPos,
java.lang.String displayStr,
double minVal,
double maxVal,
double currentVal,
GuiSliderNew.ISlider par) |
| Modifier and Type | Method and Description |
|---|---|
int |
getHoverState(boolean par1)
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.
|
double |
getValue() |
int |
getValueInt() |
protected void |
mouseDragged(net.minecraft.client.Minecraft par1Minecraft,
int par2,
int par3)
Fired when the mouse button is dragged.
|
boolean |
mousePressed(net.minecraft.client.Minecraft par1Minecraft,
int par2,
int par3)
Returns true if the mouse has been pressed on this control.
|
void |
mouseReleased(int par1,
int par2)
Fired when the mouse button is released.
|
void |
setValue(double d) |
void |
updateSlider() |
drawButtonmouseClicked, mouseDragged, mouseReleased, onClickdrawButtonForegroundLayer, getButtonWidth, isMouseOver, playPressSound, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanFocus, charTyped, focusChanged, keyPressed, keyReleased, mouseScrolledpublic double sliderValue
public java.lang.String dispString
public boolean dragging
public boolean showDecimal
public double minValue
public double maxValue
public int precision
@Nullable public GuiSliderNew.ISlider parent
public java.lang.String suffix
public boolean drawString
public GuiSliderNew(int id,
int xPos,
int yPos,
int width,
int height,
java.lang.String prefix,
java.lang.String suf,
double minVal,
double maxVal,
double currentVal,
boolean showDec,
boolean drawStr)
public GuiSliderNew(int id,
int xPos,
int yPos,
int width,
int height,
java.lang.String prefix,
java.lang.String suf,
double minVal,
double maxVal,
double currentVal,
boolean showDec,
boolean drawStr,
@Nullable
GuiSliderNew.ISlider par)
public GuiSliderNew(int id,
int xPos,
int yPos,
java.lang.String displayStr,
double minVal,
double maxVal,
double currentVal,
GuiSliderNew.ISlider par)
public int getHoverState(boolean par1)
getHoverState in class net.minecraft.client.gui.GuiButtonprotected void mouseDragged(net.minecraft.client.Minecraft par1Minecraft,
int par2,
int par3)
mouseDragged in class net.minecraft.client.gui.GuiButtonpublic boolean mousePressed(net.minecraft.client.Minecraft par1Minecraft,
int par2,
int par3)
mousePressed in class net.minecraft.client.gui.GuiButtonpublic void updateSlider()
public void mouseReleased(int par1,
int par2)
mouseReleased in class net.minecraft.client.gui.GuiButtonpublic int getValueInt()
public double getValue()
public void setValue(double d)