Archiviert
13
0

Implementation of LivingEntity maximumNoDamageTicks, noDamageTicks, lastDamage

Dieser Commit ist enthalten in:
Erik Broes 2011-03-24 00:32:41 +01:00
Ursprung 267e745212
Commit 3129348866
2 geänderte Dateien mit 25 neuen und 1 gelöschten Zeilen

Datei anzeigen

@ -61,7 +61,7 @@ public abstract class EntityLiving extends Entity {
protected double ap;
protected double aq;
float ar = 0.0F;
protected int lastDamage = 0;
public int lastDamage = 0; // CraftBukkit protected -> public
protected int at = 0;
protected float au;
protected float av;

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;
}
}