public class GuiChat extends GuiScreen
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
commandUsage |
protected int |
commandUsagePosition |
protected int |
commandUsageWidth |
protected GuiTextField |
inputField |
allowUserInput, buttons, children, fontRenderer, height, itemRender, labels, mc, width
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiChat() |
GuiChat(java.lang.String defaultText) |
Modifier and Type | Method and Description |
---|---|
boolean |
doesGuiPauseGame() |
static java.lang.String |
func_212336_a(com.mojang.brigadier.ParseResults<ISuggestionProvider> p_212336_0_,
java.lang.String p_212336_1_,
int p_212336_2_) |
IGuiEventListener |
getFocused() |
void |
getSentHistory(int msgPos) |
protected void |
initGui() |
boolean |
keyPressed(int p_keyPressed_1_,
int p_keyPressed_2_,
int p_keyPressed_3_) |
boolean |
mouseClicked(double p_mouseClicked_1_,
double p_mouseClicked_3_,
int p_mouseClicked_5_) |
boolean |
mouseScrolled(double p_mouseScrolled_1_) |
void |
onGuiClosed() |
void |
onResize(Minecraft mcIn,
int w,
int h) |
void |
render(int mouseX,
int mouseY,
float partialTicks) |
protected void |
setText(java.lang.String newChatText,
boolean shouldOverwrite) |
void |
showSuggestions() |
void |
tick() |
addButton, allowCloseWithEscape, close, confirmResult, drawBackground, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getChildren, getItemToolTip, handleComponentClick, handleComponentHover, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, renderToolTip, runOrMakeCrashReport, sendChatMessage, sendChatMessage, setWorldAndResolution
focusNext, focusOn, 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
canFocus, focusChanged
protected GuiTextField inputField
protected final java.util.List<java.lang.String> commandUsage
protected int commandUsagePosition
protected int commandUsageWidth
@Nullable public IGuiEventListener getFocused()
getFocused
in interface IGuiEventListenerDeferred
getFocused
in class GuiEventHandler
public void onGuiClosed()
onGuiClosed
in class GuiScreen
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 GuiScreen
public void showSuggestions()
public static java.lang.String func_212336_a(com.mojang.brigadier.ParseResults<ISuggestionProvider> p_212336_0_, java.lang.String p_212336_1_, int p_212336_2_)
public boolean mouseScrolled(double p_mouseScrolled_1_)
public boolean mouseClicked(double p_mouseClicked_1_, double p_mouseClicked_3_, int p_mouseClicked_5_)
mouseClicked
in interface IGuiEventListener
mouseClicked
in interface IGuiEventListenerDeferred
mouseClicked
in class GuiEventHandler
protected void setText(java.lang.String newChatText, boolean shouldOverwrite)
public void getSentHistory(int msgPos)
public void render(int mouseX, int mouseY, float partialTicks)
public boolean doesGuiPauseGame()
doesGuiPauseGame
in class GuiScreen