aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0842-Add-Entity-Body-Yaw-API.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0842-Add-Entity-Body-Yaw-API.patch')
-rw-r--r--patches/server/0842-Add-Entity-Body-Yaw-API.patch16
1 files changed, 9 insertions, 7 deletions
diff --git a/patches/server/0842-Add-Entity-Body-Yaw-API.patch b/patches/server/0842-Add-Entity-Body-Yaw-API.patch
index 826e32eacd..7164c139b9 100644
--- a/patches/server/0842-Add-Entity-Body-Yaw-API.patch
+++ b/patches/server/0842-Add-Entity-Body-Yaw-API.patch
@@ -5,14 +5,14 @@ Subject: [PATCH] Add Entity Body Yaw API
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
-index b4ed7612a019a3d4d473dfbfed2067ea437fee06..509550bbfb7c6bcff5dffa535f40af12aab898a8 100644
+index 4dfbcaba4615bd761c1eb9d5994168c7202fc571..8025b3e9afebc9ad0c08453403422589bf5dd27d 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java
-@@ -1136,6 +1136,31 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
- public boolean isInPowderedSnow() {
- return getHandle().isInPowderSnow || getHandle().wasInPowderSnow; // depending on the location in the entity "tick" either could be needed.
+@@ -1154,6 +1154,33 @@ public abstract class CraftEntity implements org.bukkit.entity.Entity {
}
-+
+ // Paper end - entity powdered snow API
+
++ // Paper start - entity body yaw API
+ @Override
+ public double getX() {
+ return this.entity.getX();
@@ -37,9 +37,11 @@ index b4ed7612a019a3d4d473dfbfed2067ea437fee06..509550bbfb7c6bcff5dffa535f40af12
+ public float getYaw() {
+ return this.entity.getBukkitYaw();
+ }
- // Paper end
-
++ // Paper end - entity body yaw API
++
// Paper start - missing entity api
+ @Override
+ public boolean isInvisible() { // Paper - moved up from LivingEntity
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
index 9c5ad1ffdd82ce5d12eabca07f45a37e6a939f2e..ec62e68686b7c46df299d946850ec60631ecc6be 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java