Class AttackEvent.Stab
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.Stab
- Enclosing class:
- AttackEvent
Event fired after Pixelmon calculates the STAB multiplier for this attack. This event will fire
even if the Pokémon is not receiving a STAB, and from this method it is possible to change
the multiplier directly.
- 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
ConstructorDescriptionStab
(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, double stabMultiplier) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if this attack will receive a STAB.void
setStabbing
(boolean stabbing) 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
-
stabMultiplier
public double stabMultiplierThe multiplier for damage.
-
-
Constructor Details
-
Stab
public Stab(BattleController battleController, PixelmonWrapper user, PixelmonWrapper target, double stabMultiplier)
-
-
Method Details
-
isStabbing
public boolean isStabbing()Returnstrue
if this attack will receive a STAB. -
setStabbing
public void setStabbing(boolean stabbing)
-