mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-23 09:27:45 +01:00
35 lines
1.0 KiB
Diff
35 lines
1.0 KiB
Diff
|
From 1cb67a39c970d8d631acce5e5b4c0a1ddb295c13 Mon Sep 17 00:00:00 2001
|
||
|
From: mrapple <tony@oc.tc>
|
||
|
Date: Sun, 25 Nov 2012 13:47:27 -0600
|
||
|
Subject: [PATCH] Add methods for working with arrows stuck in living entities
|
||
|
|
||
|
|
||
|
diff --git a/src/main/java/org/bukkit/entity/LivingEntity.java b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||
|
index 46347b9..56c837b 100644
|
||
|
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
||
|
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||
|
@@ -366,4 +366,20 @@ public interface LivingEntity extends Attributable, Entity, Damageable, Projecti
|
||
|
* @return whether the operation was successful
|
||
|
*/
|
||
|
public boolean setLeashHolder(Entity holder);
|
||
|
+
|
||
|
+ // Paper start
|
||
|
+ /**
|
||
|
+ * Get the number of arrows stuck in this entity
|
||
|
+ *
|
||
|
+ * @return Number of arrows stuck
|
||
|
+ */
|
||
|
+ int getArrowsStuck();
|
||
|
+
|
||
|
+ /**
|
||
|
+ * Set the number of arrows stuck in this entity
|
||
|
+ *
|
||
|
+ * @param arrows Number of arrows to stick in this entity
|
||
|
+ */
|
||
|
+ void setArrowsStuck(int arrows);
|
||
|
+ // Paper end
|
||
|
}
|
||
|
--
|
||
|
2.7.2
|
||
|
|