Class ChatComponent
java.lang.Object
net.minecraft.client.gui.GuiComponent
net.minecraft.client.gui.components.ChatComponent
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<GuiMessage<Component>>
private int
private long
private static final org.slf4j.Logger
private static final int
private final Minecraft
private boolean
private final List<GuiMessage<FormattedCharSequence>>
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMessage
(Component p_93786_) private void
addMessage
(Component p_93788_, int p_93789_) private void
addMessage
(Component p_93791_, int p_93792_, int p_93793_, boolean p_93794_) void
addRecentChat
(String p_93784_) void
clearMessages
(boolean p_93796_) void
enqueueMessage
(Component p_93809_) private long
getClickedComponentStyleAt
(double p_93801_, double p_93802_) int
static int
getHeight
(double p_93812_) int
double
getScale()
private static double
getTimeFactor
(int p_93776_) int
getWidth()
static int
getWidth
(double p_93799_) boolean
handleChatQueueClicked
(double p_93773_, double p_93774_) private boolean
private boolean
private void
private void
removeById
(int p_93804_) void
void
void
void
scrollChat
(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
-