Add getHandRaised to LivingEntity (#5752)

This commit is contained in:
Jake Potrebic
2021-05-29 18:51:13 -07:00
parent 0d254aed35
commit 4e835fca94
5 changed files with 21 additions and 6 deletions

View File

@@ -48,5 +48,15 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ * @return Whether or not this entity is using or charging an attack (Bow pulled back, drinking potion, eating food)
+ */
+ boolean isHandRaised();
+
+ /**
+ * Gets the hand raised by this living entity. Will be either
+ * {@link org.bukkit.inventory.EquipmentSlot#HAND} or
+ * {@link org.bukkit.inventory.EquipmentSlot#OFF_HAND}.
+ *
+ * @return the hand raised
+ */
+ @NotNull
+ org.bukkit.inventory.EquipmentSlot getHandRaised();
// Paper end
}