Class MovesetEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.MovesetEvent
Direct Known Subclasses:
MovesetEvent.ForgotMoveEvent, MovesetEvent.LearntMoveEvent

public abstract class MovesetEvent extends net.minecraftforge.eventbus.api.Event
Abstract event for all changes to Movesets for player-owned Pokémon. The two provided implementations are MovesetEvent.LearntMoveEvent and MovesetEvent.ForgotMoveEvent. Both events hold final references to the PokemonLink representation of the Moveset owner and the Moveset itself. Under no known circumstances, as of writing, is the owner field or the moveset field null.

Both implementing events are very sensitive, and will fire for ALL modifications to movesets for player Pokémon.

Note that all implementations will fire AFTER the respective change, and all implementations are not cancellable.

Created January 3rd, 2018

  • Field Details

    • pokemon

      public final Pokemon pokemon
    • moveset

      public final Moveset moveset
      The Moveset that is changing.
  • Constructor Details

    • MovesetEvent

      protected MovesetEvent(Pokemon pokemon, Moveset moveset)