spigot/Bukkit-Patches/0005-Add-Arrow-API.patch

35 lines
967 B
Diff
Raw Normal View History

2016-07-12 20:26:01 +10:00
From 4d87da7eed70bfef344f2618baa86be0c8f26141 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
2014-01-31 20:42:29 +00:00
index e49eef0..e7a32f7 100644
--- a/src/main/java/org/bukkit/entity/Arrow.java
+++ b/src/main/java/org/bukkit/entity/Arrow.java
2014-01-31 20:42:29 +00:00
@@ -39,4 +39,20 @@ public interface Arrow extends Projectile {
* @param critical whether or not it should be critical
*/
public void setCritical(boolean critical);
+
2013-08-03 19:54:36 +10:00
+ public class Spigot extends Entity.Spigot
+ {
+
+ public double getDamage()
+ {
+ throw new UnsupportedOperationException( "Not supported yet." );
+ }
+
+ public void setDamage(double damage)
+ {
+ throw new UnsupportedOperationException( "Not supported yet." );
+ }
+ }
+
+ Spigot spigot();
2014-01-31 20:42:29 +00:00
}
--
2016-06-09 11:43:56 +10:00
2.7.4