Class PokedexEvent.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PokedexEvent
com.pixelmonmod.pixelmon.api.events.PokedexEvent.Pre
Enclosing class:
PokedexEvent

public static class PokedexEvent.Pre extends PokedexEvent
Event fired just before the player's pokedex is updated Cancelling will mean the pokemon doesn't get modified in their pokedex
  • Constructor Details

  • Method Details

    • setNewStatus

      public void setNewStatus(PokedexRegistrationStatus newStatus)
      Sets the new status it's transitioning to
      Parameters:
      newStatus - The new status being set in the Player's pokedex
    • setPokemon

      public void setPokemon(Pokemon pokemon)
      Sets the pokemon the status is being changed for
      Parameters:
      pokemon - The pokemon
    • setCause

      public void setCause(String cause)
      Sets the cause of the event
      Parameters:
      cause - The cause