2022-07-06 07:57:17 -04:00
|
|
|
CLASS net/minecraft/class_7594 net/minecraft/client/network/message/MessageHandler
|
2022-07-08 09:52:19 -04:00
|
|
|
COMMENT Handles received messages, including chat messages and game messages.
|
2022-07-06 07:57:17 -04:00
|
|
|
FIELD field_39779 client Lnet/minecraft/class_310;
|
2022-07-08 09:52:19 -04:00
|
|
|
FIELD field_39796 delayedMessages Ljava/util/Deque;
|
|
|
|
FIELD field_39797 chatDelay J
|
|
|
|
FIELD field_39798 lastProcessTime J
|
2023-08-09 22:58:29 -04:00
|
|
|
FIELD field_45950 VALIDATION_ERROR_TEXT Lnet/minecraft/class_2561;
|
2022-07-08 09:52:19 -04:00
|
|
|
METHOD <init> (Lnet/minecraft/class_310;)V
|
|
|
|
ARG 1 client
|
2022-10-19 13:11:34 -04:00
|
|
|
METHOD method_44732 getStatus (Lnet/minecraft/class_7471;Lnet/minecraft/class_2561;Ljava/time/Instant;)Lnet/minecraft/class_7595;
|
2022-07-20 12:56:22 -04:00
|
|
|
COMMENT {@return the trust status of {@code message}}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This returns {@link MessageTrustStatus#SECURE} for messages that are
|
|
|
|
COMMENT considered to be {@linkplain #isAlwaysTrusted always trusted}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see #isAlwaysTrusted
|
|
|
|
COMMENT @see MessageTrustStatus#getStatus
|
2022-07-15 10:12:43 -04:00
|
|
|
ARG 1 message
|
|
|
|
ARG 2 decorated
|
2022-10-23 11:18:41 -04:00
|
|
|
ARG 3 receptionTimestamp
|
2022-07-06 07:57:17 -04:00
|
|
|
METHOD method_44734 extractSender (Lnet/minecraft/class_2561;)Ljava/util/UUID;
|
|
|
|
ARG 1 text
|
|
|
|
METHOD method_44735 addToChatLog (Lnet/minecraft/class_2561;Ljava/time/Instant;)V
|
|
|
|
ARG 1 message
|
|
|
|
ARG 2 timestamp
|
|
|
|
METHOD method_44736 onGameMessage (Lnet/minecraft/class_2561;Z)V
|
2022-07-20 12:56:22 -04:00
|
|
|
COMMENT Called when a game message is received.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Game messages ignore chat delay.
|
2022-07-06 07:57:17 -04:00
|
|
|
ARG 1 message
|
|
|
|
ARG 2 overlay
|
2022-10-19 13:11:34 -04:00
|
|
|
METHOD method_44737 addToChatLog (Lnet/minecraft/class_7471;Lnet/minecraft/class_2556$class_7602;Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_7595;)V
|
2022-07-06 07:57:17 -04:00
|
|
|
ARG 1 message
|
2022-07-15 10:12:43 -04:00
|
|
|
ARG 2 params
|
2022-10-23 11:18:41 -04:00
|
|
|
ARG 3 sender
|
2022-07-06 07:57:17 -04:00
|
|
|
ARG 4 trustStatus
|
2022-07-15 10:12:43 -04:00
|
|
|
METHOD method_44738 isAlwaysTrusted (Ljava/util/UUID;)Z
|
2022-07-20 12:56:22 -04:00
|
|
|
COMMENT {@return whether messages from {@code sender} are always trusted}
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>Messages from this client's player in a singleplayer world are always trusted.
|
2022-07-15 10:12:43 -04:00
|
|
|
ARG 1 sender
|
2022-07-08 09:52:19 -04:00
|
|
|
METHOD method_44765 processDelayedMessages ()V
|
|
|
|
COMMENT Processes all delayed messages until one of them fails to process if the delay
|
|
|
|
COMMENT has passed, and otherwise does nothing.
|
|
|
|
METHOD method_44766 setChatDelay (D)V
|
|
|
|
COMMENT Sets the chat delay to {@code chatDelay} seconds. If the chat delay was changed
|
|
|
|
COMMENT to {@code 0}, this also processes all queued messages.
|
|
|
|
ARG 1 chatDelay
|
|
|
|
METHOD method_44769 process ()V
|
|
|
|
COMMENT Processes one delayed message from the queue's beginning.
|
2022-07-26 13:16:20 -04:00
|
|
|
METHOD method_44772 narrate (Lnet/minecraft/class_2556$class_7602;Lnet/minecraft/class_2561;)V
|
2022-07-20 12:56:22 -04:00
|
|
|
COMMENT Narrates {@code message}.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see net.minecraft.client.util.NarratorManager#narrateChatMessage
|
2022-07-15 10:12:43 -04:00
|
|
|
ARG 1 params
|
2022-08-04 09:05:23 -04:00
|
|
|
ARG 2 message
|
2022-07-08 09:52:19 -04:00
|
|
|
METHOD method_44775 shouldDelay ()Z
|
|
|
|
COMMENT {@return if the chat delay is set and the message should be delayed}
|
2022-10-19 13:11:34 -04:00
|
|
|
METHOD method_44818 process (Lnet/minecraft/class_7469;Ljava/util/function/BooleanSupplier;)V
|
2022-07-15 10:12:43 -04:00
|
|
|
COMMENT Queues {@code processor} during {@linkplain #shouldDelay the chat delay},
|
|
|
|
COMMENT otherwise runs the processor.
|
2022-10-23 11:18:41 -04:00
|
|
|
ARG 1 signature
|
|
|
|
ARG 2 processor
|
2022-07-15 10:12:43 -04:00
|
|
|
METHOD method_44819 removeDelayedMessage (Lnet/minecraft/class_7469;)Z
|
2022-07-20 12:56:22 -04:00
|
|
|
COMMENT Removes a delayed message whose signature matches {@code signature}.
|
|
|
|
COMMENT If this returns {@code false}, either the message is not received or it it
|
|
|
|
COMMENT already on the hud.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return whether the message was removed
|
2022-07-15 10:12:43 -04:00
|
|
|
ARG 1 signature
|
2022-10-19 13:11:34 -04:00
|
|
|
METHOD method_44943 processChatMessageInternal (Lnet/minecraft/class_2556$class_7602;Lnet/minecraft/class_7471;Lnet/minecraft/class_2561;Lcom/mojang/authlib/GameProfile;ZLjava/time/Instant;)Z
|
2022-07-20 12:56:22 -04:00
|
|
|
COMMENT Processes a chat message.
|
|
|
|
COMMENT
|
2022-07-26 13:33:57 -04:00
|
|
|
COMMENT <p>If the message cannot be verified due to a broken chain, this disconnects
|
|
|
|
COMMENT the client from the server.
|
|
|
|
COMMENT
|
2022-07-20 12:56:22 -04:00
|
|
|
COMMENT <p>The message can still end up not being displayed if the verification
|
|
|
|
COMMENT fails and {@code onlyShowSecureChat} is {@code true} or if the sender is
|
|
|
|
COMMENT blocked via the social interactions screen.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This adds the message to the hud, narrates it, and appends it to the
|
|
|
|
COMMENT chat log.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @return whether the message was actually displayed
|
|
|
|
ARG 1 params
|
|
|
|
ARG 2 message
|
|
|
|
ARG 3 decorated
|
2022-10-23 11:18:41 -04:00
|
|
|
ARG 4 sender
|
2022-07-20 12:56:22 -04:00
|
|
|
ARG 5 onlyShowSecureChat
|
|
|
|
ARG 6 receptionTimestamp
|
|
|
|
COMMENT the timestamp when the message was received by this client
|
|
|
|
METHOD method_44944 getUnprocessedMessageCount ()J
|
|
|
|
COMMENT {@return the number of delayed messages that are not processed yet}
|
|
|
|
METHOD method_44945 processAll ()V
|
|
|
|
COMMENT Processes all delayed messages from the queue.
|
2022-10-23 11:18:41 -04:00
|
|
|
METHOD method_45746 onProfilelessMessage (Lnet/minecraft/class_2561;Lnet/minecraft/class_2556$class_7602;)V
|
|
|
|
ARG 1 content
|
|
|
|
ARG 2 params
|
|
|
|
METHOD method_45747 (Lnet/minecraft/class_7469;Lnet/minecraft/class_7594$class_7627;)Z
|
|
|
|
ARG 1 message
|
|
|
|
METHOD method_45748 onChatMessage (Lnet/minecraft/class_7471;Lcom/mojang/authlib/GameProfile;Lnet/minecraft/class_2556$class_7602;)V
|
|
|
|
ARG 1 message
|
|
|
|
ARG 2 sender
|
|
|
|
ARG 3 params
|
2023-08-09 22:58:29 -04:00
|
|
|
METHOD method_53488 onUnverifiedMessage (Ljava/util/UUID;Lnet/minecraft/class_2556$class_7602;)V
|
|
|
|
ARG 1 sender
|
|
|
|
ARG 2 parameters
|
2022-07-20 12:56:22 -04:00
|
|
|
CLASS class_7627 ProcessableMessage
|
|
|
|
COMMENT A message to be processed. An instance is created for each received message.
|
2022-10-19 13:11:34 -04:00
|
|
|
METHOD method_45750 accept ()Z
|
2022-07-20 12:56:22 -04:00
|
|
|
COMMENT If this is not processed yet, adds the message to the hud; otherwise, processes
|
|
|
|
COMMENT the message header without adding to the hud.
|