Package net.minecraft.entity.damage
Class DamageRecord
java.lang.Object
net.minecraft.entity.damage.DamageRecord
public class DamageRecord extends Object
-
Field Summary
Fields Modifier and Type Field Description private float
damage
private DamageSource
damageSource
private int
entityAge
private float
entityHealth
private String
fallDeathSuffix
private float
fallDistance
-
Constructor Summary
Constructors Constructor Description DamageRecord(DamageSource damageSource, int entityAge, float entityOriginalHealth, float damage, String fallDeathSuffix, float fallDistance)
-
Method Summary
Modifier and Type Method Description Text
getAttackerName()
float
getDamage()
DamageSource
getDamageSource()
String
getFallDeathSuffix()
float
getFallDistance()
boolean
isAttackerLiving()
-
Field Details
-
damageSource
-
entityAge
private final int entityAge -
damage
private final float damage -
entityHealth
private final float entityHealth -
fallDeathSuffix
-
fallDistance
private final float fallDistance
-
-
Constructor Details
-
DamageRecord
public DamageRecord(DamageSource damageSource, int entityAge, float entityOriginalHealth, float damage, String fallDeathSuffix, float fallDistance)
-
-
Method Details
-
getDamageSource
-
getDamage
public float getDamage() -
isAttackerLiving
public boolean isAttackerLiving() -
getFallDeathSuffix
-
getAttackerName
-
getFallDistance
public float getFallDistance()
-