diff --git a/mappings/net/minecraft/command/argument/MessageArgumentType.mapping b/mappings/net/minecraft/command/argument/MessageArgumentType.mapping index 3aeb26ae6d..3f3a30a735 100644 --- a/mappings/net/minecraft/command/argument/MessageArgumentType.mapping +++ b/mappings/net/minecraft/command/argument/MessageArgumentType.mapping @@ -51,8 +51,19 @@ CLASS net/minecraft/class_2196 net/minecraft/command/argument/MessageArgumentTyp ARG 1 source METHOD method_44263 logInvalidSignatureWarning (Lnet/minecraft/class_2168;Lnet/minecraft/class_7471;)V ARG 1 source + ARG 2 message METHOD method_44264 filter (Lnet/minecraft/class_2168;Lnet/minecraft/class_2561;)Ljava/util/concurrent/CompletableFuture; ARG 1 source ARG 2 message + METHOD method_44265 (Lnet/minecraft/class_2168;Lnet/minecraft/class_5837;)Lnet/minecraft/class_5837; + ARG 2 decorated METHOD method_44266 (Lnet/minecraft/class_2168;Lnet/minecraft/class_5837;)Ljava/util/concurrent/CompletionStage; ARG 2 filtered + METHOD method_44334 getVerifiable (Lnet/minecraft/class_5837;)Lnet/minecraft/class_7471; + COMMENT {@return the verifiable part of {@code message}, or {@code null} when there is none} + COMMENT + COMMENT @implNote If the preview is signed, the decorated message will be returned, and + COMMENT if it's unsigned or unpreviewed but {@linkplain ChatMessageSignature#canVerify + COMMENT verifiable}, the plain, undecorated message will be returned. If neither is true, + COMMENT this returns {@code null}, since the message cannot be verified in any way. + ARG 1 decorated diff --git a/mappings/net/minecraft/entity/mob/MobEntity.mapping b/mappings/net/minecraft/entity/mob/MobEntity.mapping index b1080faa7e..1e4f9cf377 100644 --- a/mappings/net/minecraft/entity/mob/MobEntity.mapping +++ b/mappings/net/minecraft/entity/mob/MobEntity.mapping @@ -147,6 +147,13 @@ CLASS net/minecraft/class_1308 net/minecraft/entity/mob/MobEntity METHOD method_42150 isInAttackRange (Lnet/minecraft/class_1309;)Z ARG 1 entity METHOD method_42646 getItemPickUpRangeExpander ()Lnet/minecraft/class_2382; + METHOD method_44330 getPotentialEscapePositions ()Ljava/lang/Iterable; + COMMENT {@return the list of positions that the entity should try to pathfind to when escaping} + COMMENT + COMMENT @implNote This is used when the current position's {@linkplain #getPathfindingPenalty + COMMENT pathfinding penalty} is negative (i.e. dangerous). Note that currently + COMMENT {@link net.minecraft.entity.ai.pathing.BirdPathNodeMaker} is the only node maker + COMMENT utilizing this method. METHOD method_5929 getDropChance (Lnet/minecraft/class_1304;)F ARG 1 slot METHOD method_5930 setForwardSpeed (F)V diff --git a/mappings/net/minecraft/network/encryption/ChatMessageSignature.mapping b/mappings/net/minecraft/network/encryption/ChatMessageSignature.mapping index 649b80ac08..1cf3a2608e 100644 --- a/mappings/net/minecraft/network/encryption/ChatMessageSignature.mapping +++ b/mappings/net/minecraft/network/encryption/ChatMessageSignature.mapping @@ -39,3 +39,10 @@ CLASS net/minecraft/class_7469 net/minecraft/network/encryption/ChatMessageSigna COMMENT if it has proper sender UUID and signature data. However, it can still fail to verify. METHOD method_44308 (Lnet/minecraft/class_2561;Lnet/minecraft/class_7498$class_7499;)V ARG 2 updater + METHOD method_44336 canVerifyFrom (Ljava/util/UUID;)Z + COMMENT {@return whether the message is from {@code expectedSender} and the signature + COMMENT can be verified} + COMMENT + COMMENT

Verifiable signature is not the same as verified signature. A signatures is verifiable + COMMENT if it has proper sender UUID and signature data. However, it can still fail to verify. + ARG 1 expectedSender