net.minecraft.world.damagesource

public class CombatTracker

brh
net.minecraft.world.damagesource.CombatTracker
net.minecraft.class_1283
net.minecraft.entity.damage.DamageTracker
net.minecraft.src.C_488_
net.minecraft.world.damagesource.CombatTracker

Field summary

Modifier and TypeField
public static final int
a
RESET_DAMAGE_STATUS_TIME
field_29967
DAMAGE_COOLDOWN
f_146694_
public static final int
b
RESET_COMBAT_STATUS_TIME
field_29968
ATTACK_DAMAGE_COOLDOWN
f_146695_
private static final Style
c
INTENTIONAL_GAME_DESIGN_STYLE
field_42274
INTENTIONAL_GAME_DESIGN_ISSUE_LINK_STYLE
f_268553_
private final List<CombatEntry>
d
entries
field_5870
recentDamage
f_19276_
private final LivingEntity
e
mob
field_5877
entity
f_19277_
private int
f
lastDamageTime
field_5876
ageOnLastDamage
f_19278_
private int
g
combatStartTime
field_5875
ageOnLastAttacked
f_19279_
private int
h
combatEndTime
field_5873
ageOnLastUpdate
f_19280_
private boolean
i
inCombat
field_5874
recentlyAttacked
f_19281_
private boolean
j
takingDamage
field_5872
hasDamage
f_19282_

Constructor summary

ModifierConstructor
public (LivingEntity entity)

Method summary

Modifier and TypeMethod
public void
a(brk arg0, float arg1)
recordDamage(DamageSource arg0, float arg1)
method_5547(class_1282 arg0, float arg1)
onDamage(DamageSource damageSource, float damage)
m_289194_(C_489_ p_289559_, float arg1)
private static boolean
a(brk arg0)
shouldEnterCombat(DamageSource arg0)
method_52191(class_1282 arg0)
isAttackerLiving(DamageSource damageSource)
m_289225_(C_489_ p_289554_)
private Component
a(bsr arg0, wz arg1, String arg2, String arg3)
getMessageForAssistedFall(Entity arg0, Component arg1, String arg2, String arg3)
method_52193(class_1297 arg0, class_2561 arg1, String arg2, String arg3)
getAttackedFallDeathMessage(Entity attacker, Text attackerDisplayName, String itemDeathTranslationKey, String deathTranslationKey)
m_289206_(C_507_ p_289532_, C_4996_ p_289555_, String p_289548_, String arg3)
private Component
a(brf arg0, bsr arg1)
getFallMessage(CombatEntry arg0, Entity arg1)
method_52190(class_1281 arg0, class_1297 arg1)
getFallDeathMessage(DamageRecord damageRecord, Entity attacker)
m_289215_(C_486_ p_289561_, C_507_ arg1)
private static Component
a(bsr arg0)
getDisplayName(Entity arg0)
method_52192(class_1297 arg0)
getDisplayName(Entity entity)
m_289212_(C_507_ p_289557_)
public Component
a()
getDeathMessage()
method_5548()
getDeathMessage()
m_19293_()
private CombatEntry
d()
getMostSignificantFall()
method_5544()
getBiggestFall()
m_19298_()
public int
b()
getCombatDuration()
method_5546()
getTimeSinceLastAttack()
m_19295_()
public void
c()
recheckStatus()
method_5539()
update()
m_19296_()