Package net.minecraft.world.damagesource
Class CombatTracker
java.lang.Object
net.minecraft.world.damagesource.CombatTracker
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private List<CombatEntry>
private boolean
private int
private LivingEntity
private String
static int
static int
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
private String
getFallLocation(CombatEntry p_19288_)
int
getMob()
private CombatEntry
boolean
boolean
void
void
void
recordDamage(DamageSource p_19290_, float p_19291_, float p_19292_)
private void
-
Field Details
-
RESET_DAMAGE_STATUS_TIME
public static final int RESET_DAMAGE_STATUS_TIME- See Also:
- Constant Field Values
-
RESET_COMBAT_STATUS_TIME
public static final int RESET_COMBAT_STATUS_TIME- See Also:
- Constant Field Values
-
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
-
isTakingDamage
public boolean isTakingDamage() -
isInCombat
public boolean isInCombat() -
getCombatDuration
public int getCombatDuration() -
resetPreparedStatus
private void resetPreparedStatus() -
recheckStatus
public void recheckStatus() -
getMob
-
getLastEntry
-
getKillerId
public int getKillerId()
-