public abstract class GuiScreen extends GuiEventHandler implements GuiYesNoCallback
Modifier and Type | Field and Description |
---|---|
boolean |
allowUserInput |
protected java.util.List<GuiButton> |
buttons |
protected java.util.List<IGuiEventListener> |
children |
protected FontRenderer |
fontRenderer |
int |
height |
protected ItemRenderer |
itemRender |
protected java.util.List<GuiLabel> |
labels |
Minecraft |
mc |
int |
width |
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiScreen() |
Modifier and Type | Method and Description |
---|---|
protected <T extends GuiButton> |
addButton(T buttonIn) |
boolean |
allowCloseWithEscape() |
void |
close() |
void |
confirmResult(boolean p_confirmResult_1_,
int p_confirmResult_2_) |
boolean |
doesGuiPauseGame() |
void |
drawBackground(int tint) |
void |
drawDefaultBackground() |
void |
drawHoveringText(java.util.List<java.lang.String> textLines,
int x,
int y) |
void |
drawHoveringText(java.util.List<java.lang.String> textLines,
int x,
int y,
FontRenderer font) |
void |
drawHoveringText(java.lang.String text,
int x,
int y) |
void |
drawWorldBackground(int tint) |
java.util.List<? extends IGuiEventListener> |
getChildren() |
java.util.List<java.lang.String> |
getItemToolTip(ItemStack p_191927_1_) |
boolean |
handleComponentClick(ITextComponent component) |
protected void |
handleComponentHover(ITextComponent component,
int x,
int y) |
protected 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() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
void |
onGuiClosed() |
void |
onResize(Minecraft mcIn,
int w,
int h) |
void |
render(int mouseX,
int mouseY,
float partialTicks) |
protected void |
renderToolTip(ItemStack stack,
int x,
int y) |
static void |
runOrMakeCrashReport(java.lang.Runnable runnable,
java.lang.String description,
java.lang.String screenName) |
void |
sendChatMessage(java.lang.String msg) |
void |
sendChatMessage(java.lang.String msg,
boolean addToChat) |
protected void |
setText(java.lang.String newChatText,
boolean shouldOverwrite) |
void |
setWorldAndResolution(Minecraft mc,
int width,
int height) |
void |
tick() |
focusNext, focusOn, getFocused, mouseClicked, mouseDragged, mouseReleased, setDragging, setFocused
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
charTyped, keyReleased, mouseScrolled
canFocus, focusChanged
protected final java.util.List<IGuiEventListener> children
public Minecraft mc
protected ItemRenderer itemRender
public int width
public int height
protected final java.util.List<GuiButton> buttons
protected final java.util.List<GuiLabel> labels
public boolean allowUserInput
protected FontRenderer fontRenderer
public void render(int mouseX, int mouseY, float partialTicks)
public boolean keyPressed(int p_keyPressed_1_, int p_keyPressed_2_, int p_keyPressed_3_)
keyPressed
in interface IGuiEventListener
keyPressed
in interface IGuiEventListenerDeferred
keyPressed
in class GuiEventHandler
public boolean allowCloseWithEscape()
public void close()
protected <T extends GuiButton> T addButton(T buttonIn)
protected void renderToolTip(ItemStack stack, int x, int y)
public java.util.List<java.lang.String> getItemToolTip(ItemStack p_191927_1_)
public void drawHoveringText(java.lang.String text, int x, int y)
public void drawHoveringText(java.util.List<java.lang.String> textLines, int x, int y)
public 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)
public boolean handleComponentClick(ITextComponent component)
public void sendChatMessage(java.lang.String msg)
public void sendChatMessage(java.lang.String msg, boolean addToChat)
public void setWorldAndResolution(Minecraft mc, int width, int height)
public java.util.List<? extends IGuiEventListener> getChildren()
getChildren
in class GuiEventHandler
protected void initGui()
public void tick()
public void onGuiClosed()
public void drawDefaultBackground()
public void drawWorldBackground(int tint)
public void drawBackground(int tint)
public boolean doesGuiPauseGame()
public void confirmResult(boolean p_confirmResult_1_, int p_confirmResult_2_)
confirmResult
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)
public static void runOrMakeCrashReport(java.lang.Runnable runnable, java.lang.String description, java.lang.String screenName)