spigot/Bukkit-Patches/0014-Add-Getter-for-Entity-Invulnerability.patch

37 lines
1 KiB
Diff
Raw Normal View History

2017-05-14 12:00:00 +10:00
From d4c3663b627a6977f47494b9812660c20393ba2a Mon Sep 17 00:00:00 2001
2013-08-03 19:54:36 +10:00
From: md_5 <md_5@live.com.au>
Date: Sat, 3 Aug 2013 19:49:36 +1000
Subject: [PATCH] Add Getter for Entity Invulnerability
diff --git a/src/main/java/org/bukkit/entity/Entity.java b/src/main/java/org/bukkit/entity/Entity.java
2017-04-30 09:32:32 +10:00
index 941be7bb..69bdb460 100644
2013-08-03 19:54:36 +10:00
--- a/src/main/java/org/bukkit/entity/Entity.java
+++ b/src/main/java/org/bukkit/entity/Entity.java
2017-03-20 16:04:02 +11:00
@@ -468,4 +468,22 @@ public interface Entity extends Metadatable, CommandSender, Nameable {
2016-11-06 12:16:37 +11:00
* @return true if the tag was successfully removed
2013-08-03 19:54:36 +10:00
*/
2016-11-06 12:16:37 +11:00
boolean removeScoreboardTag(String tag);
2013-08-03 19:54:36 +10:00
+
+ // Spigot Start
+ public class Spigot
+ {
+
+ /**
+ * Returns whether this entity is invulnerable.
2016-11-18 11:25:56 +11:00
+ *
+ * @return True if the entity is invulnerable.
2013-08-03 19:54:36 +10:00
+ */
+ public boolean isInvulnerable()
+ {
+ throw new UnsupportedOperationException( "Not supported yet." );
+ }
+ }
+
+ Spigot spigot();
+ // Spigot End
}
--
2017-04-30 09:32:32 +10:00
2.11.0
2013-08-03 19:54:36 +10:00