Class AttackEvent.Use
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.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.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
ConstructorDescriptionUse
(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
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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)
-