Class AttackEvent.Use
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.Use
- Enclosing class:
AttackEvent
Event fired after any attack is used. If the attack is a Z-Move, Max Move,
or G-Max Move, that attack will be returned instead of the underlying attack.
Created by Waterdude
Created by Waterdude
- Since:
- March 12, 2021
-
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
FieldsFields 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
ConstructorsConstructorDescriptionUse
(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, ImmutableAttack attack, double accuracy, boolean cantMiss) -
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
-
attack
-
accuracy
public double accuracy -
cantMiss
public boolean cantMiss
-
-
Constructor Details
-
Use
public Use(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, ImmutableAttack attack, double accuracy, boolean cantMiss)
-