public class GuiNewChat extends Gui
Modifier and Type | Field and Description |
---|---|
private java.util.List<ChatLine> |
chatLines |
private java.util.List<ChatLine> |
drawnChatLines |
private boolean |
isScrolled |
private static org.apache.logging.log4j.Logger |
LOGGER |
private Minecraft |
mc |
private int |
scrollPos |
private java.util.List<java.lang.String> |
sentMessages |
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiNewChat(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
void |
addToSentMessages(java.lang.String message) |
static int |
calculateChatboxHeight(float scale) |
static int |
calculateChatboxWidth(float scale) |
void |
clearChatMessages(boolean p_146231_1_) |
void |
deleteChatLine(int id) |
void |
drawChat(int updateCounter) |
ITextComponent |
getChatComponent(int mouseX,
int mouseY) |
int |
getChatHeight() |
boolean |
getChatOpen() |
float |
getChatScale() |
int |
getChatWidth() |
int |
getLineCount() |
java.util.List<java.lang.String> |
getSentMessages() |
void |
printChatMessage(ITextComponent chatComponent) |
void |
printChatMessageWithOptionalDeletion(ITextComponent chatComponent,
int chatLineId) |
void |
refreshChat() |
void |
resetScroll() |
void |
scroll(int amount) |
private void |
setChatLine(ITextComponent chatComponent,
int chatLineId,
int updateCounter,
boolean displayOnly) |
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
private static final org.apache.logging.log4j.Logger LOGGER
private final Minecraft mc
private final java.util.List<java.lang.String> sentMessages
private final java.util.List<ChatLine> chatLines
private final java.util.List<ChatLine> drawnChatLines
private int scrollPos
private boolean isScrolled
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)
private void setChatLine(ITextComponent chatComponent, int chatLineId, int updateCounter, boolean displayOnly)
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)
@Nullable 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()