Molang Pokédex Functions
Type is ObjectValue<AbstractPokedexManager>
.
Name | Description | Usage | Must Be PokedexManager
|
---|---|---|---|
get_species_record(species: ResourceLocation): QueryStruct
|
Returns a QueryStruct<SpeciesDexRecord> with useful functions for acessing and modifiing records. If the ResourceLocation is invalid or the record does not exist then the function returns an empty QueryStruct .
|
v.pokedex.get_species_record('pikachu')
|
|
has_seen(species: ResourceLocation, form: String?): Double
|
Returns 1.0 if the Pokémon of species and optionally form been encountered or higher, otherwise returns 0.0 .
|
v.pokedex.has_seen('pikachu')
|
|
has_caught(species: ResourceLocation, form: String?): Double
|
Returns 1.0 if the Pokémon of species and optionally form been caught, otherwise returns 0.0 .
|
v.pokedex.has_caught('cobblemon:pikachu', 'alolan')
|
|
caught_count(): Double
|
Returns the number of caught Pokémon as a Double. | v.pokedex.caught_count()
|
|
seen_count(): Double
|
Returns the number of seen Pokémon as a Double. |
v.pokedex.seen_count()
|
|
caught_percent(): Double
|
Returns the percent of Pokémon caught as a Double. |
v.pokedex.caught_percent()
| |
seen_percent(): Double
|
Returns the percent of Pokémon seen as a Double. |
v.pokedex.seen_percent()
|
|
player_id(): String
|
Returns the Player's UUID that belongs to the Pokédex. | v.pokedex.player_id()
|
Yes |
see(pokemon: ObjectValue<Pokemon>): Double
|
Updates the Pokédex with a new encountered record of the Pokemon . Returns 1.0 .
|
v.pokedex.see(v.pokemon)
|
Yes |
catch(Pokemon: ObjectValue<Pokemon>): Double
|
Updates the Pokédex with a new catch record of the Pokemon . Returns 1.0 .
|
v.pokedex.catch(v.pokemon)
|
Yes |