mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-24 18:09:41 -05:00
Move health stuff from LivingEntity to Entity.
By: angelsl <angelsl@rpm>
This commit is contained in:
1 parent
b2817db6b7
commit
d3240391ad
4 files changed
+25
-11
No files matched your search
@@ -32,4 +32,17 @@ public interface Entity {
|
||||
* @return Entity ID
|
||||
*/
|
||||
public int getEntityID();
|
||||
/**
|
||||
* Gets the entitys health from 0-20, where 0 is dead and 20 is full
|
||||
*
|
||||
* @return Health represented from 0-20
|
||||
*/
|
||||
public int getHealth();
|
||||
|
||||
/**
|
||||
* Sets the entitys health from 0-20, where 0 is dead and 20 is full
|
||||
*
|
||||
* @param health New health represented from 0-20
|
||||
*/
|
||||
public void setHealth(int health);
|
||||
}
|
||||
Reference in new issue
Block a user