Package com.hbm_m.interfaces
Interface IResistanceProvider
public interface IResistanceProvider
Interface for entities that provide custom damage resistance
Ported from original HBM 1.7.10
-
Method Summary
Modifier and TypeMethodDescriptionfloat[]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 sourceamount- The damage amountpierceDT- Armor piercing for DTpierceDR- Armor piercing for DR- Returns:
- float array [dt, dr] where dt is damage threshold and dr is damage resistance
-