Package net.minecraft.util
Class CombatEntry
- java.lang.Object
-
- net.minecraft.util.CombatEntry
-
public class CombatEntry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private float
damage
private float
fallDistance
private float
health
private java.lang.String
location
private DamageSource
source
private int
time
-
Constructor Summary
Constructors Constructor Description CombatEntry(DamageSource p_i1564_1_, int p_i1564_2_, float p_i1564_3_, float p_i1564_4_, java.lang.String p_i1564_5_, float p_i1564_6_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITextComponent
getAttackerName()
float
getDamage()
float
getFallDistance()
java.lang.String
getLocation()
DamageSource
getSource()
boolean
isCombatRelated()
-
-
-
Field Detail
-
source
private final DamageSource source
-
time
private final int time
-
damage
private final float damage
-
health
private final float health
-
location
private final java.lang.String location
-
fallDistance
private final float fallDistance
-
-
Constructor Detail
-
CombatEntry
public CombatEntry(DamageSource p_i1564_1_, int p_i1564_2_, float p_i1564_3_, float p_i1564_4_, java.lang.String p_i1564_5_, float p_i1564_6_)
-
-
Method Detail
-
getSource
public DamageSource getSource()
-
getDamage
public float getDamage()
-
isCombatRelated
public boolean isCombatRelated()
-
getLocation
@Nullable public java.lang.String getLocation()
-
getAttackerName
@Nullable public ITextComponent getAttackerName()
-
getFallDistance
public float getFallDistance()
-
-