public abstract class ElementGUI extends net.minecraft.client.gui.GuiScreen implements IElementGUI
| Constructor and Description |
|---|
ElementGUI() |
| Modifier and Type | Method and Description |
|---|---|
void |
addElement(Element element) |
void |
addElements(java.util.Collection<Element> elements) |
void |
clearElements() |
abstract void |
drawScreen(float mouseX,
float mouseY,
float partialTicks) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
java.lang.Object |
getElementLock() |
net.minecraft.client.gui.FontRenderer |
getFontRenderer() |
int |
getHeight() |
java.util.List<Element> |
getPostOrderElements() |
float |
getPreciseMouseX() |
float |
getPreciseMouseY() |
java.util.List<Element> |
getPreOrderElements() |
net.minecraft.client.renderer.texture.TextureManager |
getTextureManager() |
int |
getWidth() |
protected abstract void |
initElements() |
void |
initGui() |
boolean |
isElementOnTop(Element element) |
protected void |
keyTyped(char typedChar,
int keyCode) |
protected void |
mouseClicked(int mouseX,
int mouseY,
int mouseButton) |
protected void |
mouseClickMove(int mouseX,
int mouseY,
int clickedMouseButton,
long timeSinceLastClick) |
protected void |
mouseReleased(int mouseX,
int mouseY,
int state) |
void |
onGuiClosed() |
void |
playClickSound() |
void |
removeElement(Element element) |
protected void |
renderElement(Element element,
float mouseX,
float mouseY,
float partialTicks) |
void |
sendElementToBack(Element element) |
void |
sendElementToFront(Element element) |
void |
updateScreen() |
actionPerformed, addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setGuiSize, setText, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdrawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRectprotected abstract void initElements()
public void addElement(Element element)
addElement in interface IElementGUIpublic void addElements(java.util.Collection<Element> elements)
addElements in interface IElementGUIpublic void removeElement(Element element)
removeElement in interface IElementGUIpublic void clearElements()
clearElements in interface IElementGUIpublic void sendElementToFront(Element element)
sendElementToFront in interface IElementGUIpublic void sendElementToBack(Element element)
sendElementToBack in interface IElementGUIpublic boolean isElementOnTop(Element element)
isElementOnTop in interface IElementGUIpublic void playClickSound()
playClickSound in interface IElementGUIpublic net.minecraft.client.gui.FontRenderer getFontRenderer()
getFontRenderer in interface IElementGUIpublic net.minecraft.client.renderer.texture.TextureManager getTextureManager()
getTextureManager in interface IElementGUIpublic int getHeight()
getHeight in interface IElementGUIpublic int getWidth()
getWidth in interface IElementGUIpublic void initGui()
initGui in class net.minecraft.client.gui.GuiScreenpublic void updateScreen()
updateScreen in class net.minecraft.client.gui.GuiScreenpublic abstract void drawScreen(float mouseX,
float mouseY,
float partialTicks)
public final void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class net.minecraft.client.gui.GuiScreenprotected void renderElement(Element element, float mouseX, float mouseY, float partialTicks)
protected void mouseClicked(int mouseX,
int mouseY,
int mouseButton)
throws java.io.IOException
mouseClicked in class net.minecraft.client.gui.GuiScreenjava.io.IOExceptionprotected void mouseClickMove(int mouseX,
int mouseY,
int clickedMouseButton,
long timeSinceLastClick)
mouseClickMove in class net.minecraft.client.gui.GuiScreenprotected void mouseReleased(int mouseX,
int mouseY,
int state)
mouseReleased in class net.minecraft.client.gui.GuiScreenprotected void keyTyped(char typedChar,
int keyCode)
throws java.io.IOException
keyTyped in class net.minecraft.client.gui.GuiScreenjava.io.IOExceptionpublic void onGuiClosed()
onGuiClosed in class net.minecraft.client.gui.GuiScreenpublic float getPreciseMouseX()
public float getPreciseMouseY()
public java.lang.Object getElementLock()
public java.util.List<Element> getPostOrderElements()
public java.util.List<Element> getPreOrderElements()