Class AttackEvent.Damage
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.AttackEvent
com.pixelmonmod.pixelmon.api.events.battles.AttackEvent.Damage
- Enclosing class:
- AttackEvent
Event fired after all damage calculations have taken place for an attack. Any changes made during this
event will be final.
- Since:
- June 18, 2019
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.battles.AttackEvent
AttackEvent.CriticalHit, AttackEvent.Damage, AttackEvent.Recoil, AttackEvent.Stab, AttackEvent.TypeEffectiveness, AttackEvent.Use
Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
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
ConstructorDescriptionDamage
(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, double damage) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if, using the current damage, the move will be fatal.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
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
damage
public double damageThe amount of damage this will inflict. Note that decimal values are rounded down unless between 0 and 1, in which case they are rounded up to 1.
-
-
Constructor Details
-
Damage
public Damage(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, double damage)
-
-
Method Details
-
willBeFatal
public boolean willBeFatal()Returnstrue
if, using the current damage, the move will be fatal.
-