public class CombatTracker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
combatEndTime |
private java.util.List<CombatEntry> |
combatEntries |
private int |
combatStartTime |
private java.lang.String |
fallSuffix |
private LivingEntity |
fighter |
private boolean |
inCombat |
private int |
lastDamageTime |
private boolean |
takingDamage |
Constructor and Description |
---|
CombatTracker(LivingEntity fighterIn) |
Modifier and Type | Method and Description |
---|---|
void |
calculateFallSuffix() |
LivingEntity |
getBestAttacker() |
private CombatEntry |
getBestCombatEntry() |
int |
getCombatDuration() |
ITextComponent |
getDeathMessage() |
private java.lang.String |
getFallSuffix(CombatEntry entry) |
LivingEntity |
getFighter() |
void |
reset() |
private void |
resetFallSuffix() |
void |
trackDamage(DamageSource damageSrc,
float healthIn,
float damageAmount) |
private final java.util.List<CombatEntry> combatEntries
private final LivingEntity fighter
private int lastDamageTime
private int combatStartTime
private int combatEndTime
private boolean inCombat
private boolean takingDamage
private java.lang.String fallSuffix
public CombatTracker(LivingEntity fighterIn)
public void calculateFallSuffix()
public void trackDamage(DamageSource damageSrc, float healthIn, float damageAmount)
public ITextComponent getDeathMessage()
@Nullable public LivingEntity getBestAttacker()
@Nullable private CombatEntry getBestCombatEntry()
private java.lang.String getFallSuffix(CombatEntry entry)
public int getCombatDuration()
private void resetFallSuffix()
public void reset()
public LivingEntity getFighter()