mirror of https://github.com/FabricMC/yarn.git
1.19.1-pre5 networking (#3248)
* 1.19.1-pre5 networking * Consistently spell acknowledgment * Fix javadoc * Map an arg
This commit is contained in:
parent
4fe40ee455
commit
3da00e352d
|
@ -1,2 +0,0 @@
|
|||
CLASS net/minecraft/class_7633
|
||||
METHOD method_18784 tick ()V
|
|
@ -1,7 +0,0 @@
|
|||
CLASS net/minecraft/class_7635
|
||||
CLASS class_7609 LastSeenMessage
|
||||
COMMENT A pair of a player's UUID and the signature of the last message they saw.
|
||||
METHOD <init> (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
METHOD method_44873 write (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
|
@ -48,6 +48,8 @@ CLASS net/minecraft/class_2196 net/minecraft/command/argument/MessageArgumentTyp
|
|||
ARG 1 source
|
||||
CLASS class_7515 SignedMessage
|
||||
METHOD method_44262 decorate (Lnet/minecraft/class_2168;Ljava/util/function/Consumer;)V
|
||||
ARG 1 source
|
||||
ARG 2 callback
|
||||
METHOD method_44801 (Lnet/minecraft/class_5837;Lnet/minecraft/class_5837;)Lnet/minecraft/class_5837;
|
||||
ARG 1 decoratedMessage
|
||||
METHOD method_44802 format (Lnet/minecraft/class_2168;Lnet/minecraft/class_5837;)Lnet/minecraft/class_5837;
|
||||
|
@ -80,3 +82,9 @@ CLASS net/minecraft/class_2196 net/minecraft/command/argument/MessageArgumentTyp
|
|||
ARG 1 message
|
||||
METHOD method_44810 (Lnet/minecraft/class_2168;Lnet/minecraft/class_5837;)Ljava/util/concurrent/CompletionStage;
|
||||
ARG 2 filtered
|
||||
METHOD method_44911 (Ljava/lang/String;)Lnet/minecraft/class_2561;
|
||||
ARG 1 rawContent
|
||||
METHOD method_44912 (Lnet/minecraft/class_7610$class_7611;Lnet/minecraft/class_7610$class_7613;Lnet/minecraft/class_7470;Lnet/minecraft/class_5837;Lnet/minecraft/class_5837;)Lnet/minecraft/class_5837;
|
||||
ARG 5 decoratedMessage
|
||||
METHOD method_44914 (Lnet/minecraft/class_2168;Ljava/lang/String;)Lnet/minecraft/class_2561;
|
||||
ARG 2 filteredContent
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
CLASS net/minecraft/class_7451 net/minecraft/command/argument/SignedArgumentType
|
||||
METHOD method_43752 toSignedString (Ljava/lang/Object;)Ljava/lang/String;
|
||||
ARG 1 value
|
|
@ -1,3 +0,0 @@
|
|||
CLASS net/minecraft/class_7451 net/minecraft/command/argument/TextConvertibleArgumentType
|
||||
METHOD method_43752 toText (Ljava/lang/Object;)Ljava/lang/String;
|
||||
ARG 1 value
|
|
@ -94,3 +94,5 @@ CLASS net/minecraft/class_2792 net/minecraft/network/listener/ServerPlayPacketLi
|
|||
ARG 1 packet
|
||||
METHOD method_43931 onRequestChatPreview (Lnet/minecraft/class_7496;)V
|
||||
ARG 1 packet
|
||||
METHOD method_44898 onMessageAcknowledgment (Lnet/minecraft/class_7640;)V
|
||||
ARG 1 packet
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
CLASS net/minecraft/class_7633 net/minecraft/network/listener/TickablePacketListener
|
||||
METHOD method_18784 tick ()V
|
|
@ -0,0 +1,42 @@
|
|||
CLASS net/minecraft/class_7638 net/minecraft/network/message/AcknowledgmentValidator
|
||||
COMMENT A class that validates the clients' message acknowledgment.
|
||||
COMMENT
|
||||
COMMENT <p>When clients receive or send messages, they send "acknowledgments" to the server,
|
||||
COMMENT containing messages they've last seen or received. If there are too many messages
|
||||
COMMENT waiting for message acknowledgments (more than {@value
|
||||
COMMENT net.minecraft.server.network.ServerPlayNetworkHandler#MAX_PENDING_ACKNOWLEDGMENTS}),
|
||||
COMMENT or if the acknowledgment is incorrect, the client will be disconnected.
|
||||
FIELD field_39888 UNKNOWN I
|
||||
FIELD field_39889 prevValidated Lnet/minecraft/class_7635;
|
||||
FIELD field_39890 pending Lit/unimi/dsi/fastutil/objects/ObjectList;
|
||||
METHOD method_44987 getPendingCount ()I
|
||||
METHOD method_44988 order (Ljava/util/List;[ILnet/minecraft/class_7635$class_7609;)I
|
||||
COMMENT Orders {@code lastSeen}. {@code result} should be an array with the same size
|
||||
COMMENT as {@code lastSeen}, and it will hold the order of each entry, where a larger
|
||||
COMMENT integer corresponds to more recent message. If the integer is {@value #UNKNOWN},
|
||||
COMMENT then the message is unknown (neither previously acknowledged nor is newly sent),
|
||||
COMMENT which causes validation failure.
|
||||
COMMENT
|
||||
COMMENT @return the order of the last received message; if any messages have higher order
|
||||
COMMENT than this, it is a validation failure.
|
||||
ARG 1 lastSeen
|
||||
ARG 2 result
|
||||
ARG 3 lastReceived
|
||||
METHOD method_44989 addPending (Lnet/minecraft/class_7635$class_7609;)V
|
||||
ARG 1 entry
|
||||
METHOD method_44990 validate (Lnet/minecraft/class_7635$class_7636;)Ljava/util/Set;
|
||||
COMMENT Validates {@code acknowledgment}.
|
||||
COMMENT
|
||||
COMMENT @return reasons for acknowledgment validation failure, or an empty set if
|
||||
COMMENT validation is successful
|
||||
ARG 1 acknowledgment
|
||||
METHOD method_44991 hasDuplicateProfiles (Lnet/minecraft/class_7635;)Z
|
||||
COMMENT {@return whether {@code messages} have multiple entries with the same profile ID}
|
||||
COMMENT
|
||||
COMMENT <p>If {@code true}, validation fails.
|
||||
ARG 1 messages
|
||||
CLASS class_7639 FailureReason
|
||||
FIELD field_39895 description Ljava/lang/String;
|
||||
METHOD <init> (Ljava/lang/String;ILjava/lang/String;)V
|
||||
ARG 3 description
|
||||
METHOD method_44992 getDescription ()Ljava/lang/String;
|
|
@ -10,7 +10,7 @@ CLASS net/minecraft/class_7450 net/minecraft/network/message/ArgumentSignatureDa
|
|||
METHOD method_43746 collectArguments (Lcom/mojang/brigadier/context/CommandContextBuilder;)Ljava/util/List;
|
||||
COMMENT {@return the signable argument names and their values from {@code builder}}
|
||||
ARG 0 builder
|
||||
METHOD method_43747 resultToText (Lnet/minecraft/class_7451;Lcom/mojang/brigadier/context/ParsedArgument;)Ljava/lang/String;
|
||||
METHOD method_43747 resultToString (Lnet/minecraft/class_7451;Lcom/mojang/brigadier/context/ParsedArgument;)Ljava/lang/String;
|
||||
ARG 0 type
|
||||
ARG 1 argument
|
||||
METHOD method_43748 get (Ljava/lang/String;)Lnet/minecraft/class_7469;
|
||||
|
@ -29,6 +29,12 @@ CLASS net/minecraft/class_7450 net/minecraft/network/message/ArgumentSignatureDa
|
|||
METHOD method_44799 (Lnet/minecraft/class_2540;Lnet/minecraft/class_7450$class_7599;)V
|
||||
ARG 0 buf2
|
||||
ARG 1 entry
|
||||
METHOD method_44910 shouldPreview (Lcom/mojang/brigadier/ParseResults;)Z
|
||||
COMMENT {@return whether to preview {@code parseResults}}
|
||||
COMMENT
|
||||
COMMENT <p>This returns {@code true} if the parsed arguments include {@link
|
||||
COMMENT SignedArgumentType}.
|
||||
ARG 0 parseResults
|
||||
CLASS class_7599 Entry
|
||||
COMMENT An entry of the signatures map, consisting of the argument's name and signature data.
|
||||
METHOD <init> (Lnet/minecraft/class_2540;)V
|
||||
|
@ -39,3 +45,4 @@ CLASS net/minecraft/class_7450 net/minecraft/network/message/ArgumentSignatureDa
|
|||
COMMENT A functional interface that signs an argument of a command.
|
||||
METHOD sign (Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_7469;
|
||||
ARG 1 argumentName
|
||||
ARG 2 value
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
CLASS net/minecraft/class_7634 net/minecraft/network/message/DecoratedContents
|
||||
COMMENT A pair of the decorated message content and its undecorated ("plain") message content.
|
||||
COMMENT Note that the two contents can be equal if no decoration is applied.
|
||||
METHOD <init> (Ljava/lang/String;)V
|
||||
ARG 1 content
|
||||
METHOD <init> (Ljava/lang/String;Lnet/minecraft/class_2561;)V
|
||||
ARG 1 plain
|
||||
ARG 2 decorated
|
||||
METHOD <init> (Lnet/minecraft/class_2561;)V
|
||||
ARG 1 content
|
||||
METHOD method_44973 isDecorated ()Z
|
||||
METHOD method_44974 of (Lnet/minecraft/class_5837;)Lnet/minecraft/class_5837;
|
||||
ARG 0 message
|
||||
METHOD method_44975 of (Lnet/minecraft/class_5837;Lnet/minecraft/class_5837;)Lnet/minecraft/class_5837;
|
||||
ARG 0 plain
|
||||
ARG 1 decorated
|
||||
METHOD method_44976 (Lnet/minecraft/class_5837;Ljava/lang/String;)Lnet/minecraft/class_7634;
|
||||
ARG 1 filteredMessage
|
||||
METHOD method_44977 read (Lnet/minecraft/class_2540;)Lnet/minecraft/class_7634;
|
||||
ARG 0 buf
|
||||
METHOD method_44978 write (Lnet/minecraft/class_2540;Lnet/minecraft/class_7634;)V
|
||||
ARG 0 buf
|
||||
ARG 1 contents
|
||||
METHOD method_44979 (Lnet/minecraft/class_5837;Ljava/lang/String;)Lnet/minecraft/class_7634;
|
||||
ARG 1 rawMessage
|
|
@ -0,0 +1,32 @@
|
|||
CLASS net/minecraft/class_7635 net/minecraft/network/message/LastSeenMessageList
|
||||
COMMENT A list of messages a client has seen.
|
||||
FIELD field_39883 EMPTY Lnet/minecraft/class_7635;
|
||||
FIELD field_39884 MAX_ENTRIES I
|
||||
METHOD <init> (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
METHOD method_44980 write (Ljava/io/DataOutput;)V
|
||||
ARG 1 output
|
||||
METHOD method_44981 write (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
METHOD method_44982 (Lnet/minecraft/class_2540;Lnet/minecraft/class_7635$class_7609;)V
|
||||
ARG 0 buf2
|
||||
ARG 1 entries
|
||||
CLASS class_7609 Entry
|
||||
COMMENT A pair of a player's UUID and the signature of the last message they saw,
|
||||
COMMENT used as an entry of {@link LastSeenMessageList}.
|
||||
METHOD <init> (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
METHOD method_44873 write (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
CLASS class_7636 Acknowledgment
|
||||
COMMENT A record of messages acknowledged by a client.
|
||||
COMMENT
|
||||
COMMENT <p>This holds the messages the client has recently seen, as well as the last
|
||||
COMMENT message they received, if any.
|
||||
METHOD <init> (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
METHOD method_44983 write (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
METHOD method_44984 (Lnet/minecraft/class_2540;Lnet/minecraft/class_7635$class_7609;)V
|
||||
ARG 0 buf2
|
||||
ARG 1 lastReceived
|
|
@ -0,0 +1,23 @@
|
|||
CLASS net/minecraft/class_7637 net/minecraft/network/message/LastSeenMessagesCollector
|
||||
COMMENT Collects the message that are last seen by a client.
|
||||
COMMENT
|
||||
COMMENT <p>The message, along with the "last received" message, forms an
|
||||
COMMENT "acknowledgment" of received messages. They are sent to the server
|
||||
COMMENT when the client has enough messages received or when they send a message.
|
||||
COMMENT
|
||||
COMMENT @implNote The maximum amount of message entries are specified in the constructor.
|
||||
COMMENT The vanilla clients collect 5 entries. Calling {@link #add} adds the message to
|
||||
COMMENT the beginning of the entries list, and evicts the oldest message. If there are
|
||||
COMMENT entries with the same sender profile ID, the older entry will be replaced with
|
||||
COMMENT {@code null} instead of filling the hole.
|
||||
COMMENT
|
||||
COMMENT @see AcknowledgmentValidator
|
||||
COMMENT @see LastSeenMessageList
|
||||
FIELD field_39885 entries [Lnet/minecraft/class_7635$class_7609;
|
||||
FIELD field_39886 size I
|
||||
FIELD field_39887 lastSeenMessages Lnet/minecraft/class_7635;
|
||||
METHOD <init> (I)V
|
||||
ARG 1 size
|
||||
METHOD method_44985 getLastSeenMessages ()Lnet/minecraft/class_7635;
|
||||
METHOD method_44986 add (Lnet/minecraft/class_7635$class_7609;)V
|
||||
ARG 1 entry
|
|
@ -14,6 +14,6 @@ CLASS net/minecraft/class_7608 net/minecraft/network/message/MessageBody
|
|||
COMMENT {@return the digest of this body}
|
||||
COMMENT
|
||||
COMMENT @implNote This is a SHA-256 hash of the salt, the timestamp represented as the seconds
|
||||
COMMENT since the Unix epoch, {@linkplain #toBytes(Text) the content}, and
|
||||
COMMENT {@linkplain #toBytes(List) the list of each player's last seen message}.
|
||||
COMMENT since the Unix epoch, the content, and the list of each player's last seen message.
|
||||
METHOD method_44869 write (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
|
|
|
@ -15,17 +15,25 @@ CLASS net/minecraft/class_7610 net/minecraft/network/message/MessageChain
|
|||
METHOD method_44875 pack (Lnet/minecraft/class_7501;Lnet/minecraft/class_7470;Lnet/minecraft/class_7634;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7610$class_7613;
|
||||
ARG 1 signer
|
||||
ARG 2 metadata
|
||||
ARG 3 contents
|
||||
ARG 4 lastSeenMessages
|
||||
METHOD method_44876 sign (Lnet/minecraft/class_7501;Lnet/minecraft/class_7470;Lnet/minecraft/class_7469;Lnet/minecraft/class_7634;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7469;
|
||||
ARG 0 signer
|
||||
ARG 1 metadata
|
||||
ARG 2 precedingSignature
|
||||
ARG 3 contents
|
||||
ARG 4 lastSeenMessages
|
||||
METHOD method_44877 createMessage (Lnet/minecraft/class_7610$class_7613;Lnet/minecraft/class_7469;Lnet/minecraft/class_7470;Lnet/minecraft/class_7634;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7471;
|
||||
ARG 0 signature
|
||||
ARG 1 precedingSignature
|
||||
ARG 2 metadata
|
||||
ARG 3 contents
|
||||
ARG 4 lastSeenMessage
|
||||
METHOD method_44878 unpack (Lnet/minecraft/class_7610$class_7613;Lnet/minecraft/class_7470;Lnet/minecraft/class_7634;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7471;
|
||||
ARG 1 signature
|
||||
ARG 2 metadata
|
||||
ARG 3 contents
|
||||
ARG 4 lastSeenMessages
|
||||
METHOD method_44879 (Lnet/minecraft/class_7614;[BLnet/minecraft/class_7498$class_7499;)V
|
||||
ARG 2 updatable
|
||||
METHOD method_44880 getPacker ()Lnet/minecraft/class_7610$class_7612;
|
||||
|
@ -42,13 +50,18 @@ CLASS net/minecraft/class_7610 net/minecraft/network/message/MessageChain
|
|||
METHOD method_44881 (Lnet/minecraft/class_7610$class_7613;Lnet/minecraft/class_7470;Lnet/minecraft/class_7634;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7471;
|
||||
ARG 0 signature
|
||||
ARG 1 metadata
|
||||
ARG 2 contents
|
||||
ARG 3 lastSeenMessages
|
||||
METHOD unpack (Lnet/minecraft/class_7610$class_7613;Lnet/minecraft/class_7470;Lnet/minecraft/class_5837;Lnet/minecraft/class_7635;)Lnet/minecraft/class_5837;
|
||||
ARG 1 signature
|
||||
ARG 2 metadata
|
||||
ARG 3 content
|
||||
ARG 3 contents
|
||||
ARG 4 lastSeenMessages
|
||||
METHOD unpack (Lnet/minecraft/class_7610$class_7613;Lnet/minecraft/class_7470;Lnet/minecraft/class_7634;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7471;
|
||||
ARG 1 signature
|
||||
ARG 2 metadata
|
||||
ARG 3 contents
|
||||
ARG 4 lastSeenMessages
|
||||
CLASS class_7612 Packer
|
||||
COMMENT Packers sign a message on the client with its preceding message's signature.
|
||||
COMMENT
|
||||
|
@ -56,4 +69,6 @@ CLASS net/minecraft/class_7610 net/minecraft/network/message/MessageChain
|
|||
METHOD pack (Lnet/minecraft/class_7501;Lnet/minecraft/class_7470;Lnet/minecraft/class_7634;Lnet/minecraft/class_7635;)Lnet/minecraft/class_7610$class_7613;
|
||||
ARG 1 signer
|
||||
ARG 2 metadata
|
||||
ARG 3 contents
|
||||
ARG 4 lastSeenMessages
|
||||
CLASS class_7613 Signature
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
CLASS net/minecraft/class_7619 net/minecraft/network/message/MessageChainTaskQueue
|
||||
COMMENT Queues a future that handles received messages on the server thread.
|
||||
FIELD field_39829 current Ljava/util/concurrent/CompletableFuture;
|
||||
FIELD field_39830 executor Ljava/util/concurrent/Executor;
|
||||
METHOD <init> (Ljava/util/concurrent/Executor;)V
|
||||
ARG 1 executor
|
||||
METHOD method_44903 (Lnet/minecraft/class_7620$class_7621;Ljava/lang/Object;)Ljava/util/concurrent/CompletionStage;
|
||||
ARG 1 void_
|
||||
METHOD method_44904 (Ljava/lang/Throwable;)Ljava/lang/Object;
|
||||
ARG 0 throwable
|
|
@ -19,6 +19,9 @@ CLASS net/minecraft/class_7492 net/minecraft/network/message/MessageDecorator
|
|||
COMMENT a delay between the previewing and the submission.
|
||||
FIELD field_39384 NOOP Lnet/minecraft/class_7492;
|
||||
COMMENT An empty message decorator that returns the original message.
|
||||
METHOD attachUnsignedDecoration (Lnet/minecraft/class_5837;Lnet/minecraft/class_5837;)Lnet/minecraft/class_5837;
|
||||
ARG 0 message
|
||||
ARG 1 decorated
|
||||
METHOD decorate (Lnet/minecraft/class_3222;Lnet/minecraft/class_2561;)Ljava/util/concurrent/CompletableFuture;
|
||||
COMMENT {@return the decorated {@code message}}
|
||||
ARG 1 sender
|
||||
|
@ -38,3 +41,7 @@ CLASS net/minecraft/class_7492 net/minecraft/network/message/MessageDecorator
|
|||
ARG 1 message
|
||||
METHOD method_44305 (Ljava/util/concurrent/CompletableFuture;Ljava/util/concurrent/CompletableFuture;Ljava/lang/Void;)Lnet/minecraft/class_5837;
|
||||
ARG 2 void_
|
||||
METHOD method_44971 (Lnet/minecraft/class_5837;Lnet/minecraft/class_7471;)Lnet/minecraft/class_7471;
|
||||
ARG 1 filteredMessage
|
||||
METHOD method_44972 (Lnet/minecraft/class_5837;Lnet/minecraft/class_7471;)Lnet/minecraft/class_7471;
|
||||
ARG 1 rawMessage
|
||||
|
|
|
@ -27,3 +27,6 @@ CLASS net/minecraft/class_7469 net/minecraft/network/message/MessageSignatureDat
|
|||
ARG 2 updatable
|
||||
METHOD method_44848 (Lnet/minecraft/class_7614;[BLnet/minecraft/class_7498$class_7499;)V
|
||||
ARG 2 updatable
|
||||
METHOD method_44994 toByteBuffer ()Ljava/nio/ByteBuffer;
|
||||
COMMENT {@return the byte buffer containing the signature data, or {@code null} if this
|
||||
COMMENT signature data is empty}
|
||||
|
|
|
@ -50,6 +50,20 @@ CLASS net/minecraft/class_2556 net/minecraft/network/message/MessageType
|
|||
COMMENT commands.message.display.outgoing} text.
|
||||
COMMENT
|
||||
COMMENT <p>An outgoing message is a message that the private message's sender sees in the chat.
|
||||
FIELD field_39881 Lnet/minecraft/class_5321;
|
||||
COMMENT The registry key for the incoming team message command message type, used by
|
||||
COMMENT {@linkplain net.minecraft.server.command.TeamMsgCommand /teammsg}. The message
|
||||
COMMENT content is {@linkplain Decoration#ofTeamMessage decorated} using the {@code
|
||||
COMMENT chat.type.team.text} text.
|
||||
COMMENT
|
||||
COMMENT <p>An incoming message is a team message received from the sender.
|
||||
FIELD field_39882 Lnet/minecraft/class_5321;
|
||||
COMMENT The registry key for the outgoing team message command message type, used by
|
||||
COMMENT {@linkplain net.minecraft.server.command.TeamMsgCommand /teammsg}. The message
|
||||
COMMENT content is {@linkplain Decoration#ofTeamMessage decorated} using the {@code
|
||||
COMMENT chat.type.team.sent} text.
|
||||
COMMENT
|
||||
COMMENT <p>An outgoing message is a message that the team message's sender sees in the chat.
|
||||
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;
|
||||
|
|
|
@ -3,6 +3,7 @@ CLASS net/minecraft/class_7615 net/minecraft/network/message/MessageVerifier
|
|||
COMMENT
|
||||
COMMENT <p>Methods in this interface must be called in the order of the message's reception,
|
||||
COMMENT as it affects the verification result.
|
||||
FIELD field_39897 UNVERIFIABLE Lnet/minecraft/class_7615;
|
||||
METHOD method_44885 create (Lnet/minecraft/class_7428;)Lnet/minecraft/class_7615;
|
||||
ARG 0 publicKey
|
||||
METHOD method_44886 verify (Lnet/minecraft/class_7471;)Z
|
||||
|
@ -22,3 +23,10 @@ CLASS net/minecraft/class_7615 net/minecraft/network/message/MessageVerifier
|
|||
FIELD field_39823 precedingSignature Lnet/minecraft/class_7469;
|
||||
METHOD <init> (Lnet/minecraft/class_7500;)V
|
||||
ARG 1 signatureVerifier
|
||||
METHOD method_44996 verifyPrecedingSignature (Lnet/minecraft/class_7614;Lnet/minecraft/class_7469;)Z
|
||||
ARG 1 header
|
||||
ARG 2 signature
|
||||
METHOD method_44997 verify (Lnet/minecraft/class_7614;Lnet/minecraft/class_7469;[B)Z
|
||||
ARG 1 header
|
||||
ARG 2 signature
|
||||
ARG 3 bodyDigest
|
||||
|
|
|
@ -2,7 +2,12 @@ CLASS net/minecraft/class_7448 net/minecraft/network/message/SignedCommandArgume
|
|||
COMMENT An interface wrapping {@link ArgumentSignatureDataMap} with metadata attached.
|
||||
METHOD comp_911 metadata ()Lnet/minecraft/class_7470;
|
||||
METHOD method_44795 none ()Lnet/minecraft/class_7448;
|
||||
METHOD method_44907 createSignature (Ljava/lang/String;)Lnet/minecraft/class_7448$class_7622;
|
||||
ARG 1 argumentName
|
||||
CLASS class_7449 Impl
|
||||
COMMENT A signature for command arguments, consisting of the sender, the timestamp,
|
||||
COMMENT and the signature datas for the arguments.
|
||||
FIELD comp_911 metadata Lnet/minecraft/class_7470;
|
||||
CLASS class_7622 ArgumentSignature
|
||||
COMMENT A record holding the signature for a specific argument.
|
||||
FIELD field_39833 EMPTY Lnet/minecraft/class_7448$class_7622;
|
||||
|
|
|
@ -43,3 +43,4 @@ CLASS net/minecraft/class_7471 net/minecraft/network/message/SignedMessage
|
|||
METHOD method_44864 getTimestamp ()Ljava/time/Instant;
|
||||
METHOD method_44865 getSalt ()J
|
||||
METHOD method_44866 createMetadata ()Lnet/minecraft/class_7470;
|
||||
METHOD method_44995 toLastSeenMessageEntry ()Lnet/minecraft/class_7635$class_7609;
|
||||
|
|
|
@ -23,15 +23,18 @@ CLASS net/minecraft/class_2797 net/minecraft/network/packet/c2s/play/ChatMessage
|
|||
COMMENT @see net.minecraft.server.network.ServerPlayNetworkHandler#onChatMessage
|
||||
FIELD comp_945 chatMessage Ljava/lang/String;
|
||||
FIELD comp_946 timestamp Ljava/time/Instant;
|
||||
FIELD comp_970 acknowledgment Lnet/minecraft/class_7635$class_7636;
|
||||
METHOD <init> (Ljava/lang/String;Ljava/time/Instant;JLnet/minecraft/class_7469;ZLnet/minecraft/class_7635$class_7636;)V
|
||||
ARG 1 chatMessage
|
||||
ARG 2 timestamp
|
||||
ARG 3 salt
|
||||
ARG 5 signature
|
||||
ARG 6 signedPreview
|
||||
ARG 7 acknowledgment
|
||||
METHOD <init> (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
METHOD comp_945 chatMessage ()Ljava/lang/String;
|
||||
METHOD comp_946 timestamp ()Ljava/time/Instant;
|
||||
METHOD comp_970 acknowledgment ()Lnet/minecraft/class_7635$class_7636;
|
||||
METHOD method_44892 getMetadata (Lnet/minecraft/class_3222;)Lnet/minecraft/class_7470;
|
||||
ARG 1 sender
|
||||
|
|
|
@ -22,14 +22,17 @@ CLASS net/minecraft/class_7472 net/minecraft/network/packet/c2s/play/CommandExec
|
|||
COMMENT @see net.minecraft.client.network.ClientPlayerEntity#sendCommand
|
||||
COMMENT @see net.minecraft.server.network.ServerPlayNetworkHandler#onCommandExecution
|
||||
FIELD comp_809 timestamp Ljava/time/Instant;
|
||||
FIELD comp_969 acknowledgment Lnet/minecraft/class_7635$class_7636;
|
||||
METHOD <init> (Ljava/lang/String;Ljava/time/Instant;JLnet/minecraft/class_7450;ZLnet/minecraft/class_7635$class_7636;)V
|
||||
ARG 1 command
|
||||
ARG 2 timestamp
|
||||
ARG 3 salt
|
||||
ARG 5 argumentSignatures
|
||||
ARG 6 signedPreview
|
||||
ARG 7 acknowledgment
|
||||
METHOD <init> (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
METHOD comp_809 timestamp ()Ljava/time/Instant;
|
||||
METHOD comp_969 acknowledgment ()Lnet/minecraft/class_7635$class_7636;
|
||||
METHOD method_43896 createSignedArguments (Lnet/minecraft/class_3222;)Lnet/minecraft/class_7448;
|
||||
ARG 1 player
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
CLASS net/minecraft/class_7640 net/minecraft/network/packet/c2s/play/MessageAcknowledgmentC2SPacket
|
||||
FIELD comp_968 acknowledgment Lnet/minecraft/class_7635$class_7636;
|
||||
METHOD <init> (Lnet/minecraft/class_2540;)V
|
||||
ARG 1 buf
|
||||
METHOD comp_968 acknowledgment ()Lnet/minecraft/class_7635$class_7636;
|
|
@ -4,6 +4,7 @@ CLASS net/minecraft/class_2168 net/minecraft/server/command/ServerCommandSource
|
|||
COMMENT @see MinecraftServer#getCommandSource()
|
||||
COMMENT @see Entity#getCommandSource()
|
||||
FIELD field_39183 signedArguments Lnet/minecraft/class_7448;
|
||||
FIELD field_39834 messageChainTaskQueue Lnet/minecraft/class_7620;
|
||||
FIELD field_9815 level I
|
||||
FIELD field_9816 entityAnchor Lnet/minecraft/class_2183$class_2184;
|
||||
FIELD field_9817 position Lnet/minecraft/class_243;
|
||||
|
@ -42,6 +43,7 @@ CLASS net/minecraft/class_2168 net/minecraft/server/command/ServerCommandSource
|
|||
ARG 11 consumer
|
||||
ARG 12 entityAnchor
|
||||
ARG 13 signedArguments
|
||||
ARG 14 messageChainTaskQueue
|
||||
METHOD method_36321 withOutput (Lnet/minecraft/class_2165;)Lnet/minecraft/class_2168;
|
||||
ARG 1 output
|
||||
METHOD method_41212 (Lnet/minecraft/class_2172$class_7078;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lnet/minecraft/class_2378;)Ljava/util/concurrent/CompletableFuture;
|
||||
|
@ -58,6 +60,9 @@ CLASS net/minecraft/class_2168 net/minecraft/server/command/ServerCommandSource
|
|||
COMMENT if the command is not executed by a player.
|
||||
ARG 1 message
|
||||
ARG 2 params
|
||||
METHOD method_44908 withMessageChainTaskQueue (Lnet/minecraft/class_7620;)Lnet/minecraft/class_2168;
|
||||
ARG 1 messageChainTaskQueue
|
||||
METHOD method_44909 getMessageChainTaskQueue ()Lnet/minecraft/class_7620;
|
||||
METHOD method_9206 withLevel (I)Lnet/minecraft/class_2168;
|
||||
ARG 1 level
|
||||
METHOD method_9207 getPlayerOrThrow ()Lnet/minecraft/class_3222;
|
||||
|
|
|
@ -34,3 +34,10 @@ CLASS net/minecraft/class_5837 net/minecraft/server/filter/FilteredMessage
|
|||
COMMENT {@return {@link #filtered} if {@code filtered} is {@code true}, otherwise
|
||||
COMMENT {@link #raw}}
|
||||
ARG 1 filtered
|
||||
METHOD method_44894 mapParts (Ljava/util/function/Function;Ljava/util/function/Function;)Lnet/minecraft/class_5837;
|
||||
COMMENT {@return the result of applying mappers to both raw and filtered parts}
|
||||
COMMENT
|
||||
COMMENT <p>Unlike {@link #map(Function, Function)}, if those two parts are equal,
|
||||
COMMENT then this reuses the mapped raw part instead of applying {@code filteredMapper}.
|
||||
ARG 1 rawMapper
|
||||
ARG 2 filteredMapper
|
||||
|
|
|
@ -33,11 +33,16 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
|
|||
FIELD field_14148 server Lnet/minecraft/server/MinecraftServer;
|
||||
FIELD field_29778 KEEP_ALIVE_INTERVAL I
|
||||
FIELD field_37280 MAX_BREAK_SQUARED_DISTANCE D
|
||||
FIELD field_37281 DEFAULT_SEQUENCE I
|
||||
FIELD field_37282 sequence I
|
||||
FIELD field_39261 previewTaskRunner Lnet/minecraft/class_7493;
|
||||
FIELD field_39394 lastMessageTimestamp Ljava/util/concurrent/atomic/AtomicReference;
|
||||
FIELD field_39805 messageUnpacker Lnet/minecraft/class_7610$class_7611;
|
||||
FIELD field_39825 acknowledgmentValidator Lnet/minecraft/class_7638;
|
||||
FIELD field_39826 messageChainTaskQueue Lnet/minecraft/class_7619;
|
||||
FIELD field_39827 MAX_PENDING_ACKNOWLEDGMENTS I
|
||||
METHOD <init> (Lnet/minecraft/server/MinecraftServer;Lnet/minecraft/class_2535;Lnet/minecraft/class_3222;)V
|
||||
ARG 1 server
|
||||
ARG 2 connection
|
||||
ARG 3 player
|
||||
METHOD method_14360 requestTeleport (DDDFFLjava/util/Set;)V
|
||||
|
@ -89,6 +94,7 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
|
|||
ARG 2 texts
|
||||
METHOD method_31275 filterText (Ljava/lang/Object;Ljava/util/function/Function;Ljava/util/function/BiFunction;)Ljava/util/concurrent/CompletableFuture;
|
||||
ARG 1 text
|
||||
ARG 2 handler
|
||||
ARG 3 backingFilterer
|
||||
METHOD method_31276 addBook (Lnet/minecraft/class_5837;Ljava/util/List;I)V
|
||||
ARG 1 title
|
||||
|
@ -96,6 +102,7 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
|
|||
ARG 3 slotId
|
||||
METHOD method_31277 filterText (Ljava/lang/String;Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
|
||||
ARG 1 text
|
||||
ARG 2 handler
|
||||
METHOD method_31278 updateBookContent (Ljava/util/List;I)V
|
||||
ARG 1 pages
|
||||
ARG 2 slotId
|
||||
|
@ -107,9 +114,13 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
|
|||
ARG 2 signText
|
||||
METHOD method_31283 (ILjava/util/List;)V
|
||||
ARG 2 texts
|
||||
METHOD method_31284 (Ljava/util/function/Function;Ljava/lang/Object;)Ljava/util/concurrent/CompletableFuture;
|
||||
ARG 2 message
|
||||
METHOD method_31285 (Lnet/minecraft/class_2877;Ljava/util/List;)V
|
||||
ARG 2 texts
|
||||
METHOD method_31286 handleMessage (Lnet/minecraft/class_2797;Lnet/minecraft/class_5837;)Ljava/util/concurrent/CompletableFuture;
|
||||
ARG 1 packet
|
||||
ARG 2 message
|
||||
METHOD method_33562 requestTeleportAndDismount (DDDFF)V
|
||||
ARG 1 x
|
||||
ARG 3 y
|
||||
|
@ -163,6 +174,8 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
|
|||
ARG 1 query
|
||||
METHOD method_44162 decorateCommand (Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
|
||||
ARG 1 query
|
||||
METHOD method_44317 (ILio/netty/util/concurrent/Future;)V
|
||||
ARG 2 future
|
||||
METHOD method_44318 sendChatPreviewPacket (ILnet/minecraft/class_2561;)V
|
||||
ARG 1 queryId
|
||||
ARG 2 preview
|
||||
|
@ -173,7 +186,25 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
|
|||
COMMENT #isInProperOrder improper order} or if chat is disabled.
|
||||
ARG 1 message
|
||||
ARG 2 timestamp
|
||||
ARG 3 acknowledgment
|
||||
METHOD method_44790 getMessageUnpacker ()Lnet/minecraft/class_7610$class_7611;
|
||||
METHOD method_44895 handleAcknowledgmentFailure (Ljava/util/Set;)V
|
||||
ARG 1 reasons
|
||||
METHOD method_44896 (Ljava/util/function/Consumer;Ljava/util/List;)Ljava/util/concurrent/CompletableFuture;
|
||||
ARG 1 messages
|
||||
METHOD method_44897 addPendingAcknowledgment (Lnet/minecraft/class_7471;)V
|
||||
ARG 1 message
|
||||
METHOD method_44899 (Lnet/minecraft/class_2797;Lnet/minecraft/class_5837;Lnet/minecraft/class_7610$class_7613;Lnet/minecraft/class_7470;Lnet/minecraft/class_7635;Lnet/minecraft/class_5837;)V
|
||||
ARG 6 decorated
|
||||
METHOD method_44901 (Lnet/minecraft/class_2797;Lnet/minecraft/class_5837;)Ljava/util/concurrent/CompletableFuture;
|
||||
ARG 2 message
|
||||
METHOD method_44902 shouldPreviewChat ()Z
|
||||
COMMENT {@return whether to handle chat preview requests}
|
||||
COMMENT
|
||||
COMMENT <p>Dedicated servers can configure chat preview in {@code server.properties} file.
|
||||
COMMENT Chat preview is always enabled for integrated servers.
|
||||
COMMENT
|
||||
COMMENT @see MinecraftServer#shouldPreviewChat
|
||||
CLASS 1
|
||||
METHOD method_33897 processInteract (Lnet/minecraft/class_1268;Lnet/minecraft/class_3244$class_5860;)V
|
||||
ARG 1 hand
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
CLASS net/minecraft/class_7620 net/minecraft/util/thread/FutureQueue
|
||||
COMMENT A functional interface that can enqueue completable futures.
|
||||
FIELD field_39831 LOGGER Lorg/slf4j/Logger;
|
||||
FIELD field_39832 NOOP Lnet/minecraft/class_7620;
|
||||
METHOD append (Lnet/minecraft/class_7620$class_7621;)V
|
||||
ARG 1 future
|
||||
METHOD method_44905 (Lnet/minecraft/class_7620$class_7621;)V
|
||||
ARG 0 future
|
||||
METHOD method_44906 (Ljava/lang/Throwable;)Ljava/lang/Object;
|
||||
ARG 0 throwable
|
||||
CLASS class_7621 FutureSupplier
|
||||
COMMENT A functional interface supplying the queued future to {@link FutureQueue}.
|
Loading…
Reference in New Issue