mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
17 lines
694 B
Java
17 lines
694 B
Java
package api.hbm.entity;
|
|
|
|
import net.minecraft.util.DamageSource;
|
|
|
|
/**
|
|
* Allows custom entities to specify threshold and resistance values based on incoming damage, type and piercing values, along with whatever other internal stats
|
|
* the entity has (like glyphid armor). Obviously only works for our own custom entities implementing this, everything else will have to work with the less powerful
|
|
* (but still very useful) entity stats in the DamageResistanceHandler.
|
|
*
|
|
* @author hbm
|
|
*/
|
|
public interface IResistanceProvider {
|
|
|
|
public float[] getCurrentDTDR(DamageSource damage, float amount, float pierceDT, float pierce);
|
|
public void onDamageDealt(DamageSource damage, float amount);
|
|
}
|