mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 15:12:13 -07:00
Add Arrow/Stinger Removal Time API (#10193)
This commit is contained in:
@@ -9,8 +9,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
--- a/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
+++ b/src/main/java/org/bukkit/entity/LivingEntity.java
|
||||
@@ -0,0 +0,0 @@ public interface LivingEntity extends Attributable, Damageable, ProjectileSource
|
||||
*/
|
||||
void setArrowsInBody(int count, boolean fireEvent); // Paper
|
||||
int getNextArrowRemoval();
|
||||
// Paper end - Add methods for working with arrows stuck in living entities
|
||||
|
||||
+ // Paper start - Bee Stinger API
|
||||
+ /**
|
||||
@@ -40,6 +40,22 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ * @param count amount of bee stingers in entity's body
|
||||
+ */
|
||||
+ public void setBeeStingersInBody(int count);
|
||||
+
|
||||
+ /**
|
||||
+ * Sets the amount of ticks before the next bee stinger gets removed from the entities body.
|
||||
+ * <p>
|
||||
+ * A value of 0 will cause the server to re-calculate the amount of ticks on the next tick.
|
||||
+ *
|
||||
+ * @param ticks Amount of ticks
|
||||
+ */
|
||||
+ void setNextBeeStingerRemoval(@org.jetbrains.annotations.Range(from = 0, to = Integer.MAX_VALUE) int ticks);
|
||||
+
|
||||
+ /**
|
||||
+ * Gets the amount of ticks before the next bee stinger gets removed from the entities body.
|
||||
+ *
|
||||
+ * @return ticks Amount of ticks
|
||||
+ */
|
||||
+ int getNextBeeStingerRemoval();
|
||||
+ // Paper end - Stinger API
|
||||
+
|
||||
/**
|
||||
|
Reference in New Issue
Block a user