|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectBaseEntity
LivingEntity
public class LivingEntity extends BaseEntity
Interface for living entities
Constructor and Description |
---|
LivingEntity()
Interface for living entities |
LivingEntity(mj livingEntity)
Interface for living entities |
Modifier and Type | Method and Description |
---|---|
int |
getBaseNoDamageTicks()
Get the amount of ticks this entity will not take damage. |
int |
getDeathTicks()
Get the amount of ticks this entity is dead. |
mj |
getEntity()
Returns the entity we're wrapping. |
int |
getHealth()
Returns the entity's health. |
int |
getLastDamage()
Get the current maximum damage taken during this NoDamageTime |
void |
increaseHealth(int health)
Increase entity health. |
void |
setBaseNoDamageTicks(int ticks)
Set the amount of ticks this entity will not take damage. |
void |
setDeathTicks(int ticks)
Set the amount of ticks this entity is dead. |
void |
setHealth(int health)
Sets the entity's health. |
void |
setLastDamage(int amount)
Set the current maximum damage taken during this NoDamageTime (if any damage is higher than this number the difference will be added) |
Methods inherited from class BaseEntity |
---|
getAirTicks, getBaseAirTicks, getFireTicks, getId, getNoDamageTicks, getPitch, getPlayer, getRotation, getX, getY, getZ, isAnimal, isLiving, isMob, isPlayer, setAirTicks, setBaseAirTicks, setFireTicks, setNoDamageTicks, setPitch, setRotation, setX, setY, setZ, teleportTo, teleportTo, teleportTo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LivingEntity()
public LivingEntity(mj livingEntity)
livingEntity
- Method Detail |
---|
public mj getEntity()
getEntity
in class BaseEntity
public int getHealth()
public void increaseHealth(int health)
health
- amount of health to increase the players health with.public void setHealth(int health)
health
- public int getDeathTicks()
public void setDeathTicks(int ticks)
ticks
- public int getBaseNoDamageTicks()
public void setBaseNoDamageTicks(int ticks)
ticks
- public int getLastDamage()
public void setLastDamage(int amount)
amount
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |