public class GuiScreenRealmsProxy extends GuiScreen
allowUserInput, buttonList, fontRendererObj, height, itemRender, keyHandled, labelList, mc, mouseHandled, widthICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiScreenRealmsProxy(RealmsScreen proxyIn) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
java.util.List<RealmsButton> |
buttons() |
void |
buttonsAdd(RealmsButton button) |
void |
buttonsClear() |
void |
buttonsRemove(RealmsButton button) |
void |
confirmClicked(boolean result,
int id) |
boolean |
doesGuiPauseGame()
Returns true if this GUI should pause the game when it is displayed in single-player
|
void |
drawCenteredString(java.lang.String text,
int x,
int y,
int color) |
void |
drawCreativeTabHoveringText(java.lang.String tabName,
int mouseX,
int mouseY)
Draws the text when mouse is over creative inventory tab.
|
void |
drawDefaultBackground()
Draws either a gradient over the background screen (when it exists) or a flat gradient over background.png
|
void |
drawGradientRect(int left,
int top,
int right,
int bottom,
int startColor,
int endColor)
Draws a rectangle with a vertical gradient between the specified colors (ARGB format).
|
void |
drawHoveringText(java.util.List<java.lang.String> textLines,
int x,
int y)
Draws a List of strings as a tooltip.
|
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
void |
drawString(java.lang.String text,
int x,
int y,
int color,
boolean p_154322_5_) |
void |
drawTexturedModalRect(int x,
int y,
int textureX,
int textureY,
int width,
int height)
Draws a textured rectangle at the current z-value.
|
void |
drawWorldBackground(int tint) |
void |
fontDrawShadow(java.lang.String text,
int x,
int y,
int color) |
java.util.List<java.lang.String> |
fontSplit(java.lang.String text,
int wrapWidth) |
int |
getFontHeight() |
RealmsScreen |
getProxy() |
int |
getStringWidth(java.lang.String text) |
void |
handleKeyboardInput()
Handles keyboard input.
|
void |
handleMouseInput()
Handles mouse input.
|
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
void |
keyTyped(char typedChar,
int keyCode)
Fired when a key is typed (except F11 which toggles full screen).
|
void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton)
Called when the mouse is clicked.
|
void |
mouseClickMove(int mouseX,
int mouseY,
int clickedMouseButton,
long timeSinceLastClick)
Called when a mouse button is pressed and the mouse is moved around.
|
void |
mouseReleased(int mouseX,
int mouseY,
int state)
Called when a mouse button is released.
|
void |
onGuiClosed()
Called when the screen is unloaded.
|
void |
renderToolTip(ItemStack stack,
int x,
int y) |
void |
updateScreen()
Called from the main game loop to update the screen.
|
addButton, drawBackground, drawHoveringText, getClipboardString, handleComponentClick, handleComponentHover, handleInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, sendChatMessage, sendChatMessage, setClipboardString, setGuiSize, setText, setWorldAndResolutiondrawCenteredString, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLinepublic GuiScreenRealmsProxy(RealmsScreen proxyIn)
public RealmsScreen getProxy()
public void initGui()
public void drawCenteredString(java.lang.String text,
int x,
int y,
int color)
public void drawString(java.lang.String text,
int x,
int y,
int color,
boolean p_154322_5_)
public void drawTexturedModalRect(int x,
int y,
int textureX,
int textureY,
int width,
int height)
drawTexturedModalRect in class Guipublic void drawGradientRect(int left,
int top,
int right,
int bottom,
int startColor,
int endColor)
drawGradientRect in class Guipublic void drawDefaultBackground()
drawDefaultBackground in class GuiScreenpublic boolean doesGuiPauseGame()
doesGuiPauseGame in class GuiScreenpublic void drawWorldBackground(int tint)
drawWorldBackground in class GuiScreenpublic void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class GuiScreenpublic void renderToolTip(ItemStack stack, int x, int y)
renderToolTip in class GuiScreenpublic void drawCreativeTabHoveringText(java.lang.String tabName,
int mouseX,
int mouseY)
drawCreativeTabHoveringText in class GuiScreenpublic void drawHoveringText(java.util.List<java.lang.String> textLines,
int x,
int y)
drawHoveringText in class GuiScreenpublic void updateScreen()
updateScreen in class GuiScreenpublic int getFontHeight()
public int getStringWidth(java.lang.String text)
public void fontDrawShadow(java.lang.String text,
int x,
int y,
int color)
public java.util.List<java.lang.String> fontSplit(java.lang.String text,
int wrapWidth)
public final void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed in class GuiScreenjava.io.IOExceptionpublic void buttonsClear()
public void buttonsAdd(RealmsButton button)
public java.util.List<RealmsButton> buttons()
public void buttonsRemove(RealmsButton button)
public void mouseClicked(int mouseX,
int mouseY,
int mouseButton)
throws java.io.IOException
mouseClicked in class GuiScreenjava.io.IOExceptionpublic void handleMouseInput()
throws java.io.IOException
handleMouseInput in class GuiScreenjava.io.IOExceptionpublic void handleKeyboardInput()
throws java.io.IOException
handleKeyboardInput in class GuiScreenjava.io.IOExceptionpublic void mouseReleased(int mouseX,
int mouseY,
int state)
mouseReleased in class GuiScreenpublic void mouseClickMove(int mouseX,
int mouseY,
int clickedMouseButton,
long timeSinceLastClick)
mouseClickMove in class GuiScreenpublic void keyTyped(char typedChar,
int keyCode)
throws java.io.IOException
public void confirmClicked(boolean result,
int id)
confirmClicked in interface GuiYesNoCallbackconfirmClicked in class GuiScreenpublic void onGuiClosed()
onGuiClosed in class GuiScreen