1.19-pre4 stuff (#3199)

* 1.19-pre4 stuff

* Rename now-inverted isDisordered

* Apply suggestions from code review

Co-authored-by: liach <7806504+liach@users.noreply.github.com>

* Update mappings/net/minecraft/server/network/ServerPlayNetworkHandler.mapping

Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>

* Update ServerPlayNetworkHandler.mapping

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
Co-authored-by: Juuxel <6596629+Juuxel@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
apple502j 2022-06-15 02:18:21 +09:00 committed by GitHub
parent 9c26ec4dd6
commit fe2f1be9ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 20 additions and 8 deletions

View File

@ -95,3 +95,4 @@ CLASS net/minecraft/class_465 net/minecraft/client/gui/screen/ingame/HandledScre
ARG 2 y
ARG 3 z
METHOD method_37432 handledScreenTick ()V
METHOD method_44339 endTouchDrag ()V

View File

@ -9,6 +9,7 @@ CLASS net/minecraft/class_2519 net/minecraft/nbt/NbtString
FIELD field_33243 SINGLE_QUOTE C
FIELD field_33244 BACKSLASH C
FIELD field_33245 NULL C
FIELD field_39454 LOGGER Lorg/slf4j/Logger;
METHOD <init> (Ljava/lang/String;)V
ARG 1 value
METHOD equals (Ljava/lang/Object;)Z

View File

@ -10,8 +10,8 @@ CLASS net/minecraft/class_2797 net/minecraft/network/packet/c2s/play/ChatMessage
COMMENT reject the message and disconnect the client.
COMMENT
COMMENT <p>Messages that took more than {@link #TIME_TO_LIVE} to reach the server
COMMENT are considered expired and will be discarded. Messages can also be discarded
COMMENT if the server receives them with improper order.
COMMENT are considered expired and log warnings on the server. Messages will be
COMMENT discarded if the server receives them in improper order.
COMMENT
COMMENT @see net.minecraft.client.network.ClientPlayerEntity#sendChatMessage
COMMENT @see net.minecraft.server.network.ServerPlayNetworkHandler#onChatMessage

View File

@ -10,8 +10,8 @@ CLASS net/minecraft/class_7472 net/minecraft/network/packet/c2s/play/CommandExec
COMMENT reject the command and disconnect the client.
COMMENT
COMMENT <p>Commands that took more than {@link ChatMessageC2SPacket#TIME_TO_LIVE} to reach
COMMENT the server are considered expired and will be discarded. Commands can also be discarded
COMMENT if the server receives them with improper order.
COMMENT the server are considered expired and log warnings on the server. Commands will be
COMMENT discarded if the server receives them in improper order.
COMMENT
COMMENT @see net.minecraft.client.network.ClientPlayerEntity#sendCommand
COMMENT @see net.minecraft.server.network.ServerPlayNetworkHandler#onCommandExecution

View File

@ -163,7 +163,7 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
METHOD method_44157 isExpired (Ljava/time/Instant;)Z
COMMENT {@return whether the message sent at {@code timestamp} is expired}
COMMENT
COMMENT <p>If {@code true}, the message will be discarded.
COMMENT <p>If {@code true}, the server logs a warning, but the message will still be accepted.
COMMENT
COMMENT @see ChatMessageC2SPacket#TIME_TO_LIVE
ARG 1 timestamp
@ -171,10 +171,10 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
ARG 1 decorated
METHOD method_44159 decorate (Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
ARG 1 query
METHOD method_44160 isDisordered (Ljava/time/Instant;)Z
COMMENT {@return whether the message sent at {@code timestamp} is received with improper order}
METHOD method_44160 isInProperOrder (Ljava/time/Instant;)Z
COMMENT {@return whether the message sent at {@code timestamp} is received in proper order}
COMMENT
COMMENT <p>If {@code true}, the message will be discarded.
COMMENT <p>If {@code false}, the message will be discarded.
ARG 1 timestamp
METHOD method_44161 decorateChat (Ljava/lang/String;)Ljava/util/concurrent/CompletableFuture;
ARG 1 query
@ -183,6 +183,15 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
METHOD method_44318 sendChatPreviewPacket (ILnet/minecraft/class_2561;)V
ARG 1 queryId
ARG 2 preview
METHOD method_44337 canAcceptMessage (Ljava/lang/String;Ljava/time/Instant;)Z
COMMENT {@return whether {@code message}, sent at {@code timestamp}, should be accepted}
COMMENT
COMMENT @implNote This returns {@code false} if the message arrives in {@linkplain
COMMENT #isInProperOrder improper order} or if {@linkplain #checkChatDisabled chat is disabled}.
COMMENT This also logs a warning when the message is {@linkplain #isExpired expired}, but
COMMENT the message is still accepted in this case.
ARG 1 message
ARG 2 timestamp
CLASS 1
METHOD method_33897 processInteract (Lnet/minecraft/class_1268;Lnet/minecraft/class_3244$class_5860;)V
ARG 1 hand

View File

@ -129,6 +129,7 @@ CLASS net/minecraft/class_2841 net/minecraft/world/chunk/PalettedContainer
ARG 2 storage
METHOD method_38309 writePacket (Lnet/minecraft/class_2540;)V
ARG 1 buf
METHOD method_44338 copy ()Lnet/minecraft/class_2841$class_6561;
CLASS class_6563 PaletteProvider
COMMENT A palette provider determines what type of palette to choose given the
COMMENT bits used to represent each element. In addition, it controls how the