From f9facc491bf87ed944a83125d2730aa9d9c35806 Mon Sep 17 00:00:00 2001 From: Shnupbups Date: Fri, 25 Nov 2022 19:28:50 +1100 Subject: [PATCH] Attack Pos Offsetting Mount (#3430) * Attack Pos Offsetting Mount after much deliberation, i think these names are alright * inline return --- .../net/minecraft/entity/AttackPosOffsettingMount.mapping | 6 ++++++ mappings/net/minecraft/entity/LivingEntity.mapping | 3 +++ mappings/net/minecraft/entity/mob/MobEntity.mapping | 2 ++ 3 files changed, 11 insertions(+) create mode 100644 mappings/net/minecraft/entity/AttackPosOffsettingMount.mapping diff --git a/mappings/net/minecraft/entity/AttackPosOffsettingMount.mapping b/mappings/net/minecraft/entity/AttackPosOffsettingMount.mapping new file mode 100644 index 0000000000..09c81d0f01 --- /dev/null +++ b/mappings/net/minecraft/entity/AttackPosOffsettingMount.mapping @@ -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 diff --git a/mappings/net/minecraft/entity/LivingEntity.mapping b/mappings/net/minecraft/entity/LivingEntity.mapping index 6d5b9dd68a..0ce2417d94 100644 --- a/mappings/net/minecraft/entity/LivingEntity.mapping +++ b/mappings/net/minecraft/entity/LivingEntity.mapping @@ -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; diff --git a/mappings/net/minecraft/entity/mob/MobEntity.mapping b/mappings/net/minecraft/entity/mob/MobEntity.mapping index 35b20c7057..648ee6a978 100644 --- a/mappings/net/minecraft/entity/mob/MobEntity.mapping +++ b/mappings/net/minecraft/entity/mob/MobEntity.mapping @@ -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