public abstract class AttackEvent
extends net.minecraftforge.fml.common.eventhandler.Event
AttackEvent.Use, AttackEvent.CriticalHit, AttackEvent.Stab, AttackEvent.Damage, AttackEvent.TypeEffectiveness. | Modifier and Type | Class and Description |
|---|---|
static class |
AttackEvent.CriticalHit
Event fired after Pixelmon calculates the critical hit multiplier for this attack.
|
static class |
AttackEvent.Damage
Event fired after all damage calculations have taken place for an attack.
|
static class |
AttackEvent.Stab
Event fired after Pixelmon calculates the STAB multiplier for this attack.
|
static class |
AttackEvent.TypeEffectiveness
Event fired when calculating move effectiveness.
|
static class |
AttackEvent.Use
Event fired after any attack is used.
|
| Modifier and Type | Field and Description |
|---|---|
PixelmonWrapper |
target
The target of the attack.
|
PixelmonWrapper |
user
The user of the attack.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AttackEvent(PixelmonWrapper user,
PixelmonWrapper target) |
| Modifier and Type | Method and Description |
|---|---|
Attack |
getAttack()
The attack being used.
|
boolean |
isSelf()
Whether or not the user is the target.
|
public final PixelmonWrapper user
public final PixelmonWrapper target
protected AttackEvent(PixelmonWrapper user, PixelmonWrapper target)
public Attack getAttack()
user.attack.public boolean isSelf()