mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-08 16:12:18 -07:00
@@ -64,7 +64,7 @@ public interface Damageable extends Entity {
|
|||||||
* Sets the entity's absorption amount.
|
* Sets the entity's absorption amount.
|
||||||
* <p>
|
* <p>
|
||||||
* Note: The amount is capped to the value of
|
* Note: The amount is capped to the value of
|
||||||
* {@link Attribute#GENERIC_MAX_ABSORPTION}. The effect of this method on
|
* {@link Attribute#MAX_ABSORPTION}. The effect of this method on
|
||||||
* that attribute is currently unspecified and subject to change.
|
* that attribute is currently unspecified and subject to change.
|
||||||
*
|
*
|
||||||
* @param amount new absorption amount from 0
|
* @param amount new absorption amount from 0
|
||||||
@@ -77,7 +77,7 @@ public interface Damageable extends Entity {
|
|||||||
* Gets the maximum health this entity has.
|
* Gets the maximum health this entity has.
|
||||||
*
|
*
|
||||||
* @return Maximum health
|
* @return Maximum health
|
||||||
* @deprecated use {@link Attribute#GENERIC_MAX_HEALTH}.
|
* @deprecated use {@link Attribute#MAX_HEALTH}.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
double getMaxHealth();
|
double getMaxHealth();
|
||||||
@@ -92,14 +92,14 @@ public interface Damageable extends Entity {
|
|||||||
* {@link Wither}, etc...} will have their bar scaled accordingly.
|
* {@link Wither}, etc...} will have their bar scaled accordingly.
|
||||||
*
|
*
|
||||||
* @param health amount of health to set the maximum to
|
* @param health amount of health to set the maximum to
|
||||||
* @deprecated use {@link Attribute#GENERIC_MAX_HEALTH}.
|
* @deprecated use {@link Attribute#MAX_HEALTH}.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void setMaxHealth(double health);
|
void setMaxHealth(double health);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets the max health to the original amount.
|
* Resets the max health to the original amount.
|
||||||
* @deprecated use {@link Attribute#GENERIC_MAX_HEALTH}.
|
* @deprecated use {@link Attribute#MAX_HEALTH}.
|
||||||
*/
|
*/
|
||||||
@Deprecated
|
@Deprecated
|
||||||
void resetMaxHealth();
|
void resetMaxHealth();
|
||||||
|
Reference in New Issue
Block a user