Package net.minecraft.util
Class CombatTracker
java.lang.Object
net.minecraft.util.CombatTracker
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private final List<CombatEntry>
private boolean
private int
private final LivingEntity
private String
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
private String
getFallLocation
(CombatEntry p_94548_1_) getMob()
private CombatEntry
void
void
void
recordDamage
(DamageSource p_94547_1_, float p_94547_2_, float p_94547_3_) private void
-
Field Details
-
entries
-
mob
-
lastDamageTime
private int lastDamageTime -
combatStartTime
private int combatStartTime -
combatEndTime
private int combatEndTime -
inCombat
private boolean inCombat -
takingDamage
private boolean takingDamage -
nextLocation
-
-
Constructor Details
-
CombatTracker
-
-
Method Details
-
prepareForDamage
public void prepareForDamage() -
recordDamage
-
getDeathMessage
-
getKiller
-
getMostSignificantFall
-
getFallLocation
-
getCombatDuration
public int getCombatDuration() -
resetPreparedStatus
private void resetPreparedStatus() -
recheckStatus
public void recheckStatus() -
getMob
-