public class GuiNewChat extends Gui
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiNewChat(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
void |
addToSentMessages(java.lang.String message)
Adds this string to the list of sent messages, for recall using the up/down arrow keys
|
static int |
calculateChatboxHeight(float scale) |
static int |
calculateChatboxWidth(float scale) |
void |
clearChatMessages(boolean p_146231_1_)
Clears the chat.
|
void |
deleteChatLine(int id)
finds and deletes a Chat line by ID
|
void |
drawChat(int updateCounter) |
ITextComponent |
getChatComponent(int mouseX,
int mouseY)
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()
Gets the list of messages previously sent through the chat GUI
|
void |
printChatMessage(ITextComponent chatComponent) |
void |
printChatMessageWithOptionalDeletion(ITextComponent 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 amount)
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 updateCounter)
public void clearChatMessages(boolean p_146231_1_)
public void printChatMessage(ITextComponent chatComponent)
public void printChatMessageWithOptionalDeletion(ITextComponent chatComponent, int chatLineId)
public void refreshChat()
public java.util.List<java.lang.String> getSentMessages()
public void addToSentMessages(java.lang.String message)
public void resetScroll()
public void scroll(int amount)
public ITextComponent getChatComponent(int mouseX, int mouseY)
public boolean getChatOpen()
public void deleteChatLine(int id)
public int getChatWidth()
public int getChatHeight()
public float getChatScale()
public static int calculateChatboxWidth(float scale)
public static int calculateChatboxHeight(float scale)
public int getLineCount()