Class EVsGainedEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.EVsGainedEvent
- Direct Known Subclasses:
EVsGainedEvent.Item
public class EVsGainedEvent
extends net.minecraftforge.eventbus.api.Event
Event fired when a Pokémon gains EVs. The amount of EVs to give can be modified by adjusting the
Cancelling this event will prevent any EVs from being given.
evs
array.Cancelling this event will prevent any EVs from being given.
- Since:
- July 9, 2019
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Event for when an item is used on a pokemon to gain EVsNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
-
Constructor Summary
-
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
pokemon
The Pokémon whose EVs are being adjusted. -
evStore
The EVStore belonging to the Pokémon whose EVs are being adjusted. -
evYields
The EVs being given. This is in the standard 6-stat format of Hp/Atk/Def/SpAtk/SpDef/Spd. This can be mutated but not re-assigned.
-
-
Constructor Details
-
EVsGainedEvent
-