net.minecraft.client.gui.components

public class ChatComponent

fin
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 static final int
c
MESSAGE_NOT_FOUND
field_39771
MISSING_MESSAGE_INDEX
f_240336_
private static final int
d
MESSAGE_INDENT
field_39772
field_39772
f_240385_
private static final int
e
MESSAGE_TAG_MARGIN_LEFT
field_39773
field_39773
f_240337_
private static final int
f
BOTTOM_MARGIN
field_40389
OFFSET_FROM_BOTTOM
f_244226_
private static final int
g
TIME_BEFORE_MESSAGE_DELETION
field_40390
REMOVAL_QUEUE_TICKS
f_243892_
private static final Component
h
DELETED_CHAT_MESSAGE
field_40391
DELETED_MARKER_TEXT
f_244190_
private final Minecraft
i
minecraft
field_2062
client
f_93758_
private final ArrayListDeque<String>
j
recentChat
field_2063
messageHistory
f_93759_
private final List<GuiMessage>
k
allMessages
field_2061
messages
f_93760_
private final List<GuiMessage$Line>
l
trimmedMessages
field_2064
visibleMessages
f_93761_
private int
m
chatScrollbarPos
field_2066
scrolledLines
f_93763_
private boolean
n
newMessageSinceScroll
field_2067
hasUnreadNewMessages
f_93764_
private final List<ChatComponent$DelayedMessageDeletion>
o
messageDeletionQueue
field_40392
removalQueue
f_244052_

Constructor summary

ModifierConstructor
public (Minecraft client)

Method summary

Modifier and TypeMethod
public void
a()
tick()
method_45584()
tickRemovalQueueIfExists()
m_246602_()
public void
a(fhz arg0, int arg1, int arg2, int arg3, boolean arg4)
render(GuiGraphics arg0, int arg1, int arg2, int arg3, boolean arg4)
method_1805(class_332 arg0, int arg1, int arg2, int arg3, boolean arg4)
render(DrawContext context, int currentTick, int mouseX, int mouseY, boolean focused)
m_280165_(C_279497_ p_283491_, int p_282406_, int p_283111_, int p_328818_, boolean arg4)
private void
a(fhz arg0, int arg1, int arg2, fgj$a arg3)
drawTagIcon(GuiGraphics arg0, int arg1, int arg2, GuiMessageTag$Icon arg3)
method_44719(class_332 arg0, int arg1, int arg2, class_7591$class_7592 arg3)
drawIndicatorIcon(DrawContext context, int x, int y, MessageIndicator$Icon icon)
m_280134_(C_279497_ p_281677_, int p_281878_, int p_282783_, C_240334_$C_240333_ arg3)
private int
a(fgi$a arg0)
getTagIconLeft(GuiMessage$Line arg0)
method_44720(class_303$class_7590 arg0)
getIndicatorX(ChatHudLine$Visible line)
m_240495_(C_3385_$C_240330_ arg0)
private boolean
l()
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(wz arg0)
addMessage(Component arg0)
method_1812(class_2561 arg0)
addMessage(Text message)
m_93785_(C_4996_ arg0)
public void
a(wz arg0, xl arg1, fgj arg2)
addMessage(Component arg0, MessageSignature arg1, GuiMessageTag arg2)
method_44811(class_2561 arg0, class_7469 arg1, class_7591 arg2)
addMessage(Text message, MessageSignatureData signatureData, MessageIndicator indicator)
m_240964_(C_4996_ p_241323_, C_213508_ p_241297_, C_240334_ arg2)
private void
a(fgi arg0)
logChatMessage(GuiMessage arg0)
method_45027(class_303 arg0)
logChatMessage(ChatHudLine message)
m_242648_(C_3385_ arg0)
private void
b(fgi arg0)
addMessageToDisplayQueue(GuiMessage arg0)
method_1815(class_303 arg0)
addVisibleMessage(ChatHudLine message)
m_320310_(C_3385_ arg0)
private void
c(fgi arg0)
addMessageToQueue(GuiMessage arg0)
method_58744(class_303 arg0)
addMessage(ChatHudLine message)
m_319022_(C_3385_ arg0)
private void
m()
processMessageDeletionQueue()
method_45589()
tickRemovalQueue()
m_246025_()
public void
a(xl arg0)
deleteMessage(MessageSignature arg0)
method_44812(class_7469 arg0)
removeMessage(MessageSignatureData signature)
m_240953_(C_213508_ arg0)
private ChatComponent$DelayedMessageDeletion
b(xl arg0)
deleteMessageOrDelay(MessageSignature arg0)
method_45587(class_7469 arg0)
queueForRemoval(MessageSignatureData signature)
m_245423_(C_213508_ arg0)
private GuiMessage
d(fgi arg0)
createDeletedMarker(GuiMessage arg0)
method_45586(class_303 arg0)
createRemovalMarker(ChatHudLine original)
m_246885_(C_3385_ arg0)
public void
b()
rescaleChat()
method_1817()
reset()
m_93769_()
private void
n()
refreshTrimmedMessages()
method_44813()
refresh()
m_324364_()
public ArrayListDeque<String>
c()
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
d()
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 GuiMessageTag
c(double arg0, double arg1)
getMessageTagAt(double arg0, double arg1)
method_44723(double arg0, double arg1)
getIndicatorAt(double mouseX, double mouseY)
m_240463_(double p_240554_, double arg1)
private boolean
a(double arg0, fgi$a arg1, fgj arg2)
hasSelectedMessageTag(double arg0, GuiMessage$Line arg1, GuiMessageTag arg2)
method_44718(double arg0, class_303$class_7590 arg1, class_7591 arg2)
isXInsideIndicatorIcon(double x, ChatHudLine$Visible line, MessageIndicator indicator)
m_240447_(double p_240547_, C_3385_$C_240330_ arg1, C_240334_ arg2)
private double
c(double arg0)
screenToChatX(double arg0)
method_44722(double arg0)
toChatLineX(double x)
m_240491_(double arg0)
private double
d(double arg0)
screenToChatY(double arg0)
method_44724(double arg0)
toChatLineY(double y)
m_240485_(double arg0)
private int
d(double arg0, double arg1)
getMessageEndIndexAt(double arg0, double arg1)
method_45588(double arg0, double arg1)
getMessageIndex(double chatLineX, double chatLineY)
m_246107_(double p_252282_, double arg1)
private int
e(double arg0, double arg1)
getMessageLineIndexAt(double arg0, double arg1)
method_44725(double arg0, double arg1)
getMessageLineIndex(double chatLineX, double chatLineY)
m_247428_(double p_250008_, double arg1)
public boolean
e()
isChatFocused()
method_1819()
isChatFocused()
m_93818_()
public int
f()
getWidth()
method_1811()
getWidth()
m_93813_()
public int
g()
getHeight()
method_1810()
getHeight()
m_93814_()
public double
h()
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
i()
defaultUnfocusedPct()
method_41831()
getDefaultUnfocusedHeight()
m_232477_()
public int
j()
getLinesPerPage()
method_1813()
getVisibleLineCount()
m_93816_()
private int
o()
getLineHeight()
method_44752()
getLineHeight()
m_240691_()
public ChatComponent$State
k()
storeState()
method_58745()
toChatState()
m_322825_()
public void
a(fin$b arg0)
restoreState(ChatComponent$State arg0)
method_58743(class_338$class_9477 arg0)
restoreChatState(ChatHud$ChatState state)
m_324317_(C_3454_$C_313638_ arg0)