Rename and document the ServerPlayNetworkHandler#validateVehicleMove method (#2617)

* Rename the ServerPlayNetworkHandler#validateVehicleMove method to validateMovement

Fixes #2603

* Document the ServerPlayNetworkHandler#validateMovement method

* Rename the ServerPlayNetworkHandler#validateMovement method to isMovementValid

* Fix the name and documentation for the ServerPlayNetworkHandler#isMovementValid method being inverted

* Remove a duplicate word from the documentation for the ServerPlayNetworkHandler#isMovementInvalid method
This commit is contained in:
haykam821 2021-09-02 07:36:03 -04:00 committed by GitHub
parent 973ab21029
commit aec78889d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -56,7 +56,13 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
ARG 2 listener
METHOD method_14370 executeCommand (Ljava/lang/String;)V
ARG 1 input
METHOD method_14371 validateVehicleMove (DDDFF)Z
METHOD method_14371 isMovementInvalid (DDDFF)Z
COMMENT {@return whether this movement is invalid}
COMMENT
COMMENT @implNote This method is used to determine
COMMENT whether players sending {@linkplain PlayerMoveC2SPacket player}
COMMENT and {@linkplain VehicleMoveC2SPacket vehicle} movement packets
COMMENT to the server should be kicked.
ARG 0 x
ARG 2 y
ARG 4 z