1.19.1-pre3 chat mappings (#3232)

* 1.19.1-pre3 chat mappings

* Applied review suggestions
This commit is contained in:
mschae23 2022-07-07 22:49:57 +02:00 committed by GitHub
parent ec767c30f2
commit 6844ca11ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 56 additions and 4 deletions

View File

@ -3,7 +3,9 @@ CLASS net/minecraft/class_637 net/minecraft/client/network/ClientCommandSource
FIELD field_3723 pendingCompletion Ljava/util/concurrent/CompletableFuture;
FIELD field_3724 completionId I
FIELD field_3725 client Lnet/minecraft/class_310;
FIELD field_39794 chatSuggestions Ljava/util/Set;
METHOD <init> (Lnet/minecraft/class_634;Lnet/minecraft/class_310;)V
ARG 1 networkHandler
ARG 2 client
METHOD method_2929 format (D)Ljava/lang/String;
ARG 0 d
@ -14,3 +16,6 @@ CLASS net/minecraft/class_637 net/minecraft/client/network/ClientCommandSource
ARG 2 suggestions
METHOD method_41232 (Lnet/minecraft/class_2172$class_7078;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/class_2378;)Ljava/util/concurrent/CompletableFuture;
ARG 3 registry
METHOD method_44764 changeChatSuggestions (Lnet/minecraft/class_7597$class_7598;Ljava/util/List;)V
ARG 1 action
ARG 2 entries

View File

@ -28,6 +28,7 @@ CLASS net/minecraft/class_2172 net/minecraft/command/CommandSource
ARG 1 registry
ARG 2 suggestedIdType
ARG 3 builder
METHOD method_44750 getChatSuggestions ()Ljava/util/Collection;
METHOD method_9250 forEachMatching (Ljava/lang/Iterable;Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;Ljava/util/function/Consumer;)V
ARG 0 candidates
ARG 1 remaining

View File

@ -207,3 +207,5 @@ CLASS net/minecraft/class_2602 net/minecraft/network/listener/ClientPlayPacketLi
ARG 1 packet
METHOD method_44286 onChatPreviewStateChange (Lnet/minecraft/class_7519;)V
ARG 1 packet
METHOD method_44763 onChatSuggestions (Lnet/minecraft/class_7597;)V
ARG 1 packet

View File

@ -11,6 +11,7 @@ CLASS net/minecraft/class_7436 net/minecraft/network/message/MessageSender
ARG 1 buf
METHOD method_43841 of (Lnet/minecraft/class_2561;)Lnet/minecraft/class_7436;
ARG 0 name
METHOD method_43842 withTeamName (Lnet/minecraft/class_2561;)Lnet/minecraft/class_7436;
ARG 1 teamName
METHOD method_43842 withTargetName (Lnet/minecraft/class_2561;)Lnet/minecraft/class_7436;
ARG 1 targetName
METHOD method_44744 hasProfileId ()Z
METHOD method_44778 withoutProfileId ()Lnet/minecraft/class_7436;

View File

@ -43,6 +43,16 @@ CLASS net/minecraft/class_2556 net/minecraft/network/message/MessageType
COMMENT net.minecraft.server.command.MeCommand /me}. The message content is
COMMENT {@linkplain Decoration#ofChat decorated} using the {@code chat.type.emote} text.
FIELD field_39677 CHAT_TEXT_DECORATION Lnet/minecraft/class_7463;
FIELD field_39799 Lnet/minecraft/class_5321;
COMMENT The registry key for the msg command message type, used by {@linkplain
COMMENT net.minecraft.server.command.MessageCommand /msg} for incoming messages.
COMMENT The message content is {@linkplain Decoration#ofIncomingMessage decorated} using
COMMENT the {@code commands.message.display.incoming} text.
FIELD field_39800 Lnet/minecraft/class_5321;
COMMENT The registry key for the msg command message type, used by {@linkplain
COMMENT net.minecraft.server.command.MessageCommand /msg} for outgoing messages.
COMMENT The message content is {@linkplain Decoration#ofOutgoingMessage decorated} using
COMMENT the {@code commands.message.display.outgoing} text.
METHOD method_43843 (Lcom/mojang/serialization/codecs/RecordCodecBuilder$Instance;)Lcom/mojang/datafixers/kinds/App;
ARG 0 instance
METHOD method_43844 initialize (Lnet/minecraft/class_2378;)Lnet/minecraft/class_6880;

View File

@ -62,3 +62,5 @@ CLASS net/minecraft/class_7471 net/minecraft/network/message/SignedMessage
ARG 1 currentTime
METHOD method_44748 isExpiredOnClient (Ljava/time/Instant;)Z
ARG 1 currentTime
METHOD method_44781 (Lnet/minecraft/class_7436;)Z
ARG 1 sender

View File

@ -30,3 +30,8 @@ CLASS net/minecraft/class_7438 net/minecraft/network/packet/s2c/play/ChatMessage
COMMENT @throws NullPointerException when the type ID is invalid (due to unsynced registry, etc)
ARG 1 registry
METHOD method_43885 getSignedMessage ()Lnet/minecraft/class_7471;
METHOD method_44785 ofUnsigned (Lnet/minecraft/class_2561;ILnet/minecraft/class_7436;Ljava/time/Instant;)Lnet/minecraft/class_7438;
ARG 0 text
ARG 1 typeId
ARG 2 sender
ARG 3 timestamp

View File

@ -0,0 +1,4 @@
CLASS net/minecraft/class_7597 net/minecraft/network/packet/s2c/play/ChatSuggestionsS2CPacket
METHOD <init> (Lnet/minecraft/class_2540;)V
ARG 1 buf
CLASS class_7598 Action

View File

@ -420,6 +420,12 @@ CLASS net/minecraft/server/MinecraftServer
COMMENT
COMMENT @see MessageDecorator
METHOD method_44301 getServicesSignatureVerifier ()Lnet/minecraft/class_7500;
METHOD method_44776 (Lnet/minecraft/class_5321;Lnet/minecraft/class_2378;)Lnet/minecraft/class_2556;
ARG 1 registry
METHOD method_44777 applyDecoration (Lnet/minecraft/class_7436;Lnet/minecraft/class_2561;Lnet/minecraft/class_5321;)Lnet/minecraft/class_2561;
ARG 1 sender
ARG 2 text
ARG 3 typeKey
METHOD method_5387 isMainThread ()Z
CLASS class_6414 DebugStart
FIELD field_33980 time J

View File

@ -7,3 +7,5 @@ CLASS net/minecraft/class_3082 net/minecraft/server/command/MessageCommand
ARG 2 signedMessage
METHOD method_13463 (Lcom/mojang/brigadier/context/CommandContext;)I
ARG 0 context
METHOD method_44144 (Ljava/util/Collection;Lnet/minecraft/class_7436;Lnet/minecraft/class_2168;Lnet/minecraft/class_5837;)V
ARG 3 decoratedMessage

View File

@ -53,6 +53,10 @@ CLASS net/minecraft/class_2168 net/minecraft/server/command/ServerCommandSource
METHOD method_43738 getSigner ()Lnet/minecraft/class_7448;
METHOD method_44023 getPlayer ()Lnet/minecraft/class_3222;
COMMENT {@return the player from this command source, or {@code null} if the source is not a player}
METHOD method_44749 sendChatMessage (Lnet/minecraft/class_7436;Lnet/minecraft/class_7471;Lnet/minecraft/class_5321;)V
ARG 1 sender
ARG 2 message
ARG 3 typeKey
METHOD method_9206 withLevel (I)Lnet/minecraft/class_2168;
ARG 1 level
METHOD method_9207 getPlayerOrThrow ()Lnet/minecraft/class_3222;

View File

@ -9,7 +9,7 @@ CLASS net/minecraft/class_7463 net/minecraft/text/Decoration
METHOD method_43831 ofChat (Ljava/lang/String;)Lnet/minecraft/class_7463;
COMMENT {@return the decoration used in chat messages}
COMMENT
COMMENT @implNote This decoration allows use of the sender and the content parameters. It has no style.
COMMENT @implNote This decoration allows using the sender and the content parameters. It has no style.
ARG 0 translationKey
METHOD method_43832 apply (Lnet/minecraft/class_2561;Lnet/minecraft/class_7436;)Lnet/minecraft/class_2561;
COMMENT {@return the text obtained by applying the passed values to the decoration}
@ -27,9 +27,19 @@ CLASS net/minecraft/class_7463 net/minecraft/text/Decoration
METHOD method_43835 ofTeamMessage (Ljava/lang/String;)Lnet/minecraft/class_7463;
COMMENT {@return the decoration used in chat messages}
COMMENT
COMMENT @implNote This decoration allows use of the team name, the sender, and the
COMMENT @implNote This decoration allows using the target (team name), the sender, and the
COMMENT content parameters. It has no style.
ARG 0 translationKey
METHOD method_44779 ofIncomingMessage (Ljava/lang/String;)Lnet/minecraft/class_7463;
COMMENT {@return the decoration used in chat messages}
COMMENT
COMMENT @implNote This decoration allows using the sender and the content parameters. It is gray and italic.
ARG 0 translationKey
METHOD method_44780 ofOutgoingMessage (Ljava/lang/String;)Lnet/minecraft/class_7463;
COMMENT {@return the decoration used in chat messages}
COMMENT
COMMENT @implNote This decoration allows using the target and the content parameters. It is gray and italic.
ARG 0 translationKey
CLASS class_7464 Parameter
COMMENT Represents a parameter that the decoration uses.
FIELD field_39223 CODEC Lcom/mojang/serialization/Codec;