Class DamageTracker

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

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

    • DAMAGE_COOLDOWN

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

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

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

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

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

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

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

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

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

    • DamageTracker

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

    • onDamage

      public void onDamage(DamageSource damageSource, float damage)
      Mappings:
      Namespace Name Mixin selector
      named onDamage Lnet/minecraft/entity/damage/DamageTracker;onDamage(Lnet/minecraft/entity/damage/DamageSource;F)V
      intermediary method_5547 Lnet/minecraft/class_1283;method_5547(Lnet/minecraft/class_1282;F)V
      official a Lbrm;a(Lbrp;F)V
    • isAttackerLiving

      private static boolean isAttackerLiving(DamageSource damageSource)
      Mappings:
      Namespace Name Mixin selector
      named isAttackerLiving Lnet/minecraft/entity/damage/DamageTracker;isAttackerLiving(Lnet/minecraft/entity/damage/DamageSource;)Z
      intermediary method_52191 Lnet/minecraft/class_1283;method_52191(Lnet/minecraft/class_1282;)Z
      official a Lbrm;a(Lbrp;)Z
    • getAttackedFallDeathMessage

      private Text getAttackedFallDeathMessage(Entity attacker, Text attackerDisplayName, String itemDeathTranslationKey, String deathTranslationKey)
      Mappings:
      Namespace Name Mixin selector
      named getAttackedFallDeathMessage Lnet/minecraft/entity/damage/DamageTracker;getAttackedFallDeathMessage(Lnet/minecraft/entity/Entity;Lnet/minecraft/text/Text;Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/text/Text;
      intermediary method_52193 Lnet/minecraft/class_1283;method_52193(Lnet/minecraft/class_1297;Lnet/minecraft/class_2561;Ljava/lang/String;Ljava/lang/String;)Lnet/minecraft/class_2561;
      official a Lbrm;a(Lbsw;Lxp;Ljava/lang/String;Ljava/lang/String;)Lxp;
    • getFallDeathMessage

      private Text getFallDeathMessage(DamageRecord damageRecord, @Nullable @Nullable Entity attacker)
      Mappings:
      Namespace Name Mixin selector
      named getFallDeathMessage Lnet/minecraft/entity/damage/DamageTracker;getFallDeathMessage(Lnet/minecraft/entity/damage/DamageRecord;Lnet/minecraft/entity/Entity;)Lnet/minecraft/text/Text;
      intermediary method_52190 Lnet/minecraft/class_1283;method_52190(Lnet/minecraft/class_1281;Lnet/minecraft/class_1297;)Lnet/minecraft/class_2561;
      official a Lbrm;a(Lbrk;Lbsw;)Lxp;
    • getDisplayName

      @Nullable private static @Nullable Text getDisplayName(@Nullable @Nullable Entity entity)
      Mappings:
      Namespace Name Mixin selector
      named getDisplayName Lnet/minecraft/entity/damage/DamageTracker;getDisplayName(Lnet/minecraft/entity/Entity;)Lnet/minecraft/text/Text;
      intermediary method_52192 Lnet/minecraft/class_1283;method_52192(Lnet/minecraft/class_1297;)Lnet/minecraft/class_2561;
      official a Lbrm;a(Lbsw;)Lxp;
    • getDeathMessage

      public Text getDeathMessage()
      Mappings:
      Namespace Name Mixin selector
      named getDeathMessage Lnet/minecraft/entity/damage/DamageTracker;getDeathMessage()Lnet/minecraft/text/Text;
      intermediary method_5548 Lnet/minecraft/class_1283;method_5548()Lnet/minecraft/class_2561;
      official a Lbrm;a()Lxp;
    • getBiggestFall

      @Nullable private @Nullable DamageRecord getBiggestFall()
      Mappings:
      Namespace Name Mixin selector
      named getBiggestFall Lnet/minecraft/entity/damage/DamageTracker;getBiggestFall()Lnet/minecraft/entity/damage/DamageRecord;
      intermediary method_5544 Lnet/minecraft/class_1283;method_5544()Lnet/minecraft/class_1281;
      official d Lbrm;d()Lbrk;
    • getTimeSinceLastAttack

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

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