Class CaptureEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.CaptureEvent
Direct Known Subclasses:
CaptureEvent.FailedCapture, CaptureEvent.FailedRaidCapture, CaptureEvent.StartCapture, CaptureEvent.StartRaidCapture, CaptureEvent.SuccessfulCapture, CaptureEvent.SuccessfulRaidCapture

public abstract class CaptureEvent extends net.minecraftforge.eventbus.api.Event
  • Field Details

    • player

      protected final net.minecraft.server.level.ServerPlayer player
    • pokemon

      protected PixelmonEntity pokemon
    • pokeBall

      protected final PokeBallEntity pokeBall
  • Method Details

    • getPlayer

      public net.minecraft.server.level.ServerPlayer getPlayer()
      The ServerPlayer performing this capture attempt.
      Returns:
      The ServerPlayer performing this capture attempt.
    • getPokemon

      public PixelmonEntity getPokemon()
      The PixelmonEntity being caught.
      Returns:
      The PixelmonEntity being caught.
    • getPokeBall

      public PokeBallEntity getPokeBall()
      The PokeBallEntity being used in this capture attempt.
      Returns:
      The PokeBallEntity being used in this capture attempt.
    • setPokemon

      public void setPokemon(PixelmonEntity pokemon)
      Replaces the The PixelmonEntity being caught.
      Parameters:
      pokemon - The new PixelmonEntity being caught.