Package net.minecraft.world.damagesource
Class CombatEntry
java.lang.Object
net.minecraft.world.damagesource.CombatEntry
-
Field Summary
Modifier and TypeFieldDescriptionprivate final float
private final float
private final float
private final String
private final DamageSource
private final int
-
Constructor Summary
ConstructorDescriptionCombatEntry
(DamageSource p_19257_, int p_19258_, float p_19259_, float p_19260_, String p_19261_, float p_19262_) -
Method Summary
-
Field Details
-
source
-
time
private final int time -
damage
private final float damage -
health
private final float health -
location
-
fallDistance
private final float fallDistance
-
-
Constructor Details
-
CombatEntry
public CombatEntry(DamageSource p_19257_, int p_19258_, float p_19259_, float p_19260_, @Nullable String p_19261_, float p_19262_)
-
-
Method Details
-
getSource
-
getTime
public int getTime() -
getDamage
public float getDamage() -
getHealthBeforeDamage
public float getHealthBeforeDamage() -
getHealthAfterDamage
public float getHealthAfterDamage() -
isCombatRelated
public boolean isCombatRelated() -
getLocation
-
getAttackerName
-
getAttacker
-
getFallDistance
public float getFallDistance()
-