public abstract class CaptureEvent
extends net.minecraftforge.eventbus.api.Event
CaptureEvent.StartCapture, CaptureEvent.StartRaidCapture, CaptureEvent.SuccessfulCapture, CaptureEvent.SuccessfulRaidCapture,
CaptureEvent.FailedCapture, CaptureEvent.FailedRaidCapture| Modifier and Type | Class and Description |
|---|---|
static class |
CaptureEvent.FailedCapture
Event fired when a regular (non-raid) capture attempt fails to succeed.
|
static class |
CaptureEvent.FailedRaidCapture
Event fired when a raid capture attempt fails to succeed.
|
static class |
CaptureEvent.StartCapture
Event fired when a regular (non-raid) capture attempt is about to start.
|
static class |
CaptureEvent.StartRaidCapture
Event fired when a raid capture attempt is about to start.
|
static class |
CaptureEvent.SuccessfulCapture
Event fired when a regular (non-raid) capture attempt is about to succeed, after passing all the required checks.
|
static class |
CaptureEvent.SuccessfulRaidCapture
Event fired when a raid capture attempt is about to succeed, after passing all the required checks.
|
| Modifier and Type | Field and Description |
|---|---|
protected net.minecraft.entity.player.ServerPlayerEntity |
player |
protected PokeBallEntity |
pokeBall |
protected PixelmonEntity |
pokemon |
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.entity.player.ServerPlayerEntity |
getPlayer()
The
ServerPlayerEntity performing this capture attempt. |
PokeBallEntity |
getPokeBall()
The
PokeBallEntity being used in this capture attempt. |
PixelmonEntity |
getPokemon()
The
PixelmonEntity being caught. |
void |
setPokemon(PixelmonEntity pokemon)
Replaces the The
PixelmonEntity being caught. |
protected final net.minecraft.entity.player.ServerPlayerEntity player
protected PixelmonEntity pokemon
protected final PokeBallEntity pokeBall
public net.minecraft.entity.player.ServerPlayerEntity getPlayer()
ServerPlayerEntity performing this capture attempt.ServerPlayerEntity performing this capture attempt.public PixelmonEntity getPokemon()
PixelmonEntity being caught.PixelmonEntity being caught.public PokeBallEntity getPokeBall()
PokeBallEntity being used in this capture attempt.PokeBallEntity being used in this capture attempt.public void setPokemon(PixelmonEntity pokemon)
PixelmonEntity being caught.pokemon - The new PixelmonEntity being caught.