EntityLivingAttacked
Link to entitylivingattacked
The EntityLivingAttacked Event is fired whenever an entity is being attacked.
It can be canceled to stop the entity from taking damage.
Класс события
Link to класс-события
You will need to cast the event in the function header as this class:
crafttweaker.event.EntityLivingAttackedEvent
You can, of course, also import the class before and use that name then.
Наследование от интерфейсов событий
Link to наследование-от-интерфейсов-событий
PlayerDeathDrops реализует следующие интерфейсы и способно вызвать все их методы/геттеры/сеттеры:
ZenGetters
Link to zengetters
ZenGetter | Тип |
---|---|
ZenGetter damageSource | Тип IDamageSource |
ZenGetter amount | Тип float |