Class AttackEvent.DamageDealt
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.AttackEvent
com.pixelmonmod.pixelmon.api.events.battles.AttackEvent.DamageDealt
- Enclosing class:
AttackEvent
Event fired after damage has been done for an attack.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.battles.AttackEvent
AttackEvent.CriticalHit, AttackEvent.Damage, AttackEvent.DamageDealt, AttackEvent.Recoil, AttackEvent.Stab, AttackEvent.TypeEffectiveness, AttackEvent.Use
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloat
The amount of damage that was inflicted.The type of battle damage.Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.AttackEvent
target, user
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
ConstructorsConstructorDescriptionDamageDealt
(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, float damageDealt, DamageTypeEnum damageTypeEnum) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.AttackEvent
getAttack, isSelf
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
getBattleController
-
Field Details
-
damageDealt
public float damageDealtThe amount of damage that was inflicted. It will not be a number higher than the target's max HP. -
damageTypeEnum
The type of battle damage.
-
-
Constructor Details
-
DamageDealt
public DamageDealt(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, float damageDealt, DamageTypeEnum damageTypeEnum)
-