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 evs array.

Cancelling this event will prevent any EVs from being given.

Since:
July 9, 2019
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Event for when an item is used on a pokemon to gain EVs

    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
    Modifier and Type
    Field
    Description
    final EVStore
    The EVStore belonging to the Pokémon whose EVs are being adjusted.
    final EVYields
    The EVs being given.
    final Pokemon
    The Pokémon whose EVs are being adjusted.
  • Constructor Summary

    Constructors
    Constructor
    Description
    EVsGainedEvent(Pokemon pokemon, EVStore evStore, EVYields evYields)
     
  • Method Summary

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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. 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