diff options
author | md_5 <git@md-5.net> | 2016-12-09 12:30:49 +1100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-12-09 12:30:49 +1100 |
commit | 47a45036fc7aa18c4dd306be562e7d08f693b7ac (patch) | |
tree | d720ece7769eb728185eb0573bb3a4cb0c6a95f3 | |
parent | 09ab5b97cbae973ad9c52d6c80f8bb82495ce579 (diff) | |
download | bukkit-47a45036fc7aa18c4dd306be562e7d08f693b7ac.tar bukkit-47a45036fc7aa18c4dd306be562e7d08f693b7ac.tar.gz bukkit-47a45036fc7aa18c4dd306be562e7d08f693b7ac.tar.lz bukkit-47a45036fc7aa18c4dd306be562e7d08f693b7ac.tar.xz bukkit-47a45036fc7aa18c4dd306be562e7d08f693b7ac.zip |
SPIGOT-2902: Deprecate Damageable methods in favour of Attributes.
-rw-r--r-- | src/main/java/org/bukkit/entity/Damageable.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/entity/Damageable.java b/src/main/java/org/bukkit/entity/Damageable.java index d0599cf0..bd601bb6 100644 --- a/src/main/java/org/bukkit/entity/Damageable.java +++ b/src/main/java/org/bukkit/entity/Damageable.java @@ -1,5 +1,7 @@ package org.bukkit.entity; +import org.bukkit.attribute.Attribute; + /** * Represents an {@link Entity} that has health and can take damage. */ @@ -84,7 +86,9 @@ public interface Damageable extends Entity { * Gets the maximum health this entity has. * * @return Maximum health + * @deprecated use {@link Attribute#GENERIC_MAX_HEALTH}. */ + @Deprecated double getMaxHealth(); /** @@ -107,7 +111,9 @@ public interface Damageable extends Entity { * {@link Wither}, etc...} will have their bar scaled accordingly. * * @param health amount of health to set the maximum to + * @deprecated use {@link Attribute#GENERIC_MAX_HEALTH}. */ + @Deprecated void setMaxHealth(double health); /** @@ -122,6 +128,8 @@ public interface Damageable extends Entity { /** * Resets the max health to the original amount. + * @deprecated use {@link Attribute#GENERIC_MAX_HEALTH}. */ + @Deprecated void resetMaxHealth(); } |