aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/api/0379-Add-LivingEntity-swingHand-EquipmentSlot-convenience.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/api/0379-Add-LivingEntity-swingHand-EquipmentSlot-convenience.patch')
-rw-r--r--patches/api/0379-Add-LivingEntity-swingHand-EquipmentSlot-convenience.patch9
1 files changed, 5 insertions, 4 deletions
diff --git a/patches/api/0379-Add-LivingEntity-swingHand-EquipmentSlot-convenience.patch b/patches/api/0379-Add-LivingEntity-swingHand-EquipmentSlot-convenience.patch
index 38a3a4452c..e870d6f074 100644
--- a/patches/api/0379-Add-LivingEntity-swingHand-EquipmentSlot-convenience.patch
+++ b/patches/api/0379-Add-LivingEntity-swingHand-EquipmentSlot-convenience.patch
@@ -5,14 +5,15 @@ Subject: [PATCH] Add LivingEntity#swingHand(EquipmentSlot) convenience method
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
-index 41ca8fea2aede178bdbe87c05588bce4f2faf8e6..aa20ec645476b2cbb0330c206f163094aebf238e 100644
+index 7ed163813bb13ea6e1b60a94f4ef98b3b55f163c..ec3e597a9e683e5966ef4fff3300c30bde1dd49d 100644
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
-@@ -1203,5 +1203,23 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
- */
+@@ -1300,4 +1300,24 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
@Deprecated
void setHurtDirection(float hurtDirection);
+ // Paper end - hurt direction API
+
++ // Paper start - swing hand API
+ /**
+ * Makes this entity swing their hand.
+ *
@@ -30,5 +31,5 @@ index 41ca8fea2aede178bdbe87c05588bce4f2faf8e6..aa20ec645476b2cbb0330c206f163094
+ this.swingOffHand();
+ }
+ }
- // Paper end
++ // Paper end - swing hand API
}