Class EVsGainedEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.EVsGainedEvent
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Direct Known Subclasses:
EVsGainedEvent.Item

public class EVsGainedEvent extends net.neoforged.bus.api.Event implements net.neoforged.bus.api.ICancellableEvent
Event fired when a Pokémon gains EVs. The amount of EVs to give can be modified by adjusting the evs array.

Cancelling this event will prevent any EVs from being given.

Since:
July 9, 2019
  • Field Details

    • pokemon

      public final Pokemon pokemon
      The Pokémon whose EVs are being adjusted.
    • evStore

      public final EVStore evStore
      The EVStore belonging to the Pokémon whose EVs are being adjusted.
    • evYields

      public final EVYields evYields
      The EVs being given. These values can be negative. 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