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

      public 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
  • Constructor Details

    • CombatTracker

      public CombatTracker(LivingEntity p_19285_)
  • Method Details

    • recordDamage

      public void recordDamage(DamageSource p_289533_, float p_289559_)
    • shouldEnterCombat

      private static boolean shouldEnterCombat(DamageSource p_289554_)
    • getMessageForAssistedFall

      private Component getMessageForAssistedFall(Entity p_289547_, Component p_289532_, String p_289555_, String p_289548_)
    • getFallMessage

      public Component getFallMessage(CombatEntry p_289570_, @Nullable Entity p_289561_)
    • getDisplayName

      @Nullable private static Component getDisplayName(@Nullable Entity p_289557_)
    • getDeathMessage

      public Component getDeathMessage()
    • getMostSignificantFall

      @Nullable public CombatEntry getMostSignificantFall()
    • getCombatDuration

      public int getCombatDuration()
    • recheckStatus

      public void recheckStatus()