2023-02-09 18:31:51 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: TheTuso <piotrekpasztor@gmail.com>
|
|
|
|
Date: Thu, 2 Feb 2023 16:40:11 +0100
|
|
|
|
Subject: [PATCH] Add Entity Body Yaw API
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
2023-03-14 23:13:41 +01:00
|
|
|
index 3f35fc2e2311c6c568afd2ed9896584e1ebb716f..059dfc40edc6c52f95a30e9ac72f45b6aaf5f9a8 100644
|
2023-02-09 18:31:51 +01:00
|
|
|
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
2023-03-14 23:13:41 +01:00
|
|
|
@@ -1131,5 +1131,21 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
2023-02-09 18:31:51 +01:00
|
|
|
* @param amount the amount of damage to do
|
|
|
|
*/
|
|
|
|
void damageItemStack(org.bukkit.inventory.@NotNull EquipmentSlot slot, int amount);
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Gets entity body yaw
|
|
|
|
+ *
|
|
|
|
+ * @return entity body yaw
|
|
|
|
+ * @see Location#getYaw()
|
|
|
|
+ */
|
|
|
|
+ float getBodyYaw();
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * Sets entity body yaw
|
|
|
|
+ *
|
|
|
|
+ * @param bodyYaw new entity body yaw
|
|
|
|
+ * @see Location#setYaw(float)
|
|
|
|
+ */
|
|
|
|
+ void setBodyYaw(float bodyYaw);
|
|
|
|
// Paper end
|
|
|
|
}
|