Class PokemonSendOutEvent.Pre

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.PokemonSendOutEvent
com.pixelmonmod.pixelmon.api.events.PokemonSendOutEvent.Pre
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
PokemonSendOutEvent

public static class PokemonSendOutEvent.Pre extends PokemonSendOutEvent implements net.neoforged.bus.api.ICancellableEvent
Event fired before the pokemon is sent out by the player Cancelling this will prevent the pokemon entity from appearing in the world
  • Constructor Details

    • Pre

      public Pre(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon)
      Basic constructor
      Parameters:
      player - The player
      pokemon - The pokemon