* Sneak 100

Fixes for #1551

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

* Update mappings/net/minecraft/entity/Entity.mapping

Co-authored-by: liach <liach@users.noreply.github.com>
This commit is contained in:
liach 2020-07-08 04:40:52 -05:00 committed by GitHub
parent 03f8f184b6
commit bdbb68371c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 3 deletions

View File

@ -10,3 +10,4 @@ CLASS net/minecraft/class_744 net/minecraft/client/input/Input
METHOD method_20622 hasForwardMovement ()Z
METHOD method_3128 getMovementInput ()Lnet/minecraft/class_241;
METHOD method_3129 tick (Z)V
ARG 1 slowDown

View File

@ -1,6 +1,7 @@
CLASS net/minecraft/class_746 net/minecraft/client/network/ClientPlayerEntity
COMMENT Represents the client's own player entity.
FIELD field_20663 showsDeathScreen Z
FIELD field_23093 inSneakingPose Z
FIELD field_3911 lastNauseaStrength F
FIELD field_3912 clientPermissionLevel I
FIELD field_3913 input Lnet/minecraft/class_744;
@ -25,7 +26,7 @@ CLASS net/minecraft/class_746 net/minecraft/client/network/ClientPlayerEntity
FIELD field_3933 tickables Ljava/util/List;
FIELD field_3934 ticksToNextAutojump I
FIELD field_3935 ticksLeftToDoubleTapSprint I
FIELD field_3936 lastIsHoldingSneakKey Z
FIELD field_3936 lastSneaking Z
FIELD field_3937 client Lnet/minecraft/class_310;
FIELD field_3940 lastBaseY D
FIELD field_3941 lastYaw F
@ -34,10 +35,15 @@ CLASS net/minecraft/class_746 net/minecraft/client/network/ClientPlayerEntity
FIELD field_3944 networkHandler Lnet/minecraft/class_634;
FIELD field_3945 activeHand Lnet/minecraft/class_1268;
METHOD <init> (Lnet/minecraft/class_310;Lnet/minecraft/class_638;Lnet/minecraft/class_634;Lnet/minecraft/class_3469;Lnet/minecraft/class_299;ZZ)V
ARG 1 client
ARG 2 world
ARG 3 networkHandler
ARG 4 stats
ARG 5 recipeBook
ARG 6 lastSneaking
ARG 7 lastSprinting
METHOD method_18654 updateNausea ()V
METHOD method_20303 isHoldingSneakKey ()Z
METHOD method_20303 shouldSlowDown ()Z
METHOD method_20623 isWalking ()Z
METHOD method_22119 shouldAutoJump ()Z
METHOD method_22120 hasMovementInput ()Z

View File

@ -41,8 +41,10 @@ CLASS net/minecraft/class_636 net/minecraft/client/network/ClientPlayerInteracti
ARG 2 buttonId
METHOD method_2901 createPlayer (Lnet/minecraft/class_638;Lnet/minecraft/class_3469;Lnet/minecraft/class_299;ZZ)Lnet/minecraft/class_746;
ARG 1 world
ARG 2 stateHandler
ARG 2 statHandler
ARG 3 recipeBook
ARG 4 lastSneaking
ARG 5 lastSprinting
METHOD method_2902 updateBlockBreakingProgress (Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)Z
ARG 1 pos
ARG 2 direction
@ -99,3 +101,7 @@ CLASS net/minecraft/class_636 net/minecraft/client/network/ClientPlayerInteracti
METHOD method_2926 hasExtendedReach ()Z
METHOD method_2927 tick ()V
METHOD method_2928 isFlyingLocked ()Z
METHOD method_29357 createPlayer (Lnet/minecraft/class_638;Lnet/minecraft/class_3469;Lnet/minecraft/class_299;)Lnet/minecraft/class_746;
ARG 1 world
ARG 2 statHandler
ARG 3 recipeBook

View File

@ -102,6 +102,14 @@ CLASS net/minecraft/class_1297 net/minecraft/entity/Entity
ARG 3 y
ARG 5 z
METHOD method_18276 isInSneakingPose ()Z
COMMENT Returns whether the entity is in a crouching pose.
COMMENT
COMMENT <p>Compared to {@link #isSneaking()}, it only makes the entity appear
COMMENT crouching and does not bring other effects of sneaking, such as no less
COMMENT obvious name label rendering, no dismounting while riding, etc.</p>
COMMENT
COMMENT <p>This is used by vanilla for non-player entities to crouch, such as
COMMENT for foxes and cats.</p>
METHOD method_18375 detach ()V
COMMENT Removes all the passengers and removes this entity from any vehicles it is riding.
METHOD method_18376 getPose ()Lnet/minecraft/class_4050;