public class NewChatGui extends AbstractGui
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 |
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
NewChatGui(Minecraft mcIn) |
Modifier and Type | Method and Description |
---|---|
void |
addScrollPos(double posInc) |
void |
addToSentMessages(java.lang.String message) |
static int |
calculateChatboxHeight(double p_194816_0_) |
static int |
calculateChatboxWidth(double p_194814_0_) |
void |
clearChatMessages(boolean clearSentMsgHistory) |
void |
deleteChatLine(int id) |
int |
getChatHeight() |
boolean |
getChatOpen() |
int |
getChatWidth() |
private static double |
getLineBrightness(int counterIn) |
int |
getLineCount() |
double |
getScale() |
java.util.List<java.lang.String> |
getSentMessages() |
ITextComponent |
getTextComponent(double p_194817_1_,
double p_194817_3_) |
private boolean |
isChatVisible() |
void |
printChatMessage(ITextComponent chatComponent) |
void |
printChatMessageWithOptionalDeletion(ITextComponent chatComponent,
int chatLineId) |
void |
refreshChat() |
void |
render(int updateCounter) |
void |
resetScroll() |
private void |
setChatLine(ITextComponent chatComponent,
int chatLineId,
int updateCounter,
boolean displayOnly) |
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
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 NewChatGui(Minecraft mcIn)
public void render(int updateCounter)
private boolean isChatVisible()
private static double getLineBrightness(int counterIn)
public void clearChatMessages(boolean clearSentMsgHistory)
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 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()