Class ChatListener
java.lang.Object
net.minecraft.client.multiplayer.chat.ChatListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Deque<ChatListener.Message>
private long
private final Minecraft
private long
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
private ChatTrustLevel
evaluateTrustLevel
(PlayerChatMessage p_251246_, Component p_250576_, Instant p_249995_) private UUID
guessChatUUID
(Component p_240595_) void
handleDisguisedChatMessage
(Component p_250375_, ChatType.Bound p_251256_) private void
handleMessage
(MessageSignature p_249408_, BooleanSupplier p_250870_) void
handlePlayerChatMessage
(PlayerChatMessage p_251553_, com.mojang.authlib.GameProfile p_250022_, ChatType.Bound p_252158_) void
handleSystemMessage
(Component p_240522_, boolean p_240642_) private boolean
isSenderLocalPlayer
(UUID p_241343_) private void
logPlayerMessage
(PlayerChatMessage p_252155_, ChatType.Bound p_249730_, com.mojang.authlib.GameProfile p_248589_, ChatTrustLevel p_248881_) private void
logSystemMessage
(Component p_240609_, Instant p_240541_) private void
narrateChatMessage
(ChatType.Bound p_241352_, Component p_243262_) long
boolean
removeFromDelayedMessageQueue
(MessageSignature p_241445_) void
setMessageDelay
(double p_240785_) private boolean
showMessageToPlayer
(ChatType.Bound p_251766_, PlayerChatMessage p_249430_, Component p_249231_, com.mojang.authlib.GameProfile p_249177_, boolean p_251638_, Instant p_249665_) void
tick()
private boolean
-
Field Details
-
minecraft
-
delayedMessageQueue
-
messageDelay
private long messageDelay -
previousMessageTime
private long previousMessageTime
-
-
Constructor Details
-
ChatListener
-
-
Method Details
-
tick
public void tick() -
setMessageDelay
public void setMessageDelay(double p_240785_) -
acceptNextDelayedMessage
public void acceptNextDelayedMessage() -
queueSize
public long queueSize() -
clearQueue
public void clearQueue() -
removeFromDelayedMessageQueue
-
willDelayMessages
private boolean willDelayMessages() -
handleMessage
-
handlePlayerChatMessage
public void handlePlayerChatMessage(PlayerChatMessage p_251553_, com.mojang.authlib.GameProfile p_250022_, ChatType.Bound p_252158_) -
handleDisguisedChatMessage
-
showMessageToPlayer
private boolean showMessageToPlayer(ChatType.Bound p_251766_, PlayerChatMessage p_249430_, Component p_249231_, com.mojang.authlib.GameProfile p_249177_, boolean p_251638_, Instant p_249665_) -
narrateChatMessage
-
evaluateTrustLevel
private ChatTrustLevel evaluateTrustLevel(PlayerChatMessage p_251246_, Component p_250576_, Instant p_249995_) -
logPlayerMessage
private void logPlayerMessage(PlayerChatMessage p_252155_, ChatType.Bound p_249730_, com.mojang.authlib.GameProfile p_248589_, ChatTrustLevel p_248881_) -
logSystemMessage
-
handleSystemMessage
-
guessChatUUID
-
isSenderLocalPlayer
-