public class PokedexEvent
extends net.minecraftforge.fml.common.eventhandler.Event
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CAPTURE
Constant representing the Pokémon capture cause.
|
java.lang.String |
cause
The cause of this update.
|
static java.lang.String |
COMMAND_GIVEN
Constant representing the command given cause.
|
static java.lang.String |
EGG
Constant representing the egg hatching cause.
|
static java.lang.String |
EVOLUTION
Constant representing the Pokémon evolution cause.
|
EnumPokedexRegisterStatus |
newStatus
What the Pokédex status is about to be.
|
EnumPokedexRegisterStatus |
oldStatus
What the Pokédex status was before.
|
static java.lang.String |
POKEDEX_KEY
Constant representing the Pokédex key cause for marking a species as seen.
|
Pokemon |
pokemon
The Pokémon that is prompting this Pokédex update.
|
static java.lang.String |
STORAGE_MOVEMENT
Constant representing the storage movements cause.
|
static java.lang.String |
TRADE_NPC
Constant representing the NPC-trade cause.
|
static java.lang.String |
TRADE_PLAYER
Constant representing the player-trade cause.
|
java.util.UUID |
uuid
The UUID of the player whose Pokédex is being updated.
|
Constructor and Description |
---|
PokedexEvent(java.util.UUID uuid,
Pokemon pokemon,
EnumPokedexRegisterStatus newStatus,
java.lang.String cause) |
Modifier and Type | Method and Description |
---|---|
EnumSpecies |
getSpecies() |
boolean |
isBeingSeenByPokedexKey() |
boolean |
isCausedByCapture() |
boolean |
isCausedByEggHatching() |
boolean |
isCausedByEvolution() |
boolean |
isCausedByNPCTrade() |
boolean |
isCausedByPlayerTrade() |
boolean |
isCausedBySidemod() |
boolean |
isCausedByStorageMovement() |
public static final java.lang.String CAPTURE
public static final java.lang.String TRADE_PLAYER
public static final java.lang.String TRADE_NPC
public static final java.lang.String EVOLUTION
public static final java.lang.String EGG
public static final java.lang.String STORAGE_MOVEMENT
public static final java.lang.String COMMAND_GIVEN
public static final java.lang.String POKEDEX_KEY
public final java.util.UUID uuid
public final Pokemon pokemon
public final EnumPokedexRegisterStatus oldStatus
public final EnumPokedexRegisterStatus newStatus
public final java.lang.String cause
public PokedexEvent(java.util.UUID uuid, Pokemon pokemon, EnumPokedexRegisterStatus newStatus, java.lang.String cause)
public EnumSpecies getSpecies()
public boolean isCausedByCapture()
public boolean isCausedByPlayerTrade()
public boolean isCausedByNPCTrade()
public boolean isCausedByEvolution()
public boolean isCausedByEggHatching()
public boolean isCausedByStorageMovement()
public boolean isCausedBySidemod()
public boolean isBeingSeenByPokedexKey()