Class BattleStatStageModifyBattleEvent.Pre
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
com.pixelmonmod.pixelmon.api.events.battles.BattleStatStageModifyBattleEvent
com.pixelmonmod.pixelmon.api.events.battles.BattleStatStageModifyBattleEvent.Pre
- Enclosing class:
- BattleStatStageModifyBattleEvent
Fired before the modification takes place.
This is where you would cancel the event if you wanted to prevent the stat from being modified.
This is where you would cancel the event if you wanted to prevent the stat from being modified.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleStatStageModifyBattleEvent
BattleStatStageModifyBattleEvent.Post, BattleStatStageModifyBattleEvent.Pre
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.BattleStatStageModifyBattleEvent
newValue, oldValue, source, stat, target
Fields inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleEvent
battleController
-
Constructor Summary
ConstructorDescriptionPre
(BattleController battleController, PixelmonWrapper source, PixelmonWrapper target, BattleStatsType stat, int oldValue, int newValue) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.battles.BattleStatStageModifyBattleEvent
getAmount, getNewValue, getOldValue, getSource, getStat, getTarget
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
-
Constructor Details
-
Pre
public Pre(BattleController battleController, PixelmonWrapper source, PixelmonWrapper target, BattleStatsType stat, int oldValue, int newValue)
-
-
Method Details
-
setNewValue
public void setNewValue(int newValue) -
post
-