public class GuiScreenRealmsProxy extends GuiScreen
allowUserInput, buttonList, fontRendererObj, height, itemRender, keyHandled, labelList, mc, mouseHandled, width
ICONS, 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, setWorldAndResolution
drawCenteredString, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
public 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 Gui
public void drawGradientRect(int left, int top, int right, int bottom, int startColor, int endColor)
drawGradientRect
in class Gui
public void drawDefaultBackground()
drawDefaultBackground
in class GuiScreen
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class GuiScreen
public void drawWorldBackground(int tint)
drawWorldBackground
in class GuiScreen
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
public void renderToolTip(ItemStack stack, int x, int y)
renderToolTip
in class GuiScreen
public void drawCreativeTabHoveringText(java.lang.String tabName, int mouseX, int mouseY)
drawCreativeTabHoveringText
in class GuiScreen
public void drawHoveringText(java.util.List<java.lang.String> textLines, int x, int y)
drawHoveringText
in class GuiScreen
public void updateScreen()
updateScreen
in class GuiScreen
public 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 GuiScreen
java.io.IOException
public 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 GuiScreen
java.io.IOException
public void handleMouseInput() throws java.io.IOException
handleMouseInput
in class GuiScreen
java.io.IOException
public void handleKeyboardInput() throws java.io.IOException
handleKeyboardInput
in class GuiScreen
java.io.IOException
public void mouseReleased(int mouseX, int mouseY, int state)
mouseReleased
in class GuiScreen
public void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick)
mouseClickMove
in class GuiScreen
public void keyTyped(char typedChar, int keyCode) throws java.io.IOException
public void confirmClicked(boolean result, int id)
confirmClicked
in interface GuiYesNoCallback
confirmClicked
in class GuiScreen
public void onGuiClosed()
onGuiClosed
in class GuiScreen