public class DamageRecord extends Object
Modifier and Type | Field and Description |
---|---|
private float |
damage |
private DamageSource |
damageSource |
private int |
entityAge |
private float |
entityHealth |
private String |
fallDeathSuffix |
private float |
fallDistance |
Constructor and Description |
---|
DamageRecord(DamageSource damageSource,
int entityAge,
float entityOriginalHealth,
float damage,
String fallDeathSuffix,
float fallDistance) |
Modifier and Type | Method and Description |
---|---|
Text |
getAttackerName() |
float |
getDamage() |
DamageSource |
getDamageSource() |
String |
getFallDeathSuffix() |
float |
getFallDistance() |
boolean |
isAttackerLiving() |
private final DamageSource damageSource
private final int entityAge
private final float damage
private final float entityHealth
private final String fallDeathSuffix
private final float fallDistance
public DamageRecord(DamageSource damageSource, int entityAge, float entityOriginalHealth, float damage, String fallDeathSuffix, float fallDistance)
public DamageSource getDamageSource()
public float getDamage()
public boolean isAttackerLiving()
public float getFallDistance()