Class DamageRecord

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

public class DamageRecord extends Object
Mappings:
Namespace Name
official avt
intermediary net/minecraft/class_1281
named net/minecraft/entity/damage/DamageRecord
  • Field Details

    • damageSource

      private final DamageSource damageSource
      Mappings:
      Namespace Name Mixin selector
      official a Lavt;a:Lavw;
      intermediary field_5837 Lnet/minecraft/class_1281;field_5837:Lnet/minecraft/class_1282;
      named damageSource Lnet/minecraft/entity/damage/DamageRecord;damageSource:Lnet/minecraft/entity/damage/DamageSource;
    • entityAge

      private final int entityAge
      Mappings:
      Namespace Name Mixin selector
      official b Lavt;b:I
      intermediary field_5836 Lnet/minecraft/class_1281;field_5836:I
      named entityAge Lnet/minecraft/entity/damage/DamageRecord;entityAge:I
    • damage

      private final float damage
      Mappings:
      Namespace Name Mixin selector
      official c Lavt;c:F
      intermediary field_5835 Lnet/minecraft/class_1281;field_5835:F
      named damage Lnet/minecraft/entity/damage/DamageRecord;damage:F
    • entityHealth

      private final float entityHealth
      Mappings:
      Namespace Name Mixin selector
      official d Lavt;d:F
      intermediary field_5834 Lnet/minecraft/class_1281;field_5834:F
      named entityHealth Lnet/minecraft/entity/damage/DamageRecord;entityHealth:F
    • fallDeathSuffix

      @Nullable private final @Nullable String fallDeathSuffix
      Mappings:
      Namespace Name Mixin selector
      official e Lavt;e:Ljava/lang/String;
      intermediary field_5838 Lnet/minecraft/class_1281;field_5838:Ljava/lang/String;
      named fallDeathSuffix Lnet/minecraft/entity/damage/DamageRecord;fallDeathSuffix:Ljava/lang/String;
    • fallDistance

      private final float fallDistance
      Mappings:
      Namespace Name Mixin selector
      official f Lavt;f:F
      intermediary field_5833 Lnet/minecraft/class_1281;field_5833:F
      named fallDistance Lnet/minecraft/entity/damage/DamageRecord;fallDistance:F
  • Constructor Details

    • DamageRecord

      public DamageRecord(DamageSource damageSource, int entityAge, float entityOriginalHealth, float damage, @Nullable @Nullable String fallDeathSuffix, float fallDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lavt;<init>(Lavw;IFFLjava/lang/String;F)V
      intermediary <init> Lnet/minecraft/class_1281;<init>(Lnet/minecraft/class_1282;IFFLjava/lang/String;F)V
      named <init> Lnet/minecraft/entity/damage/DamageRecord;<init>(Lnet/minecraft/entity/damage/DamageSource;IFFLjava/lang/String;F)V
  • Method Details

    • getDamageSource

      public DamageSource getDamageSource()
      Mappings:
      Namespace Name Mixin selector
      official a Lavt;a()Lavw;
      intermediary method_5499 Lnet/minecraft/class_1281;method_5499()Lnet/minecraft/class_1282;
      named getDamageSource Lnet/minecraft/entity/damage/DamageRecord;getDamageSource()Lnet/minecraft/entity/damage/DamageSource;
    • getEntityAge

      public int getEntityAge()
      Mappings:
      Namespace Name Mixin selector
      official b Lavt;b()I
      intermediary method_35035 Lnet/minecraft/class_1281;method_35035()I
      named getEntityAge Lnet/minecraft/entity/damage/DamageRecord;getEntityAge()I
    • getDamage

      public float getDamage()
      Mappings:
      Namespace Name Mixin selector
      official c Lavt;c()F
      intermediary method_5503 Lnet/minecraft/class_1281;method_5503()F
      named getDamage Lnet/minecraft/entity/damage/DamageRecord;getDamage()F
    • getEntityHealth

      public float getEntityHealth()
      Mappings:
      Namespace Name Mixin selector
      official d Lavt;d()F
      intermediary method_35036 Lnet/minecraft/class_1281;method_35036()F
      named getEntityHealth Lnet/minecraft/entity/damage/DamageRecord;getEntityHealth()F
    • getNewEntityHealth

      public float getNewEntityHealth()
      Mappings:
      Namespace Name Mixin selector
      official e Lavt;e()F
      intermediary method_35037 Lnet/minecraft/class_1281;method_35037()F
      named getNewEntityHealth Lnet/minecraft/entity/damage/DamageRecord;getNewEntityHealth()F
    • isAttackerLiving

      public boolean isAttackerLiving()
      Mappings:
      Namespace Name Mixin selector
      official f Lavt;f()Z
      intermediary method_5502 Lnet/minecraft/class_1281;method_5502()Z
      named isAttackerLiving Lnet/minecraft/entity/damage/DamageRecord;isAttackerLiving()Z
    • getFallDeathSuffix

      @Nullable public @Nullable String getFallDeathSuffix()
      Mappings:
      Namespace Name Mixin selector
      official g Lavt;g()Ljava/lang/String;
      intermediary method_5500 Lnet/minecraft/class_1281;method_5500()Ljava/lang/String;
      named getFallDeathSuffix Lnet/minecraft/entity/damage/DamageRecord;getFallDeathSuffix()Ljava/lang/String;
    • getAttackerName

      @Nullable public @Nullable Text getAttackerName()
      Mappings:
      Namespace Name Mixin selector
      official h Lavt;h()Lpt;
      intermediary method_5498 Lnet/minecraft/class_1281;method_5498()Lnet/minecraft/class_2561;
      named getAttackerName Lnet/minecraft/entity/damage/DamageRecord;getAttackerName()Lnet/minecraft/text/Text;
    • getAttacker

      @Nullable public @Nullable Entity getAttacker()
      Mappings:
      Namespace Name Mixin selector
      official i Lavt;i()Lawm;
      intermediary method_35038 Lnet/minecraft/class_1281;method_35038()Lnet/minecraft/class_1297;
      named getAttacker Lnet/minecraft/entity/damage/DamageRecord;getAttacker()Lnet/minecraft/entity/Entity;
    • getFallDistance

      public float getFallDistance()
      Mappings:
      Namespace Name Mixin selector
      official j Lavt;j()F
      intermediary method_5501 Lnet/minecraft/class_1281;method_5501()F
      named getFallDistance Lnet/minecraft/entity/damage/DamageRecord;getFallDistance()F