Package net.minecraft.world.damagesource
Class CombatTracker
java.lang.Object
net.minecraft.world.damagesource.CombatTracker
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate final List<CombatEntry> private booleanstatic final Styleprivate intprivate final LivingEntitystatic final intstatic final intprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintprivate static ComponentgetDisplayName(Entity pEntity) getFallMessage(CombatEntry pCombatEntry, Entity pEntity) private ComponentgetMessageForAssistedFall(Entity pEntity, Component pEntityDisplayName, String pHasWeaponTranslationKey, String pNoWeaponTranslationKey) voidvoidrecordDamage(DamageSource pSource, float pDamage) private static booleanshouldEnterCombat(DamageSource pSource)
-
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()
-