public abstract class CaptureEvent
extends net.minecraftforge.fml.common.eventhandler.Event
Modifier and Type | Class and Description |
---|---|
static class |
CaptureEvent.FailedCapture
Event fired when a capture fails.
|
static class |
CaptureEvent.FailedRaidCapture
Event fired when a capture fails.
|
static class |
CaptureEvent.StartCapture
Event fired when a Pokémon was just hit by the Pokéball and the catch chance is about to be calculated.
|
static class |
CaptureEvent.StartRaidCapture
Event fired when a Raid Pokémon is attempted to be caught and the catch chance is about to be calculated.
|
static class |
CaptureEvent.SuccessfulCapture
Event fired when a capture is successful.
|
static class |
CaptureEvent.SuccessfulRaidCapture
Event fired when a Raid capture is successful.
|
Modifier and Type | Field and Description |
---|---|
net.minecraft.entity.player.EntityPlayerMP |
player
The player catching the Pokémon
|
EntityPokeBall |
pokeball
The Pokéball used to do the capture
|
protected EntityPixelmon |
pokemon
The Pokémon being caught
|
Modifier and Type | Method and Description |
---|---|
EntityPixelmon |
getPokemon()
The pokemon being caught
|
void |
setPokemon(EntityPixelmon pokemon)
Allows the user to modify the pokemon being captured
Will reject null parameters
|
public final net.minecraft.entity.player.EntityPlayerMP player
protected EntityPixelmon pokemon
public final EntityPokeBall pokeball
public EntityPixelmon getPokemon()
public void setPokemon(EntityPixelmon pokemon)