public class CombatTracker
extends java.lang.Object
Modifier and Type | Field and 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 and Description |
---|
CombatTracker(LivingEntity p_i1565_1_) |
Modifier and Type | Method and 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() |
private final java.util.List<CombatEntry> entries
private final LivingEntity mob
private int lastDamageTime
private int combatStartTime
private int combatEndTime
private boolean inCombat
private boolean takingDamage
private java.lang.String nextLocation
public CombatTracker(LivingEntity p_i1565_1_)
public void prepareForDamage()
public void recordDamage(DamageSource p_94547_1_, float p_94547_2_, float p_94547_3_)
public ITextComponent getDeathMessage()
@Nullable public LivingEntity getKiller()
@Nullable private CombatEntry getMostSignificantFall()
private java.lang.String getFallLocation(CombatEntry p_94548_1_)
public int getCombatDuration()
private void resetPreparedStatus()
public void recheckStatus()
public LivingEntity getMob()