mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-09-18 21:33:01 +00:00
47 lines
1.4 KiB
Diff
47 lines
1.4 KiB
Diff
From a59d0082eb30b0ed6d2b20a5fce119174d1cfade Mon Sep 17 00:00:00 2001
|
|
From: md_5 <md_5@live.com.au>
|
|
Date: Sun, 2 Jun 2013 15:08:24 +1000
|
|
Subject: [PATCH] Add Arrow API
|
|
|
|
|
|
diff --git a/src/main/java/org/bukkit/entity/Arrow.java b/src/main/java/org/bukkit/entity/Arrow.java
|
|
index 23a089ec..99f73a2b 100644
|
|
--- a/src/main/java/org/bukkit/entity/Arrow.java
|
|
+++ b/src/main/java/org/bukkit/entity/Arrow.java
|
|
@@ -116,6 +116,33 @@ public interface Arrow extends Projectile {
|
|
public class Spigot extends Entity.Spigot
|
|
{
|
|
|
|
+ /**
|
|
+ * Gets the base amount of damage this arrow will do.
|
|
+ *
|
|
+ * Defaults to 2.0 for a normal arrow with
|
|
+ * <code>0.5 * (1 + power level)</code> added for arrows fired from
|
|
+ * enchanted bows.
|
|
+ *
|
|
+ * @return base damage amount
|
|
+ * @deprecated {@link Arrow#getDamage()}
|
|
+ */
|
|
+ @Deprecated
|
|
+ public double getDamage()
|
|
+ {
|
|
+ throw new UnsupportedOperationException( "Not supported yet." );
|
|
+ }
|
|
+
|
|
+ /**
|
|
+ * Sets the base amount of damage this arrow will do.
|
|
+ *
|
|
+ * @param damage new damage amount
|
|
+ * @deprecated {@link Arrow#setDamage(double)}
|
|
+ */
|
|
+ @Deprecated
|
|
+ public void setDamage(double damage)
|
|
+ {
|
|
+ throw new UnsupportedOperationException( "Not supported yet." );
|
|
+ }
|
|
}
|
|
|
|
@NotNull
|
|
--
|
|
2.20.1
|
|
|