Class DamageTracker

java.lang.Object
net.minecraft.entity.damage.DamageTracker

public class DamageTracker extends Object
Mappings:
Namespace Name
official bej
intermediary net/minecraft/class_1283
named net/minecraft/entity/damage/DamageTracker
  • Field Details

    • DAMAGE_COOLDOWN

      public static final int DAMAGE_COOLDOWN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbej;a:I
      intermediary field_29967 Lnet/minecraft/class_1283;field_29967:I
      named DAMAGE_COOLDOWN Lnet/minecraft/entity/damage/DamageTracker;DAMAGE_COOLDOWN:I
    • ATTACK_DAMAGE_COOLDOWN

      public static final int ATTACK_DAMAGE_COOLDOWN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lbej;b:I
      intermediary field_29968 Lnet/minecraft/class_1283;field_29968:I
      named ATTACK_DAMAGE_COOLDOWN Lnet/minecraft/entity/damage/DamageTracker;ATTACK_DAMAGE_COOLDOWN:I
    • recentDamage

      private final List<DamageRecord> recentDamage
      Mappings:
      Namespace Name Mixin selector
      official d Lbej;d:Ljava/util/List;
      intermediary field_5870 Lnet/minecraft/class_1283;field_5870:Ljava/util/List;
      named recentDamage Lnet/minecraft/entity/damage/DamageTracker;recentDamage:Ljava/util/List;
    • entity

      private final LivingEntity entity
      Mappings:
      Namespace Name Mixin selector
      official e Lbej;e:Lbfx;
      intermediary field_5877 Lnet/minecraft/class_1283;field_5877:Lnet/minecraft/class_1309;
      named entity Lnet/minecraft/entity/damage/DamageTracker;entity:Lnet/minecraft/entity/LivingEntity;
    • ageOnLastDamage

      private int ageOnLastDamage
      Mappings:
      Namespace Name Mixin selector
      official f Lbej;f:I
      intermediary field_5876 Lnet/minecraft/class_1283;field_5876:I
      named ageOnLastDamage Lnet/minecraft/entity/damage/DamageTracker;ageOnLastDamage:I
    • ageOnLastAttacked

      private int ageOnLastAttacked
      Mappings:
      Namespace Name Mixin selector
      official g Lbej;g:I
      intermediary field_5875 Lnet/minecraft/class_1283;field_5875:I
      named ageOnLastAttacked Lnet/minecraft/entity/damage/DamageTracker;ageOnLastAttacked:I
    • ageOnLastUpdate

      private int ageOnLastUpdate
      Mappings:
      Namespace Name Mixin selector
      official h Lbej;h:I
      intermediary field_5873 Lnet/minecraft/class_1283;field_5873:I
      named ageOnLastUpdate Lnet/minecraft/entity/damage/DamageTracker;ageOnLastUpdate:I
    • recentlyAttacked

      private boolean recentlyAttacked
      Mappings:
      Namespace Name Mixin selector
      official i Lbej;i:Z
      intermediary field_5874 Lnet/minecraft/class_1283;field_5874:Z
      named recentlyAttacked Lnet/minecraft/entity/damage/DamageTracker;recentlyAttacked:Z
    • hasDamage

      private boolean hasDamage
      Mappings:
      Namespace Name Mixin selector
      official j Lbej;j:Z
      intermediary field_5872 Lnet/minecraft/class_1283;field_5872:Z
      named hasDamage Lnet/minecraft/entity/damage/DamageTracker;hasDamage:Z
    • fallDeathSuffix

      @Nullable private @Nullable String fallDeathSuffix
      Mappings:
      Namespace Name Mixin selector
      official k Lbej;k:Ljava/lang/String;
      intermediary field_5871 Lnet/minecraft/class_1283;field_5871:Ljava/lang/String;
      named fallDeathSuffix Lnet/minecraft/entity/damage/DamageTracker;fallDeathSuffix:Ljava/lang/String;
  • Constructor Details

    • DamageTracker

      public DamageTracker(LivingEntity entity)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbej;<init>(Lbfx;)V
      intermediary <init> Lnet/minecraft/class_1283;<init>(Lnet/minecraft/class_1309;)V
      named <init> Lnet/minecraft/entity/damage/DamageTracker;<init>(Lnet/minecraft/entity/LivingEntity;)V
  • Method Details

    • setFallDeathSuffix

      public void setFallDeathSuffix()
      Mappings:
      Namespace Name Mixin selector
      official a Lbej;a()V
      intermediary method_5542 Lnet/minecraft/class_1283;method_5542()V
      named setFallDeathSuffix Lnet/minecraft/entity/damage/DamageTracker;setFallDeathSuffix()V
    • onDamage

      public void onDamage(DamageSource damageSource, float originalHealth, float damage)
      Mappings:
      Namespace Name Mixin selector
      official a Lbej;a(Lbem;FF)V
      intermediary method_5547 Lnet/minecraft/class_1283;method_5547(Lnet/minecraft/class_1282;FF)V
      named onDamage Lnet/minecraft/entity/damage/DamageTracker;onDamage(Lnet/minecraft/entity/damage/DamageSource;FF)V
    • getDeathMessage

      public Text getDeathMessage()
      Mappings:
      Namespace Name Mixin selector
      official b Lbej;b()Ltj;
      intermediary method_5548 Lnet/minecraft/class_1283;method_5548()Lnet/minecraft/class_2561;
      named getDeathMessage Lnet/minecraft/entity/damage/DamageTracker;getDeathMessage()Lnet/minecraft/text/Text;
    • getBiggestAttacker

      @Nullable public @Nullable LivingEntity getBiggestAttacker()
      Mappings:
      Namespace Name Mixin selector
      official c Lbej;c()Lbfx;
      intermediary method_5541 Lnet/minecraft/class_1283;method_5541()Lnet/minecraft/class_1309;
      named getBiggestAttacker Lnet/minecraft/entity/damage/DamageTracker;getBiggestAttacker()Lnet/minecraft/entity/LivingEntity;
    • getBiggestFall

      @Nullable private @Nullable DamageRecord getBiggestFall()
      Mappings:
      Namespace Name Mixin selector
      official k Lbej;k()Lbeh;
      intermediary method_5544 Lnet/minecraft/class_1283;method_5544()Lnet/minecraft/class_1281;
      named getBiggestFall Lnet/minecraft/entity/damage/DamageTracker;getBiggestFall()Lnet/minecraft/entity/damage/DamageRecord;
    • getFallDeathSuffix

      private String getFallDeathSuffix(DamageRecord damageRecord)
      Mappings:
      Namespace Name Mixin selector
      official a Lbej;a(Lbeh;)Ljava/lang/String;
      intermediary method_5543 Lnet/minecraft/class_1283;method_5543(Lnet/minecraft/class_1281;)Ljava/lang/String;
      named getFallDeathSuffix Lnet/minecraft/entity/damage/DamageTracker;getFallDeathSuffix(Lnet/minecraft/entity/damage/DamageRecord;)Ljava/lang/String;
    • hasDamage

      public boolean hasDamage()
      Mappings:
      Namespace Name Mixin selector
      official d Lbej;d()Z
      intermediary method_35039 Lnet/minecraft/class_1283;method_35039()Z
      named hasDamage Lnet/minecraft/entity/damage/DamageTracker;hasDamage()Z
    • wasRecentlyAttacked

      public boolean wasRecentlyAttacked()
      Mappings:
      Namespace Name Mixin selector
      official e Lbej;e()Z
      intermediary method_35040 Lnet/minecraft/class_1283;method_35040()Z
      named wasRecentlyAttacked Lnet/minecraft/entity/damage/DamageTracker;wasRecentlyAttacked()Z
    • getTimeSinceLastAttack

      public int getTimeSinceLastAttack()
      Mappings:
      Namespace Name Mixin selector
      official f Lbej;f()I
      intermediary method_5546 Lnet/minecraft/class_1283;method_5546()I
      named getTimeSinceLastAttack Lnet/minecraft/entity/damage/DamageTracker;getTimeSinceLastAttack()I
    • clearFallDeathSuffix

      private void clearFallDeathSuffix()
      Mappings:
      Namespace Name Mixin selector
      official l Lbej;l()V
      intermediary method_5545 Lnet/minecraft/class_1283;method_5545()V
      named clearFallDeathSuffix Lnet/minecraft/entity/damage/DamageTracker;clearFallDeathSuffix()V
    • update

      public void update()
      Mappings:
      Namespace Name Mixin selector
      official g Lbej;g()V
      intermediary method_5539 Lnet/minecraft/class_1283;method_5539()V
      named update Lnet/minecraft/entity/damage/DamageTracker;update()V
    • getEntity

      public LivingEntity getEntity()
      Mappings:
      Namespace Name Mixin selector
      official h Lbej;h()Lbfx;
      intermediary method_5540 Lnet/minecraft/class_1283;method_5540()Lnet/minecraft/class_1309;
      named getEntity Lnet/minecraft/entity/damage/DamageTracker;getEntity()Lnet/minecraft/entity/LivingEntity;
    • getMostRecentDamage

      @Nullable public @Nullable DamageRecord getMostRecentDamage()
      Mappings:
      Namespace Name Mixin selector
      official i Lbej;i()Lbeh;
      intermediary method_35041 Lnet/minecraft/class_1283;method_35041()Lnet/minecraft/class_1281;
      named getMostRecentDamage Lnet/minecraft/entity/damage/DamageTracker;getMostRecentDamage()Lnet/minecraft/entity/damage/DamageRecord;
    • getBiggestAttackerId

      public int getBiggestAttackerId()
      Gets the Entity ID of the biggest attacker
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lbej;j()I
      intermediary method_33937 Lnet/minecraft/class_1283;method_33937()I
      named getBiggestAttackerId Lnet/minecraft/entity/damage/DamageTracker;getBiggestAttackerId()I