geforkt von Mirrors/Paper
Implementation of LivingEntity maximumNoDamageTicks, noDamageTicks, lastDamage
By: Erik Broes <erikbroes@grum.nl>
Dieser Commit ist enthalten in:
Ursprung
731d949bd6
Commit
4455272132
@ -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;
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren