Class BattleStatStageModifyBattleEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.BattleStatStageModifyBattleEvent
- Direct Known Subclasses:
BattleStatStageModifyBattleEvent.Post
,BattleStatStageModifyBattleEvent.Pre
Battle event fired when a Pokemon's battle stat is modified by something.
For example, intimidate lowering attack, or a move like Swords Dance increasing attack.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after the modification takes place.static class
Fired before the modification takes place.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
Modifier and TypeFieldDescriptionprotected int
protected final int
protected final PixelmonWrapper
protected final BattleStatsType
protected final PixelmonWrapper
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
ModifierConstructorDescriptionprotected
BattleStatStageModifyBattleEvent
(BattleController battleController, PixelmonWrapper source, PixelmonWrapper target, BattleStatsType stat, int oldValue, int newValue) -
Method Summary
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
-
source
-
target
-
stat
-
oldValue
protected final int oldValue -
newValue
protected int newValue
-
-
Constructor Details
-
BattleStatStageModifyBattleEvent
protected BattleStatStageModifyBattleEvent(BattleController battleController, PixelmonWrapper source, PixelmonWrapper target, BattleStatsType stat, int oldValue, int newValue)
-
-
Method Details
-
getSource
-
getTarget
-
getStat
-
getOldValue
public int getOldValue() -
getNewValue
public int getNewValue() -
getAmount
public int getAmount()
-