Class PixelmonDeletedEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PixelmonDeletedEvent

public class PixelmonDeletedEvent extends net.minecraftforge.eventbus.api.Event
Fires when a Pokémon is deleted or otherwise lost.
  • Nested Class Summary

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

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

    Fields
    Modifier and Type
    Field
    Description
    The means by which the Pokémon is being deleted
    final net.minecraft.server.level.ServerPlayer
    The player deleting the Pokémon
    final Pokemon
    The Pokémon being deleted in NBT form
  • Constructor Summary

    Constructors
    Constructor
    Description
    PixelmonDeletedEvent(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, DeleteType deleteType)
     
  • Method Summary

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

    • player

      public final net.minecraft.server.level.ServerPlayer player
      The player deleting the Pokémon
    • pokemon

      public final Pokemon pokemon
      The Pokémon being deleted in NBT form
    • deleteType

      public final DeleteType deleteType
      The means by which the Pokémon is being deleted
  • Constructor Details

    • PixelmonDeletedEvent

      public PixelmonDeletedEvent(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, DeleteType deleteType)