Class CombatEntry

java.lang.Object
net.minecraft.world.damagesource.CombatEntry

public class CombatEntry extends Object
  • Field Details

    • source

      private final DamageSource source
    • time

      private final int time
    • damage

      private final float damage
    • health

      private final float health
    • location

      @Nullable private final String location
    • fallDistance

      private final float fallDistance
  • Constructor Details

    • CombatEntry

      public CombatEntry(DamageSource p_19257_, int p_19258_, float p_19259_, float p_19260_, @Nullable String p_19261_, float p_19262_)
  • Method Details

    • getSource

      public DamageSource getSource()
    • getTime

      public int getTime()
    • getDamage

      public float getDamage()
    • getHealthBeforeDamage

      public float getHealthBeforeDamage()
    • getHealthAfterDamage

      public float getHealthAfterDamage()
    • isCombatRelated

      public boolean isCombatRelated()
    • getLocation

      @Nullable public String getLocation()
    • getAttackerName

      @Nullable public Component getAttackerName()
    • getAttacker

      @Nullable public Entity getAttacker()
    • getFallDistance

      public float getFallDistance()