Interface IResistanceProvider


public interface IResistanceProvider
Interface for entities that provide custom damage resistance Ported from original HBM 1.7.10
  • Method Summary

    Modifier and Type
    Method
    Description
    float[]
    getCurrentDTDR(net.minecraft.world.damagesource.DamageSource damage, float amount, float pierceDT, float pierceDR)
    Get current Damage Threshold and Damage Resistance values
  • Method Details

    • getCurrentDTDR

      float[] getCurrentDTDR(net.minecraft.world.damagesource.DamageSource damage, float amount, float pierceDT, float pierceDR)
      Get current Damage Threshold and Damage Resistance values
      Parameters:
      damage - The damage source
      amount - The damage amount
      pierceDT - Armor piercing for DT
      pierceDR - Armor piercing for DR
      Returns:
      float array [dt, dr] where dt is damage threshold and dr is damage resistance