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

37 lines
1 KiB
Diff
Raw Normal View History

2015-01-05 03:32:01 +00:00
From 1153781904c43b7e80fdd69b05f9b22026cfec29 Mon Sep 17 00:00:00 2001
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
index de7815f..7fb08af 100644
--- a/src/main/java/org/bukkit/entity/Entity.java
+++ b/src/main/java/org/bukkit/entity/Entity.java
@@ -342,4 +342,22 @@ public interface Entity extends Metadatable, CommandSender {
2014-11-28 01:17:45 +00:00
* @return if the custom name is displayed
*/
2014-11-28 01:17:45 +00:00
public boolean isCustomNameVisible();
+
+ // Spigot Start
+ public class Spigot
+ {
+
+ /**
+ * Returns whether this entity is invulnerable.
+ *
+ * @return True if the entity is invulnerable.
+ */
+ public boolean isInvulnerable()
+ {
+ throw new UnsupportedOperationException( "Not supported yet." );
+ }
+ }
+
+ Spigot spigot();
+ // Spigot End
}
--
2014-11-28 01:17:45 +00:00
2.1.0