public abstract class GuiScreen extends Gui implements GuiYesNoCallback
Modifier and Type | Field and Description |
---|---|
boolean |
allowUserInput |
protected java.util.List<GuiButton> |
buttonList |
protected FontRenderer |
fontRendererObj |
int |
height |
protected RenderItem |
itemRender |
protected boolean |
keyHandled |
protected java.util.List<GuiLabel> |
labelList |
Minecraft |
mc |
protected boolean |
mouseHandled |
int |
width |
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiScreen() |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button) |
protected <T extends GuiButton> |
addButton(T p_189646_1_) |
void |
confirmClicked(boolean result,
int id) |
boolean |
doesGuiPauseGame() |
void |
drawBackground(int tint) |
protected void |
drawCreativeTabHoveringText(java.lang.String tabName,
int mouseX,
int mouseY) |
void |
drawDefaultBackground() |
protected void |
drawHoveringText(java.util.List<java.lang.String> textLines,
int x,
int y) |
protected void |
drawHoveringText(java.util.List<java.lang.String> textLines,
int x,
int y,
FontRenderer font) |
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks) |
void |
drawWorldBackground(int tint) |
static java.lang.String |
getClipboardString() |
protected boolean |
handleComponentClick(ITextComponent component) |
protected void |
handleComponentHover(ITextComponent component,
int x,
int y) |
void |
handleInput() |
void |
handleKeyboardInput() |
void |
handleMouseInput() |
void |
initGui() |
static boolean |
isAltKeyDown() |
static boolean |
isCtrlKeyDown() |
static boolean |
isKeyComboCtrlA(int keyID) |
static boolean |
isKeyComboCtrlC(int keyID) |
static boolean |
isKeyComboCtrlV(int keyID) |
static boolean |
isKeyComboCtrlX(int keyID) |
static boolean |
isShiftKeyDown() |
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 |
onResize(Minecraft mcIn,
int w,
int h) |
protected void |
renderToolTip(ItemStack stack,
int x,
int y) |
void |
sendChatMessage(java.lang.String msg) |
void |
sendChatMessage(java.lang.String msg,
boolean addToChat) |
static void |
setClipboardString(java.lang.String copyText) |
void |
setGuiSize(int w,
int h) |
protected void |
setText(java.lang.String newChatText,
boolean shouldOverwrite) |
void |
setWorldAndResolution(Minecraft mc,
int width,
int height) |
void |
updateScreen() |
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
public Minecraft mc
protected RenderItem itemRender
public int width
public int height
protected java.util.List<GuiButton> buttonList
protected java.util.List<GuiLabel> labelList
public boolean allowUserInput
protected FontRenderer fontRendererObj
protected boolean keyHandled
protected boolean mouseHandled
public void drawScreen(int mouseX, int mouseY, float partialTicks)
protected void keyTyped(char typedChar, int keyCode) throws java.io.IOException
java.io.IOException
protected <T extends GuiButton> T addButton(T p_189646_1_)
public static java.lang.String getClipboardString()
public static void setClipboardString(java.lang.String copyText)
protected void renderToolTip(ItemStack stack, int x, int y)
protected void drawCreativeTabHoveringText(java.lang.String tabName, int mouseX, int mouseY)
protected void drawHoveringText(java.util.List<java.lang.String> textLines, int x, int y)
protected void drawHoveringText(java.util.List<java.lang.String> textLines, int x, int y, FontRenderer font)
protected void handleComponentHover(ITextComponent component, int x, int y)
protected void setText(java.lang.String newChatText, boolean shouldOverwrite)
protected boolean handleComponentClick(ITextComponent component)
public void sendChatMessage(java.lang.String msg)
public void sendChatMessage(java.lang.String msg, boolean addToChat)
protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws java.io.IOException
java.io.IOException
protected void mouseReleased(int mouseX, int mouseY, int state)
protected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick)
protected void actionPerformed(GuiButton button) throws java.io.IOException
java.io.IOException
public void setWorldAndResolution(Minecraft mc, int width, int height)
public void setGuiSize(int w, int h)
public void initGui()
public void handleInput() throws java.io.IOException
java.io.IOException
public void handleMouseInput() throws java.io.IOException
java.io.IOException
public void handleKeyboardInput() throws java.io.IOException
java.io.IOException
public void updateScreen()
public void onGuiClosed()
public void drawDefaultBackground()
public void drawWorldBackground(int tint)
public void drawBackground(int tint)
public boolean doesGuiPauseGame()
public void confirmClicked(boolean result, int id)
confirmClicked
in interface GuiYesNoCallback
public static boolean isCtrlKeyDown()
public static boolean isShiftKeyDown()
public static boolean isAltKeyDown()
public static boolean isKeyComboCtrlX(int keyID)
public static boolean isKeyComboCtrlV(int keyID)
public static boolean isKeyComboCtrlC(int keyID)
public static boolean isKeyComboCtrlA(int keyID)
public void onResize(Minecraft mcIn, int w, int h)