net.minecraft.client.gui.components

public class ChatComponent

extends GuiComponent

egt
net.minecraft.client.gui.components.ChatComponent
net.minecraft.class_338
net.minecraft.client.gui.hud.ChatHud
net.minecraft.src.C_3454_

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_2065
LOGGER
f_93757_
private static final int
b
MAX_CHAT_HISTORY
field_32180
MAX_MESSAGES
f_168843_
private final Minecraft
c
minecraft
field_2062
client
f_93758_
private final List<String>
d
recentChat
field_2063
messageHistory
f_93759_
private final List<GuiMessage<Component>>
e
allMessages
field_2061
messages
f_93760_
private final List<GuiMessage<FormattedCharSequence>>
f
trimmedMessages
field_2064
visibleMessages
f_93761_
private final Deque<Component>
j
chatQueue
field_23934
messageQueue
f_93762_
private int
k
chatScrollbarPos
field_2066
scrolledLines
f_93763_
private boolean
l
newMessageSinceScroll
field_2067
hasUnreadNewMessages
f_93764_
private long
m
lastMessage
field_23935
lastMessageAddedTime
f_93765_

Constructor summary

ModifierConstructor
public (Minecraft client)

Method summary

Modifier and TypeMethod
public void
a(dzt arg0, int arg1)
render(PoseStack arg0, int arg1)
method_1805(class_4587 arg0, int arg1)
render(MatrixStack matrices, int tickDelta)
m_93780_(C_3181_ p_93782_, int arg1)
private boolean
j()
isChatHidden()
method_23677()
isChatHidden()
m_93817_()
private static double
b(int arg0)
getTimeFactor(int arg0)
method_19348(int arg0)
getMessageOpacityMultiplier(int age)
m_93775_(int p_93776_)
public void
a(boolean arg0)
clearMessages(boolean arg0)
method_1808(boolean arg0)
clear(boolean clearHistory)
m_93795_(boolean arg0)
public void
a(rm arg0)
addMessage(Component arg0)
method_1812(class_2561 arg0)
addMessage(Text message)
m_93785_(C_4996_ arg0)
private void
a(rm arg0, int arg1)
addMessage(Component arg0, int arg1)
method_1804(class_2561 arg0, int arg1)
addMessage(Text message, int messageId)
m_93787_(C_4996_ p_93789_, int arg1)
private void
a(rm arg0, int arg1, int arg2, boolean arg3)
addMessage(Component arg0, int arg1, int arg2, boolean arg3)
method_1815(class_2561 arg0, int arg1, int arg2, boolean arg3)
addMessage(Text message, int messageId, int timestamp, boolean refresh)
m_93790_(C_4996_ p_93792_, int p_93793_, int p_93794_, boolean arg3)
public void
a()
rescaleChat()
method_1817()
reset()
m_93769_()
public List<String>
b()
getRecentChat()
method_1809()
getMessageHistory()
m_93797_()
public void
a(String arg0)
addRecentChat(String arg0)
method_1803(String arg0)
addToMessageHistory(String message)
m_93783_(String arg0)
public void
c()
resetChatScroll()
method_1820()
resetScroll()
m_93810_()
public void
a(int arg0)
scrollChat(int arg0)
method_1802(int arg0)
scroll(int scroll)
m_205360_(int arg0)
public boolean
a(double arg0, double arg1)
handleChatQueueClicked(double arg0, double arg1)
method_27146(double arg0, double arg1)
mouseClicked(double mouseX, double mouseY)
m_93772_(double p_93774_, double arg1)
public Style
b(double arg0, double arg1)
getClickedComponentStyleAt(double arg0, double arg1)
method_1816(double arg0, double arg1)
getTextStyleAt(double x, double y)
m_93800_(double p_93802_, double arg1)
public ChatScreen
d()
getFocusedChat()
method_44047()
getChatScreen()
m_232476_()
private boolean
k()
isChatFocused()
method_1819()
isChatFocused()
m_93818_()
private void
c(int arg0)
removeById(int arg0)
method_1807(int arg0)
removeMessage(int messageId)
m_93803_(int arg0)
public int
e()
getWidth()
method_1811()
getWidth()
m_93813_()
public int
f()
getHeight()
method_1810()
getHeight()
m_93814_()
public double
g()
getScale()
method_1814()
getChatScale()
m_93815_()
public static int
a(double arg0)
getWidth(double arg0)
method_1806(double arg0)
getWidth(double widthOption)
m_93798_(double p_93799_)
public static int
b(double arg0)
getHeight(double arg0)
method_1818(double arg0)
getHeight(double heightOption)
m_93811_(double p_93812_)
public static double
h()
defaultUnfocusedPct()
method_41831()
getDefaultUnfocusedHeight()
m_232477_()
public int
i()
getLinesPerPage()
method_1813()
getVisibleLineCount()
m_93816_()
private long
m()
getChatRateMillis()
method_27148()
getChatDelayMillis()
m_93819_()
private void
n()
processPendingMessages()
method_27149()
processMessageQueue()
m_93820_()
public void
b(rm arg0)
enqueueMessage(Component arg0)
method_27147(class_2561 arg0)
queueMessage(Text message)
m_93808_(C_4996_ arg0)