Attack Pos Offsetting Mount (#3430)

* Attack Pos Offsetting Mount

after much deliberation, i think these names are alright

* inline return
This commit is contained in:
Shnupbups 2022-11-25 19:28:50 +11:00 committed by GitHub
parent 11e53e1a48
commit f9facc491b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1,6 @@
CLASS net/minecraft/class_7997 net/minecraft/entity/AttackPosOffsettingMount
COMMENT A mount which offsets the attack position of its passengers.
COMMENT @see net.minecraft.entity.LivingEntity#getAttackPos
METHOD method_47923 getPassengerAttackYOffset ()D
COMMENT {@return an offset to the Y co-ordinate of passengers' positions, for use in their attack positions}
COMMENT @see net.minecraft.entity.LivingEntity#getAttackPos

View File

@ -345,6 +345,9 @@ CLASS net/minecraft/class_1309 net/minecraft/entity/LivingEntity
ARG 1 attribute
METHOD method_45326 getAttributeBaseValue (Lnet/minecraft/class_6880;)D
ARG 1 attribute
METHOD method_47921 getAttackPos ()Lnet/minecraft/class_243;
COMMENT {@return this entity's attack position} Used to determine if a mob can perform a melee attack on this entity. May be offset by a mount.
COMMENT @see net.minecraft.entity.AttackPosOffsettingMount#getPassengerAttackYOffset
METHOD method_5973 canTarget (Lnet/minecraft/class_1299;)Z
ARG 1 type
METHOD method_5989 getLootTable ()Lnet/minecraft/class_2960;

View File

@ -153,6 +153,8 @@ CLASS net/minecraft/class_1308 net/minecraft/entity/mob/MobEntity
ARG 0 goal
METHOD method_47825 clearGoals (Ljava/util/function/Predicate;)V
ARG 1 predicate
METHOD method_47922 getSquaredDistanceToAttackPosOf (Lnet/minecraft/class_1309;)D
ARG 1 target
METHOD method_5929 getDropChance (Lnet/minecraft/class_1304;)F
ARG 1 slot
METHOD method_5930 setForwardSpeed (F)V