public abstract class AbstractSlider extends Widget
Modifier and Type | Field and Description |
---|---|
protected GameSettings |
options |
protected double |
value |
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, y
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Modifier | Constructor and Description |
---|---|
protected |
AbstractSlider(GameSettings options,
int xIn,
int yIn,
int widthIn,
int heightIn,
double valueIn) |
protected |
AbstractSlider(int xIn,
int yIn,
int widthIn,
int heightIn,
double valueIn) |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
applyValue() |
protected java.lang.String |
getNarrationMessage() |
protected int |
getYImage(boolean p_getYImage_1_) |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
void |
onClick(double p_onClick_1_,
double p_onClick_3_) |
protected void |
onDrag(double p_onDrag_1_,
double p_onDrag_3_,
double p_onDrag_5_,
double p_onDrag_7_) |
void |
onRelease(double p_onRelease_1_,
double p_onRelease_3_) |
void |
playDownSound(SoundHandler p_playDownSound_1_) |
protected void |
renderBg(Minecraft p_renderBg_1_,
int p_renderBg_2_,
int p_renderBg_3_) |
private void |
setValue(double p_setValue_1_) |
private void |
setValueFromMouse(double p_setValueFromMouse_1_) |
protected abstract void |
updateMessage() |
changeFocus, clearFGColor, clicked, getFGColor, getHeight, getMessage, getWidth, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onFocusedChanged, queueNarration, render, renderButton, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidth
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyReleased, mouseMoved, mouseScrolled
protected final GameSettings options
protected double value
protected AbstractSlider(int xIn, int yIn, int widthIn, int heightIn, double valueIn)
protected AbstractSlider(GameSettings options, int xIn, int yIn, int widthIn, int heightIn, double valueIn)
protected java.lang.String getNarrationMessage()
getNarrationMessage
in class Widget
protected void renderBg(Minecraft p_renderBg_1_, int p_renderBg_2_, int p_renderBg_3_)
public void onClick(double p_onClick_1_, double p_onClick_3_)
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
private void setValueFromMouse(double p_setValueFromMouse_1_)
private void setValue(double p_setValue_1_)
protected void onDrag(double p_onDrag_1_, double p_onDrag_3_, double p_onDrag_5_, double p_onDrag_7_)
public void playDownSound(SoundHandler p_playDownSound_1_)
playDownSound
in class Widget
public void onRelease(double p_onRelease_1_, double p_onRelease_3_)
protected abstract void updateMessage()
protected abstract void applyValue()