Package net.minecraft.util
Class CombatTracker
- java.lang.Object
-
- net.minecraft.util.CombatTracker
-
public class CombatTracker extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
combatEndTime
private int
combatStartTime
private java.util.List<CombatEntry>
entries
private boolean
inCombat
private int
lastDamageTime
private LivingEntity
mob
private java.lang.String
nextLocation
private boolean
takingDamage
-
Constructor Summary
Constructors Constructor Description CombatTracker(LivingEntity p_i1565_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCombatDuration()
ITextComponent
getDeathMessage()
private java.lang.String
getFallLocation(CombatEntry p_94548_1_)
LivingEntity
getKiller()
LivingEntity
getMob()
private CombatEntry
getMostSignificantFall()
void
prepareForDamage()
void
recheckStatus()
void
recordDamage(DamageSource p_94547_1_, float p_94547_2_, float p_94547_3_)
private void
resetPreparedStatus()
-
-
-
Field Detail
-
entries
private final java.util.List<CombatEntry> entries
-
mob
private final LivingEntity mob
-
lastDamageTime
private int lastDamageTime
-
combatStartTime
private int combatStartTime
-
combatEndTime
private int combatEndTime
-
inCombat
private boolean inCombat
-
takingDamage
private boolean takingDamage
-
nextLocation
private java.lang.String nextLocation
-
-
Constructor Detail
-
CombatTracker
public CombatTracker(LivingEntity p_i1565_1_)
-
-
Method Detail
-
prepareForDamage
public void prepareForDamage()
-
recordDamage
public void recordDamage(DamageSource p_94547_1_, float p_94547_2_, float p_94547_3_)
-
getDeathMessage
public ITextComponent getDeathMessage()
-
getKiller
@Nullable public LivingEntity getKiller()
-
getMostSignificantFall
@Nullable private CombatEntry getMostSignificantFall()
-
getFallLocation
private java.lang.String getFallLocation(CombatEntry p_94548_1_)
-
getCombatDuration
public int getCombatDuration()
-
resetPreparedStatus
private void resetPreparedStatus()
-
recheckStatus
public void recheckStatus()
-
getMob
public LivingEntity getMob()
-
-