public abstract class RealmsSliderButton extends AbstractRealmsButton<RealmsSliderButtonProxy>
Modifier and Type | Field and Description |
---|---|
private int |
id |
private double |
maxValue |
private double |
minValue |
private RealmsSliderButtonProxy |
proxy |
protected static ResourceLocation |
WIDGETS_LOCATION |
Constructor and Description |
---|
RealmsSliderButton(int p_i50553_1_,
int p_i50553_2_,
int p_i50553_3_,
int p_i50553_4_,
int p_i50553_5_,
double p_i50553_6_,
double p_i50553_8_) |
Modifier and Type | Method and Description |
---|---|
abstract void |
applyValue() |
double |
clamp(double p_clamp_1_) |
int |
func_214459_y() |
int |
getHeight() |
java.lang.String |
getMessage() |
RealmsSliderButtonProxy |
getProxy() |
double |
getValue() |
int |
getWidth() |
int |
getYImage(boolean p_getYImage_1_) |
int |
id() |
void |
onClick(double p_onClick_1_,
double p_onClick_3_) |
void |
onRelease(double p_onRelease_1_,
double p_onRelease_3_) |
void |
setMessage(java.lang.String p_setMessage_1_) |
void |
setValue(double p_setValue_1_) |
double |
toPct(double p_toPct_1_) |
double |
toValue(double p_toValue_1_) |
void |
updateMessage() |
active, active, blit, isVisible, render, setVisible, tick
protected static final ResourceLocation WIDGETS_LOCATION
private final int id
private final RealmsSliderButtonProxy proxy
private final double minValue
private final double maxValue
public RealmsSliderButton(int p_i50553_1_, int p_i50553_2_, int p_i50553_3_, int p_i50553_4_, int p_i50553_5_, double p_i50553_6_, double p_i50553_8_)
public java.lang.String getMessage()
public double toPct(double p_toPct_1_)
public double toValue(double p_toValue_1_)
public double clamp(double p_clamp_1_)
public int getYImage(boolean p_getYImage_1_)
public void onClick(double p_onClick_1_, double p_onClick_3_)
public void onRelease(double p_onRelease_1_, double p_onRelease_3_)
public RealmsSliderButtonProxy getProxy()
getProxy
in class AbstractRealmsButton<RealmsSliderButtonProxy>
public double getValue()
public void setValue(double p_setValue_1_)
public int id()
public void setMessage(java.lang.String p_setMessage_1_)
public int getWidth()
public int getHeight()
public int func_214459_y()
public abstract void applyValue()
public void updateMessage()