Class CombatTracker

java.lang.Object
net.minecraft.world.damagesource.CombatTracker

public class CombatTracker extends Object
  • 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

      private static final Style INTENTIONAL_GAME_DESIGN_STYLE
    • entries

      private final List<CombatEntry> entries
    • mob

      private final LivingEntity mob
    • lastDamageTime

      private int lastDamageTime
    • combatStartTime

      private int combatStartTime
    • combatEndTime

      private int combatEndTime
    • inCombat

      private boolean inCombat
    • takingDamage

      private boolean takingDamage
    • nextLocation

      @Nullable private String nextLocation
  • Constructor Details

    • CombatTracker

      public CombatTracker(LivingEntity p_19285_)
  • Method Details

    • prepareForDamage

      public void prepareForDamage()
    • recordDamage

      public void recordDamage(DamageSource p_19290_, float p_19291_, float p_19292_)
    • getDeathMessage

      public Component getDeathMessage()
    • getKiller

      @Nullable public LivingEntity getKiller()
    • getMostSignificantFall

      @Nullable private CombatEntry getMostSignificantFall()
    • getFallLocation

      private String getFallLocation(CombatEntry p_19288_)
    • isTakingDamage

      public boolean isTakingDamage()
    • isInCombat

      public boolean isInCombat()
    • getCombatDuration

      public int getCombatDuration()
    • resetPreparedStatus

      private void resetPreparedStatus()
    • recheckStatus

      public void recheckStatus()
    • getMob

      public LivingEntity getMob()
    • getLastEntry

      @Nullable public CombatEntry getLastEntry()
    • getKillerId

      public int getKillerId()