public class GuiButtonRealmsProxy extends GuiButton
BUTTON_TEXTURES, displayString, enabled, height, hovered, id, packedFGColour, visible, width, xPosition, yPositionICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiButtonRealmsProxy(RealmsButton realmsButtonIn,
int buttonId,
int x,
int y,
java.lang.String text) |
GuiButtonRealmsProxy(RealmsButton realmsButtonIn,
int buttonId,
int x,
int y,
java.lang.String text,
int widthIn,
int heightIn) |
| Modifier and Type | Method and Description |
|---|---|
int |
getButtonWidth() |
boolean |
getEnabled() |
int |
getHeight() |
int |
getHoverState(boolean mouseOver)
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.
|
int |
getId() |
int |
getPositionY() |
RealmsButton |
getRealmsButton() |
int |
getYImage(boolean p_154312_1_) |
void |
mouseDragged(Minecraft mc,
int mouseX,
int mouseY)
Fired when the mouse button is dragged.
|
boolean |
mousePressed(Minecraft mc,
int mouseX,
int mouseY)
Returns true if the mouse has been pressed on this control.
|
void |
mouseReleased(int mouseX,
int mouseY)
Fired when the mouse button is released.
|
void |
setEnabled(boolean isEnabled) |
void |
setText(java.lang.String text) |
drawButton, drawButtonForegroundLayer, isMouseOver, playPressSound, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLinepublic GuiButtonRealmsProxy(RealmsButton realmsButtonIn, int buttonId, int x, int y, java.lang.String text)
public GuiButtonRealmsProxy(RealmsButton realmsButtonIn, int buttonId, int x, int y, java.lang.String text, int widthIn, int heightIn)
public int getId()
public boolean getEnabled()
public void setEnabled(boolean isEnabled)
public void setText(java.lang.String text)
public int getButtonWidth()
getButtonWidth in class GuiButtonpublic int getPositionY()
public boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
mousePressed in class GuiButtonpublic void mouseReleased(int mouseX,
int mouseY)
mouseReleased in class GuiButtonpublic void mouseDragged(Minecraft mc, int mouseX, int mouseY)
mouseDragged in class GuiButtonpublic RealmsButton getRealmsButton()
public int getHoverState(boolean mouseOver)
getHoverState in class GuiButtonpublic int getYImage(boolean p_154312_1_)
public int getHeight()