Class PokemonSendOutEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PokemonSendOutEvent
Direct Known Subclasses:
PokemonSendOutEvent.Post, PokemonSendOutEvent.Pre

public abstract class PokemonSendOutEvent extends net.minecraftforge.eventbus.api.Event
Fires around the Pokemon send out logic from the player's key press
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Event fired after the pokemon has been sent out by the player
    static class 
    Event fired before the pokemon is sent out by the player Cancelling this will prevent the pokemon entity from appearing in the world

    Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event

    net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PokemonSendOutEvent(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.level.ServerPlayer
    Gets the player sending out the pokemon
    Gets the pokemon being sent out

    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
  • Constructor Details

    • PokemonSendOutEvent

      protected PokemonSendOutEvent(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon)
  • Method Details

    • getPlayer

      public net.minecraft.server.level.ServerPlayer getPlayer()
      Gets the player sending out the pokemon
      Returns:
      The player
    • getPokemon

      public Pokemon getPokemon()
      Gets the pokemon being sent out
      Returns:
      Sent out pokemon