Class ReceivePokemonEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.ReceivePokemonEvent

public class ReceivePokemonEvent extends net.neoforged.bus.api.Event
Event that is fired when a player receives a Pokémon.
  • Field Details

    • player

      protected final net.minecraft.world.entity.player.Player player
    • pokemon

      protected final Pokemon pokemon
  • Constructor Details

    • ReceivePokemonEvent

      public ReceivePokemonEvent(net.minecraft.world.entity.player.Player player, Pokemon pokemon)
  • Method Details

    • getPlayer

      public net.minecraft.world.entity.player.Player getPlayer()
    • getPokemon

      public Pokemon getPokemon()