13
0
geforkt von Mirrors/Paper

Implementation of LivingEntity maximumNoDamageTicks, noDamageTicks, lastDamage

By: Erik Broes <erikbroes@grum.nl>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2011-03-24 00:32:41 +01:00
Ursprung 731d949bd6
Commit 4455272132

Datei anzeigen

@ -179,4 +179,28 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
loc.setY(loc.getY() + getEyeHeight());
return loc;
}
public int getMaximumNoDamageTicks() {
return getHandle().maxNoDamageTicks;
}
public void setMaximumNoDamageTicks(int ticks) {
getHandle().maxNoDamageTicks = ticks;
}
public int getLastDamage() {
return getHandle().lastDamage;
}
public void setLastDamage(int damage) {
getHandle().lastDamage = damage;
}
public int getNoDamageTicks() {
return getHandle().noDamageTicks;
}
public void setNoDamageTicks(int ticks) {
getHandle().noDamageTicks = ticks;
}
}