Entity move effect and player position look packet's one field (#2062)

* Entity move effect and player position look packet's one field

Signed-off-by: liach <liach@users.noreply.github.com>

* Fixes #2080

Signed-off-by: liach <liach@users.noreply.github.com>

Co-authored-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2021-02-17 12:16:34 -06:00 committed by GitHub
parent be4b29287b
commit 24d7940f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 57 additions and 3 deletions

View File

@ -326,6 +326,10 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT
COMMENT @implNote The vanilla implementation always returns {@code null}.
METHOD method_33189 occludeVibrationSignals ()Z
METHOD method_33567 requestTeleportAndDismount (DDD)V
ARG 1 destX
ARG 3 destY
ARG 5 destZ
METHOD method_33568 emitGameEvent (Lnet/minecraft/class_5712;Lnet/minecraft/class_1297;Lnet/minecraft/class_2338;)V
ARG 1 event
ARG 2 entity
@ -333,9 +337,22 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
METHOD method_33569 emitGameEvent (Lnet/minecraft/class_5712;Lnet/minecraft/class_2338;)V
ARG 1 event
ARG 2 pos
METHOD method_33570 getMoveEffect ()Lnet/minecraft/class_1297$class_5799;
COMMENT Returns the possible effect(s) of an entity moving.
COMMENT
COMMENT @implNote If an entity does not emit game events or play move sounds, this
COMMENT method should be overridden as returning a value other than
COMMENT {@linkplain Entity.MoveEffect#ALL ALL} allows skipping some movement logic
COMMENT and boost ticking performance.
METHOD method_33571 getEyePos ()Lnet/minecraft/class_243;
METHOD method_33572 setOnFire (Z)V
ARG 1 onFire
METHOD method_33573 addAirTravelEffects ()V
COMMENT Adds the effects of this entity when it travels in air, usually to the
COMMENT world the entity is in.
COMMENT
COMMENT <p>This is only called when the entity {@linkplain #getMoveEffect() has
COMMENT any move effect}, from {@link #move(MovementType, Vec3d)}
METHOD method_5621 getMountedHeightOffset ()D
METHOD method_5622 onBlockCollision (Lnet/minecraft/class_2680;)V
ARG 1 state
@ -652,7 +669,15 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
METHOD method_5800 onStruckByLightning (Lnet/minecraft/class_3218;Lnet/minecraft/class_1538;)V
ARG 1 world
ARG 2 lightning
METHOD method_5801 playFlySound ()V
METHOD method_5801 addFlapEffects ()V
COMMENT Adds the effects of this entity flapping, usually to the world the entity
COMMENT is in.
COMMENT
COMMENT <p>The actual flapping logic should be done in {@link #tick()} instead.
COMMENT
COMMENT <p>This is only called when the entity {@linkplain #hasWings() has wings}
COMMENT and the entity {@linkplain #getMoveEffect() has any move effect}, from
COMMENT {@link #addAirTravelEffects()}.
METHOD method_5802 getRotationClient ()Lnet/minecraft/class_241;
METHOD method_5803 setSilent (Z)V
ARG 1 silent
@ -804,9 +829,20 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
COMMENT If an entity should be destroyed, then the entity should not be re-used and any external data on the entity will be cleared.
METHOD method_31487 shouldSave ()Z
COMMENT Returns whether the entity should be saved or not.
CLASS class_5799
CLASS class_5799 MoveEffect
COMMENT The move effect represents possible effects of an entity moving, such as
COMMENT playing sounds, emitting game events, none, or both.
COMMENT
COMMENT @see Entity#getMoveEffect()
FIELD field_28634 sounds Z
FIELD field_28635 events Z
METHOD <init> (Ljava/lang/String;IZZ)V
ARG 3 sounds
ARG 4 events
METHOD method_33576 hasAny ()Z
COMMENT Returns whether this means an entity may emit game events or play sounds
COMMENT as it moves.
METHOD method_33577 emitsGameEvents ()Z
COMMENT Returns whether this means an entity may emit game events as it moves.
METHOD method_33578 playsSounds ()Z
COMMENT Returns whether this means an entity may play sounds as it moves.

View File

@ -6,6 +6,7 @@ CLASS net/minecraft/class_2708 net/minecraft/network/packet/s2c/play/PlayerPosit
FIELD field_12394 teleportId I
FIELD field_12395 x D
FIELD field_12396 flags Ljava/util/Set;
FIELD field_28805 shouldDismount Z
METHOD <init> (DDDFFLjava/util/Set;IZ)V
ARG 1 x
ARG 3 y
@ -14,6 +15,7 @@ CLASS net/minecraft/class_2708 net/minecraft/network/packet/s2c/play/PlayerPosit
ARG 8 pitch
ARG 9 flags
ARG 10 teleportId
ARG 11 shouldDismount
METHOD method_11733 getFlags ()Ljava/util/Set;
METHOD method_11734 getX ()D
METHOD method_11735 getY ()D
@ -21,6 +23,7 @@ CLASS net/minecraft/class_2708 net/minecraft/network/packet/s2c/play/PlayerPosit
METHOD method_11737 getTeleportId ()I
METHOD method_11738 getZ ()D
METHOD method_11739 getPitch ()F
METHOD method_33718 shouldDismount ()Z
CLASS class_2709 Flag
FIELD field_12399 shift I
METHOD <init> (Ljava/lang/String;II)V

View File

@ -36,12 +36,13 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
ARG 1 server
ARG 2 connection
ARG 3 player
METHOD method_14360 teleportRequest (DDDFFLjava/util/Set;)V
METHOD method_14360 requestTeleport (DDDFFLjava/util/Set;)V
ARG 1 x
ARG 3 y
ARG 5 z
ARG 7 yaw
ARG 8 pitch
ARG 9 flags
METHOD method_14362 validatePlayerMove (Lnet/minecraft/class_2828;)Z
ARG 0 packet
METHOD method_14363 requestTeleport (DDDFF)V
@ -79,3 +80,17 @@ CLASS net/minecraft/class_3244 net/minecraft/server/network/ServerPlayNetworkHan
METHOD method_31279 filterTexts (Ljava/util/List;Ljava/util/function/Consumer;)V
ARG 1 texts
ARG 2 consumer
METHOD method_33562 requestTeleportAndDismount (DDDFF)V
ARG 1 x
ARG 3 y
ARG 5 z
ARG 7 yaw
ARG 8 pitch
METHOD method_33563 requestTeleport (DDDFFLjava/util/Set;Z)V
ARG 1 x
ARG 3 y
ARG 5 z
ARG 7 yaw
ARG 8 pitch
ARG 9 flags
ARG 10 shouldDismount