public class GuiNewChat extends Gui
icons, optionsBackground, statIcons, zLevel
Constructor and Description |
---|
GuiNewChat(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
void |
addToSentMessages(java.lang.String p_146239_1_)
Adds this string to the list of sent messages, for recall using the up/down arrow keys
|
static int |
calculateChatboxHeight(float p_146243_0_) |
static int |
calculateChatboxWidth(float p_146233_0_) |
void |
clearChatMessages()
Clears the chat.
|
void |
deleteChatLine(int p_146242_1_)
finds and deletes a Chat line by ID
|
void |
drawChat(int p_146230_1_) |
IChatComponent |
getChatComponent(int p_146236_1_,
int p_146236_2_)
Gets the chat component under the mouse
|
int |
getChatHeight() |
boolean |
getChatOpen()
Returns true if the chat GUI is open
|
float |
getChatScale()
Returns the chatscale from mc.gameSettings.chatScale
|
int |
getChatWidth() |
int |
getLineCount() |
java.util.List<java.lang.String> |
getSentMessages() |
void |
printChatMessage(IChatComponent p_146227_1_) |
void |
printChatMessageWithOptionalDeletion(IChatComponent chatComponent,
int chatLineId)
prints the ChatComponent to Chat.
|
void |
refreshChat() |
void |
resetScroll()
Resets the chat scroll (executed when the GUI is closed, among others)
|
void |
scroll(int p_146229_1_)
Scrolls the chat by the given number of lines.
|
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
public GuiNewChat(Minecraft mcIn)
public void drawChat(int p_146230_1_)
public void clearChatMessages()
public void printChatMessage(IChatComponent p_146227_1_)
public void printChatMessageWithOptionalDeletion(IChatComponent chatComponent, int chatLineId)
chatComponent
- The chat component to displaychatLineId
- The chat line idpublic void refreshChat()
public java.util.List<java.lang.String> getSentMessages()
public void addToSentMessages(java.lang.String p_146239_1_)
public void resetScroll()
public void scroll(int p_146229_1_)
public IChatComponent getChatComponent(int p_146236_1_, int p_146236_2_)
public boolean getChatOpen()
public void deleteChatLine(int p_146242_1_)
public int getChatWidth()
public int getChatHeight()
public float getChatScale()
public static int calculateChatboxWidth(float p_146233_0_)
public static int calculateChatboxHeight(float p_146243_0_)
public int getLineCount()