public abstract class RealmsButton extends AbstractRealmsButton<RealmsButtonProxy>
Modifier and Type | Field and Description |
---|---|
private int |
id |
private RealmsButtonProxy |
proxy |
protected static ResourceLocation |
WIDGETS_LOCATION |
Constructor and Description |
---|
RealmsButton(int buttonId,
int x,
int y,
int widthIn,
int heightIn,
java.lang.String text) |
RealmsButton(int buttonId,
int x,
int y,
java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
void |
drawCenteredString(java.lang.String p_drawCenteredString_1_,
int p_drawCenteredString_2_,
int p_drawCenteredString_3_,
int p_drawCenteredString_4_) |
int |
func_214457_x() |
int |
func_223291_y_() |
int |
getHeight() |
RealmsButtonProxy |
getProxy() |
int |
getWidth() |
int |
getYImage(boolean p_getYImage_1_) |
int |
id() |
abstract void |
onPress() |
void |
onRelease(double p_onRelease_1_,
double p_onRelease_3_) |
void |
renderBg(int p_renderBg_1_,
int p_renderBg_2_) |
void |
renderButton(int p_renderButton_1_,
int p_renderButton_2_,
float p_renderButton_3_) |
void |
setMessage(java.lang.String p_setMessage_1_) |
active, active, blit, isVisible, render, setVisible, tick
protected static final ResourceLocation WIDGETS_LOCATION
private final int id
private final RealmsButtonProxy proxy
public RealmsButton(int buttonId, int x, int y, java.lang.String text)
public RealmsButton(int buttonId, int x, int y, int widthIn, int heightIn, java.lang.String text)
public RealmsButtonProxy getProxy()
getProxy
in class AbstractRealmsButton<RealmsButtonProxy>
public int id()
public void setMessage(java.lang.String p_setMessage_1_)
public int getWidth()
public int getHeight()
public int func_223291_y_()
public int func_214457_x()
public void renderBg(int p_renderBg_1_, int p_renderBg_2_)
public int getYImage(boolean p_getYImage_1_)
public abstract void onPress()
public void onRelease(double p_onRelease_1_, double p_onRelease_3_)
public void renderButton(int p_renderButton_1_, int p_renderButton_2_, float p_renderButton_3_)
public void drawCenteredString(java.lang.String p_drawCenteredString_1_, int p_drawCenteredString_2_, int p_drawCenteredString_3_, int p_drawCenteredString_4_)