public class Slider extends ExtendedButton
| 修飾子とタイプ | クラスと説明 | 
|---|---|
| static interface  | Slider.ISlider | 
Button.IPressable| 修飾子とタイプ | フィールドと説明 | 
|---|---|
| java.lang.String | dispString | 
| boolean | draggingIs this slider control being dragged. | 
| boolean | drawString | 
| double | maxValue | 
| double | minValue | 
| Slider.ISlider | parent | 
| int | precision | 
| boolean | showDecimal | 
| double | sliderValueThe value of this slider control. | 
| java.lang.String | suffix | 
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION| コンストラクタと説明 | 
|---|
| Slider(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,
      Button.IPressable handler) | 
| Slider(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,
      Button.IPressable handler,
      Slider.ISlider par) | 
| Slider(int xPos,
      int yPos,
      java.lang.String displayStr,
      double minVal,
      double maxVal,
      double currentVal,
      Button.IPressable handler,
      Slider.ISlider par) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| double | getValue() | 
| int | getValueInt() | 
| int | getYImage(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. | 
| void | onClick(double mouseX,
       double mouseY)Returns true if the mouse has been pressed on this control. | 
| void | onRelease(double mouseX,
         double mouseY)Fired when the mouse button is released. | 
| protected void | renderBg(Minecraft par1Minecraft,
        int par2,
        int par3)Fired when the mouse button is dragged. | 
| void | setValue(double d) | 
| void | updateSlider() | 
renderButtonkeyPressedchangeFocus, clearFGColor, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, playDownSound, queueNarration, render, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyReleased, mouseMoved, 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 Slider.ISlider parent
public java.lang.String suffix
public boolean drawString
public Slider(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,
              Button.IPressable handler)
public Slider(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,
              Button.IPressable handler,
              @Nullable
              Slider.ISlider par)
public Slider(int xPos,
              int yPos,
              java.lang.String displayStr,
              double minVal,
              double maxVal,
              double currentVal,
              Button.IPressable handler,
              Slider.ISlider par)
public int getYImage(boolean par1)
protected void renderBg(Minecraft par1Minecraft, int par2, int par3)
public void onClick(double mouseX,
                    double mouseY)
onClick クラス内 AbstractButtonpublic void updateSlider()
public void onRelease(double mouseX,
                      double mouseY)
public int getValueInt()
public double getValue()
public void setValue(double d)