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
static final Style
private int
private final LivingEntity
static final int
static final int
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
private static Component
getDisplayName
(Entity p_289557_) getFallMessage
(CombatEntry p_289570_, Entity p_289561_) private Component
getMessageForAssistedFall
(Entity p_289547_, Component p_289532_, String p_289555_, String p_289548_) void
void
recordDamage
(DamageSource p_289533_, float p_289559_) private static boolean
shouldEnterCombat
(DamageSource p_289554_)
-
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
-
-
Constructor Details
-
CombatTracker
-
-
Method Details
-
recordDamage
-
shouldEnterCombat
-
getMessageForAssistedFall
-
getFallMessage
-
getDisplayName
-
getDeathMessage
-
getMostSignificantFall
-
getCombatDuration
public int getCombatDuration() -
recheckStatus
public void recheckStatus()
-