public class GuiButtonRealmsProxy extends GuiButton
buttonTextures, displayString, enabled, height, hovered, id, packedFGColour, visible, width, xPosition, yPosition
icons, optionsBackground, statIcons, 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 |
func_154312_c(boolean p_154312_1_) |
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() |
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, setWidth
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
public 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 GuiButton
public int getPositionY()
public boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
mousePressed
in class GuiButton
public void mouseReleased(int mouseX, int mouseY)
mouseReleased
in class GuiButton
public void mouseDragged(Minecraft mc, int mouseX, int mouseY)
mouseDragged
in class GuiButton
public RealmsButton getRealmsButton()
public int getHoverState(boolean mouseOver)
getHoverState
in class GuiButton
public int func_154312_c(boolean p_154312_1_)
public int getHeight()