Class ChatComponent
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.ChatComponent
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<GuiMessage<Component>>private intprivate longprivate static final org.slf4j.Loggerprivate static final intprivate final Minecraftprivate booleanprivate final List<GuiMessage<FormattedCharSequence>>Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessage(Component p_93786_) private voidaddMessage(Component p_93788_, int p_93789_) private voidaddMessage(Component p_93791_, int p_93792_, int p_93793_, boolean p_93794_) voidaddRecentChat(String p_93784_) voidclearMessages(boolean p_93796_) voidenqueueMessage(Component p_93809_) private longgetClickedComponentStyleAt(double p_93801_, double p_93802_) intstatic intgetHeight(double p_93812_) intdoublegetScale()private static doublegetTimeFactor(int p_93776_) intgetWidth()static intgetWidth(double p_93799_) booleanhandleChatQueueClicked(double p_93773_, double p_93774_) private booleanprivate booleanprivate voidprivate voidremoveById(int p_93804_) voidvoidvoidvoidscrollChat(int p_205361_) Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MAX_CHAT_HISTORY
private static final int MAX_CHAT_HISTORY- See Also:
-
minecraft
-
recentChat
-
allMessages
-
trimmedMessages
-
chatQueue
-
chatScrollbarPos
private int chatScrollbarPos -
newMessageSinceScroll
private boolean newMessageSinceScroll -
lastMessage
private long lastMessage
-
-
Constructor Details
-
ChatComponent
-
-
Method Details
-
render
-
isChatHidden
private boolean isChatHidden() -
getTimeFactor
private static double getTimeFactor(int p_93776_) -
clearMessages
public void clearMessages(boolean p_93796_) -
addMessage
-
addMessage
-
addMessage
-
rescaleChat
public void rescaleChat() -
getRecentChat
-
addRecentChat
-
resetChatScroll
public void resetChatScroll() -
scrollChat
public void scrollChat(int p_205361_) -
handleChatQueueClicked
public boolean handleChatQueueClicked(double p_93773_, double p_93774_) -
getClickedComponentStyleAt
-
isChatFocused
private boolean isChatFocused() -
removeById
private void removeById(int p_93804_) -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getScale
public double getScale() -
getWidth
public static int getWidth(double p_93799_) -
getHeight
public static int getHeight(double p_93812_) -
getLinesPerPage
public int getLinesPerPage() -
getChatRateMillis
private long getChatRateMillis() -
processPendingMessages
private void processPendingMessages() -
enqueueMessage
-