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