public class NewChatGui extends AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
コンストラクタと説明 |
---|
NewChatGui(Minecraft mcIn) |
修飾子とタイプ | メソッドと説明 |
---|---|
void |
addScrollPos(double posInc) |
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(double p_194816_0_) |
static int |
calculateChatboxWidth(double p_194814_0_) |
void |
clearChatMessages(boolean clearSentMsgHistory)
Clears the chat.
|
void |
deleteChatLine(int id)
finds and deletes a Chat line by ID
|
int |
getChatHeight() |
boolean |
getChatOpen()
Returns true if the chat GUI is open
|
int |
getChatWidth() |
int |
getLineCount() |
double |
getScale() |
java.util.List<java.lang.String> |
getSentMessages()
Gets the list of messages previously sent through the chat GUI
|
ITextComponent |
getTextComponent(double p_194817_1_,
double p_194817_3_) |
void |
printChatMessage(ITextComponent chatComponent) |
void |
printChatMessageWithOptionalDeletion(ITextComponent chatComponent,
int chatLineId)
prints the ChatComponent to Chat.
|
void |
refreshChat() |
void |
render(int updateCounter) |
void |
resetScroll()
Resets the chat scroll (executed when the GUI is closed, among others)
|
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
public NewChatGui(Minecraft mcIn)
public void render(int updateCounter)
public void clearChatMessages(boolean clearSentMsgHistory)
clearSentMsgHistory
- Whether or not to clear the user's sent message historypublic 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 addScrollPos(double posInc)
@Nullable public ITextComponent getTextComponent(double p_194817_1_, double p_194817_3_)
public boolean getChatOpen()
public void deleteChatLine(int id)
public int getChatWidth()
public int getChatHeight()
public double getScale()
public static int calculateChatboxWidth(double p_194814_0_)
public static int calculateChatboxHeight(double p_194816_0_)
public int getLineCount()