Class Pokedex
java.lang.Object
com.pixelmonmod.pixelmon.api.pokemon.species.Pokedex
-
Field Summary
Modifier and TypeFieldDescriptionstatic Species[]
The array of enabled pokemonstatic final Map<Integer,
PokedexEntry> A map of National Pokédex numbers to Pokémon entries.static int
The number of Pokémon in existence in-game. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isEntryEmpty
(int i) Checks if a number doesn't map to a Pokémon.static void
static int
Gets the National Pokédex number of a Pokémon from its name.static void
-
Field Details
-
FULL_POKEDEX
A map of National Pokédex numbers to Pokémon entries. -
pokedexSize
public static int pokedexSizeThe number of Pokémon in existence in-game. -
actualPokedex
The array of enabled pokemon
-
-
Constructor Details
-
Pokedex
public Pokedex()
-
-
Method Details
-
resetPokedex
public static void resetPokedex() -
loadPokedex
public static void loadPokedex() -
nameToID
Gets the National Pokédex number of a Pokémon from its name.- Parameters:
name
- The name of the Pokémon to get its number for.- Returns:
- The National Pokédex number of the Pokémon, or 0 if the Pokémon doesn't exist.
-
isEntryEmpty
public static boolean isEntryEmpty(int i) Checks if a number doesn't map to a Pokémon.- Parameters:
i
- The number to check.- Returns:
- True if the number doesn't map to a Pokémon.
-