/
Belyash5
/
Flu
Обзор
Документация
Войти
/
Belyash5
/
Flu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
src/main/java/api/hbm/entity/IResistanceProvider.java
16 строк
694 B
Bob
roblox death sound
24 дек 2024, 01:56
24 дек 2024, 01:56
d7776b5
Код
Авторство
О чём код?
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); }