aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0618-Left-handed-API.patch
diff options
context:
space:
mode:
authormaxcom1 <[email protected]>2024-03-23 22:26:17 +0100
committerGitHub <[email protected]>2024-03-23 17:26:17 -0400
commitb6001403e9703cadaa6e8c8558e732b91c3c6d6e (patch)
treea8c57bbc334a8ad48d4ad2b43db335667b142bee /patches/server/0618-Left-handed-API.patch
parent9ec7dfcbc41c6e625de0050b6997160a75df9f44 (diff)
downloadPaper-b6001403e9703cadaa6e8c8558e732b91c3c6d6e.tar.gz
Paper-b6001403e9703cadaa6e8c8558e732b91c3c6d6e.zip
Add methods to change entity physics (#10334)
Diffstat (limited to 'patches/server/0618-Left-handed-API.patch')
-rw-r--r--patches/server/0618-Left-handed-API.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/server/0618-Left-handed-API.patch b/patches/server/0618-Left-handed-API.patch
new file mode 100644
index 0000000000..d59098ccdf
--- /dev/null
+++ b/patches/server/0618-Left-handed-API.patch
@@ -0,0 +1,27 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: William Blake Galbreath <[email protected]>
+Date: Thu, 14 Oct 2021 12:36:58 -0500
+Subject: [PATCH] Left handed API
+
+
+diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java
+index ae430c36ed433e337dd92f197f1717fbf00ac0e1..ad293ad9d5dcd7836a4fa29b4b687346e3ae516c 100644
+--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java
++++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftMob.java
+@@ -147,6 +147,16 @@ public abstract class CraftMob extends CraftLivingEntity implements Mob {
+ public int getMaxHeadPitch() {
+ return getHandle().getMaxHeadXRot();
+ }
++
++ @Override
++ public boolean isLeftHanded() {
++ return getHandle().isLeftHanded();
++ }
++
++ @Override
++ public void setLeftHanded(boolean leftHanded) {
++ getHandle().setLeftHanded(leftHanded);
++ }
+ // Paper end
+
+ // Paper start