2018-07-04 07:55:24 +00:00
|
|
|
From 076a022c505a512a8d517c8b7234686dccc4577b Mon Sep 17 00:00:00 2001
|
2016-03-09 04:21:08 +00:00
|
|
|
From: mrapple <tony@oc.tc>
|
|
|
|
Date: Sun, 25 Nov 2012 13:43:39 -0600
|
|
|
|
Subject: [PATCH] Add methods for working with arrows stuck in living entities
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
2018-07-04 07:55:24 +00:00
|
|
|
index 34f1ef176..d4d51688c 100644
|
2016-03-09 04:21:08 +00:00
|
|
|
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
|
|
|
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java
|
2018-01-05 06:46:00 +00:00
|
|
|
@@ -494,4 +494,16 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
2016-03-28 01:48:50 +00:00
|
|
|
public boolean isCollidable() {
|
|
|
|
return getHandle().collides;
|
2016-03-09 04:21:08 +00:00
|
|
|
}
|
|
|
|
+
|
|
|
|
+ // Paper start
|
|
|
|
+ @Override
|
|
|
|
+ public int getArrowsStuck() {
|
2017-05-14 18:05:01 +00:00
|
|
|
+ return getHandle().getArrowCount();
|
2016-03-09 04:21:08 +00:00
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void setArrowsStuck(int arrows) {
|
2017-05-14 18:05:01 +00:00
|
|
|
+ getHandle().setArrowCount(arrows);
|
2016-03-09 04:21:08 +00:00
|
|
|
+ }
|
|
|
|
+ // Paper end
|
|
|
|
}
|
|
|
|
--
|
2018-07-04 07:55:24 +00:00
|
|
|
2.18.0
|
2016-03-09 04:21:08 +00:00
|
|
|
|