Class DamageRecord

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

public class DamageRecord
extends Object
  • Field Details

    • damageSource

      private final DamageSource damageSource
    • entityAge

      private final int entityAge
    • damage

      private final float damage
    • entityHealth

      private final float entityHealth
    • fallDeathSuffix

      private final String fallDeathSuffix
    • fallDistance

      private final float fallDistance
  • Constructor Details

    • DamageRecord

      public DamageRecord​(DamageSource damageSource, int entityAge, float entityOriginalHealth, float damage, String fallDeathSuffix, float fallDistance)
  • Method Details

    • getDamageSource

      public DamageSource getDamageSource()
    • getDamage

      public float getDamage()
    • isAttackerLiving

      public boolean isAttackerLiving()
    • getFallDeathSuffix

      @Nullable public String getFallDeathSuffix()
    • getAttackerName

      @Nullable public Text getAttackerName()
    • getFallDistance

      public float getFallDistance()