Package net.minecraft.client.gui
Class Gui
- java.lang.Object
-
- net.minecraft.client.gui.Gui
-
- Direct Known Subclasses:
GuiAchievement
,GuiButton
,GuiIngame
,GuiLabel
,GuiNewChat
,GuiOverlayDebug
,GuiPlayerTabOverlay
,GuiScreen
,GuiSpectator
,GuiTextField
public class Gui extends java.lang.Object
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Field Summary
Fields Modifier and Type Field Description static ResourceLocation
icons
static ResourceLocation
optionsBackground
static ResourceLocation
statIcons
protected float
zLevel
-
Constructor Summary
Constructors Constructor Description Gui()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
drawCenteredString(FontRenderer fontRendererIn, java.lang.String text, int x, int y, int color)
+ Renders the specified text to the screen, center-aligned.protected 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).protected void
drawHorizontalLine(int startX, int endX, int y, int color)
+ Draw a 1 pixel wide horizontal line.static void
drawModalRectWithCustomSizedTexture(int x, int y, float u, float v, int width, int height, float textureWidth, float textureHeight)
+ Draws a textured rectangle at z = 0.static void
drawRect(int left, int top, int right, int bottom, int color)
+ Draws a solid color rectangle with the specified coordinates and color (ARGB format).static void
drawScaledCustomSizeModalRect(int x, int y, float u, float v, int uWidth, int vHeight, int width, int height, float tileWidth, float tileHeight)
+ Draws a scaled, textured, tiled modal rect at z = 0.void
drawString(FontRenderer fontRendererIn, java.lang.String text, int x, int y, int color)
+ Renders the specified text to the screen.void
drawTexturedModalRect(float xCoord, float yCoord, int minU, int minV, int maxU, int maxV)
+ Draws a textured rectangle using the texture currently bound to the TextureManagervoid
drawTexturedModalRect(int x, int y, int textureX, int textureY, int width, int height)
+ Draws a textured rectangle using the texture currently bound to the TextureManagervoid
drawTexturedModalRect(int xCoord, int yCoord, EaglerTextureAtlasSprite textureSprite, int widthIn, int heightIn)
+ Draws a textured rectangle using the texture currently bound to the TextureManagerprotected void
drawVerticalLine(int x, int startY, int endY, int color)
+ Draw a 1 pixel wide vertical line.
-
-
-
Field Detail
-
optionsBackground
public static final ResourceLocation optionsBackground
-
statIcons
public static final ResourceLocation statIcons
-
icons
public static final ResourceLocation icons
-
zLevel
protected float zLevel
-
-
Method Detail
-
drawHorizontalLine
protected void drawHorizontalLine(int startX, int endX, int y, int color)
+ Draw a 1 pixel wide horizontal line. Args: x1, x2, y, color
-
drawVerticalLine
protected void drawVerticalLine(int x, int startY, int endY, int color)
+ Draw a 1 pixel wide vertical line. Args : x, y1, y2, color
-
drawRect
public static void drawRect(int left, int top, int right, int bottom, int color)
+ Draws a solid color rectangle with the specified coordinates and color (ARGB format). Args: x1, y1, x2, y2, color
-
drawGradientRect
protected 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). Args : x1, y1, x2, y2, topColor, bottomColor
-
drawCenteredString
public void drawCenteredString(FontRenderer fontRendererIn, java.lang.String text, int x, int y, int color)
+ Renders the specified text to the screen, center-aligned. Args : renderer, string, x, y, color
-
drawString
public void drawString(FontRenderer fontRendererIn, java.lang.String text, int x, int y, int color)
+ Renders the specified text to the screen. Args : renderer, string, x, y, color
-
drawTexturedModalRect
public void drawTexturedModalRect(int x, int y, int textureX, int textureY, int width, int height)
+ Draws a textured rectangle using the texture currently bound to the TextureManager
-
drawTexturedModalRect
public void drawTexturedModalRect(float xCoord, float yCoord, int minU, int minV, int maxU, int maxV)
+ Draws a textured rectangle using the texture currently bound to the TextureManager
-
drawTexturedModalRect
public void drawTexturedModalRect(int xCoord, int yCoord, EaglerTextureAtlasSprite textureSprite, int widthIn, int heightIn)
+ Draws a textured rectangle using the texture currently bound to the TextureManager
-
drawModalRectWithCustomSizedTexture
public static void drawModalRectWithCustomSizedTexture(int x, int y, float u, float v, int width, int height, float textureWidth, float textureHeight)
+ Draws a textured rectangle at z = 0. Args: x, y, u, v, width, height, textureWidth, textureHeight
-
drawScaledCustomSizeModalRect
public static void drawScaledCustomSizeModalRect(int x, int y, float u, float v, int uWidth, int vHeight, int width, int height, float tileWidth, float tileHeight)
+ Draws a scaled, textured, tiled modal rect at z = 0. This method isn't used anywhere in vanilla code.
-
-