mirror of
https://hub.spigotmc.org/stash/scm/spigot/spigot.git
synced 2025-09-18 21:33:01 +00:00
31 lines
989 B
Diff
31 lines
989 B
Diff
From f0e6dc8ccd21767855f60323b27ba2b07cb81b3a 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 954a6d9a..19dc1e6a 100644
|
|
--- a/src/main/java/org/bukkit/entity/Entity.java
|
|
+++ b/src/main/java/org/bukkit/entity/Entity.java
|
|
@@ -563,6 +563,17 @@ public interface Entity extends Metadatable, CommandSender, Nameable {
|
|
public class Spigot extends CommandSender.Spigot
|
|
{
|
|
|
|
+ /**
|
|
+ * Returns whether this entity is invulnerable.
|
|
+ *
|
|
+ * @return True if the entity is invulnerable.
|
|
+ * @deprecated {@link Entity#isInvulnerable()}
|
|
+ */
|
|
+ @Deprecated
|
|
+ public boolean isInvulnerable()
|
|
+ {
|
|
+ throw new UnsupportedOperationException( "Not supported yet." );
|
|
+ }
|
|
}
|
|
|
|
@NotNull
|
|
--
|
|
2.19.1
|
|
|