Package net.minecraft.world.damagesource
Class CombatTracker
java.lang.Object
net.minecraft.world.damagesource.CombatTracker
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
private int
private final List<CombatEntry>
private boolean
private static final Style
private int
private final LivingEntity
private String
static final int
static final 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:
-
RESET_COMBAT_STATUS_TIME
public static final int RESET_COMBAT_STATUS_TIME- See Also:
-
INTENTIONAL_GAME_DESIGN_STYLE
-
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()
-