Map missing client collision methods (#1710)

* Map missing client collision methods

* wouldSuffocateAt -> wouldCollideAt

* Remove spurious space

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

* Fix duplicate method mapping

* Unify overloads of isSpaceEmpty

* Differenciate block-only emptiness checks

Co-authored-by: liach <7806504+liach@users.noreply.github.com>
This commit is contained in:
Pyrofab 2020-09-02 20:27:47 +00:00 committed by GitHub
parent 4e4c5957b6
commit 944e8bf84c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 4 deletions

View File

@ -56,6 +56,8 @@ CLASS net/minecraft/class_746 net/minecraft/client/network/ClientPlayerEntity
METHOD method_26269 getMoodPercentage ()F METHOD method_26269 getMoodPercentage ()F
COMMENT Returns the percentage for the biome mood sound for the debug HUD to COMMENT Returns the percentage for the biome mood sound for the debug HUD to
COMMENT display. COMMENT display.
METHOD method_30673 pushOutOfBlocks (DD)V
METHOD method_30674 wouldCollideAt (Lnet/minecraft/class_2338;)Z
METHOD method_3130 getRecipeBook ()Lnet/minecraft/class_299; METHOD method_3130 getRecipeBook ()Lnet/minecraft/class_299;
METHOD method_3131 hasJumpingMount ()Z METHOD method_3131 hasJumpingMount ()Z
METHOD method_3132 openRidingInventory ()V METHOD method_3132 openRidingInventory ()V

View File

@ -7,10 +7,13 @@ CLASS net/minecraft/class_5329 net/minecraft/world/BlockCollisionSpliterator
FIELD field_25173 boxShape Lnet/minecraft/class_265; FIELD field_25173 boxShape Lnet/minecraft/class_265;
FIELD field_25174 world Lnet/minecraft/class_1941; FIELD field_25174 world Lnet/minecraft/class_1941;
FIELD field_25175 checkEntity Z FIELD field_25175 checkEntity Z
FIELD field_25669 blockPredicate Ljava/util/function/BiPredicate;
METHOD <init> (Lnet/minecraft/class_1941;Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)V METHOD <init> (Lnet/minecraft/class_1941;Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)V
ARG 1 world ARG 1 world
ARG 2 entity ARG 2 entity
ARG 3 box ARG 3 box
METHOD <init> (Lnet/minecraft/class_1941;Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/BiPredicate;)V
ARG 4 blockPredicate
METHOD method_29283 getChunk (II)Lnet/minecraft/class_1922; METHOD method_29283 getChunk (II)Lnet/minecraft/class_1922;
ARG 1 x ARG 1 x
ARG 2 z ARG 2 z

View File

@ -1,7 +1,7 @@
CLASS net/minecraft/class_1941 net/minecraft/world/CollisionView CLASS net/minecraft/class_1941 net/minecraft/world/CollisionView
METHOD method_17892 doesNotCollide (Lnet/minecraft/class_1297;)Z METHOD method_17892 isSpaceEmpty (Lnet/minecraft/class_1297;)Z
ARG 1 entity ARG 1 entity
METHOD method_18026 doesNotCollide (Lnet/minecraft/class_238;)Z METHOD method_18026 isSpaceEmpty (Lnet/minecraft/class_238;)Z
ARG 1 box ARG 1 box
METHOD method_20743 getEntityCollisions (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream; METHOD method_20743 getEntityCollisions (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
METHOD method_20812 getBlockCollisions (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/stream/Stream; METHOD method_20812 getBlockCollisions (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Ljava/util/stream/Stream;
@ -10,10 +10,12 @@ CLASS net/minecraft/class_1941 net/minecraft/world/CollisionView
METHOD method_22338 getExistingChunk (II)Lnet/minecraft/class_1922; METHOD method_22338 getExistingChunk (II)Lnet/minecraft/class_1922;
ARG 1 chunkX ARG 1 chunkX
ARG 2 chunkZ ARG 2 chunkZ
METHOD method_8587 doesNotCollide (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z METHOD method_30030 getBlockCollisions (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/BiPredicate;)Ljava/util/stream/Stream;
METHOD method_30635 isBlockSpaceEmpty (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/BiPredicate;)Z
METHOD method_8587 isSpaceEmpty (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;)Z
ARG 1 entity ARG 1 entity
ARG 2 box ARG 2 box
METHOD method_8590 doesNotCollide (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Z METHOD method_8590 isSpaceEmpty (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Z
METHOD method_8600 getCollisions (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream; METHOD method_8600 getCollisions (Lnet/minecraft/class_1297;Lnet/minecraft/class_238;Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
METHOD method_8606 intersectsEntities (Lnet/minecraft/class_1297;)Z METHOD method_8606 intersectsEntities (Lnet/minecraft/class_1297;)Z
ARG 1 entity ARG 1 entity