Species
A kind of Voxelmon: its essences, its moves, where it lives and what it evolves into. Covers the game's species and any a content pack adds.
A handle to something in the game. Once that thing is gone, its calls fail with Gone. You get one from Species.named(...), Species.all(), creature.species.
Methods
| Method | Description |
|---|---|
fn id(&self) -> Result<i64>long id() | Its lasting number (a content pack's species: its number while the server runs; keep it by name or key). |
fn name(&self) -> Result<String>String name() | Its name, such as LUNAPUP. |
fn essence(&self) -> Result<Essence>Essence essence() | Its first essence. |
fn second_essence(&self) -> Result<Option<Essence>>Optional<Essence> secondEssence() | Its second essence, if it has one. |
fn rarity(&self) -> Result<Rarity>Rarity rarity() | How often it appears in the wild. |
fn temperament(&self) -> Result<Temperament>Temperament temperament() | How it treats players. |
fn habitats(&self) -> Result<Vec<Habitat>>List<Habitat> habitats() | Where it lives. |
fn locomotion(&self) -> Result<Locomotion>Locomotion locomotion() | Walks, swims or both. |
fn evolutions(&self) -> Result<Vec<Evolution>>List<Evolution> evolutions() | What it becomes. |
fn base_stats(&self) -> Result<Stats>Stats baseStats() | Its stats before levels. |
fn learns(&self) -> Result<Vec<LearnedMove>>List<LearnedMove> learns() | The moves it learns, and at which levels. |
fn named(name: &str) -> Result<Option<Species>>static Optional<Species> named(String name) | A species by name (any case), or a content pack's by its key (pack:name). |
fn by_id(id: i64) -> Result<Option<Species>>static Optional<Species> byId(long id) | A species by number. |
fn all() -> Result<Vec<Species>>static List<Species> all() | Every species: the game's own, then the content packs'. |
Move
A battle move: the game's own or a content pack's (moves/*.toml).
A handle to something in the game. Once that thing is gone, its calls fail with Gone.
| Method | Description |
|---|---|
fn id(&self) -> Result<i64>long id() | Its lasting number (a content pack's move: its number while the server runs). |
fn name(&self) -> Result<String>String name() | Its name. |
fn essence(&self) -> Result<Option<Essence>>Optional<Essence> essence() | Its essence, or none for a plain move. |
fn power(&self) -> Result<i64>long power() | How hard it hits (0 for a move that does not). |
fn accuracy(&self) -> Result<i64>long accuracy() | Its chance to land, in percent. |
fn named(name: &str) -> Result<Option<Move>>static Optional<Move> named(String name) | A move by name (any case), or a content pack's by its key (pack:name). |
Evolution
What a species becomes.
Plain data, copied between the server and the plugin.
| Field | Description |
|---|---|
into: SpeciesSpecies into() | The species it becomes. |
level: i64long level() | The level it may evolve at. |
LearnedMove
A move a species learns.
Plain data, copied between the server and the plugin.
Essence
One of the twelve essences: each strong against two and weak against two.
One of a fixed set of values.
| Value | Meaning |
|---|---|
Essence::AirEssence.AIR | Air. |
Essence::WaterEssence.WATER | Water. |
Essence::FireEssence.FIRE | Fire. |
Essence::EarthEssence.EARTH | Earth. |
Essence::DragonEssence.DRAGON | Dragon. |
Essence::FrostEssence.FROST | Frost. |
Essence::InsectEssence.INSECT | Insect. |
Essence::LightningEssence.LIGHTNING | Lightning. |
Essence::MetalEssence.METAL | Metal. |
Essence::ShadowEssence.SHADOW | Shadow. |
Essence::PlantEssence.PLANT | Plant. |
Essence::PoisonEssence.POISON | Poison. |
Rarity
How often a species appears.
One of a fixed set of values.
| Value | Meaning |
|---|---|
Rarity::CommonRarity.COMMON | Common. |
Rarity::UncommonRarity.UNCOMMON | Uncommon. |
Rarity::RareRarity.RARE | Rare. |
Temperament
How a species treats players.
One of a fixed set of values.
| Value | Meaning |
|---|---|
Temperament::FriendlyTemperament.FRIENDLY | Never attacks. |
Temperament::NeutralTemperament.NEUTRAL | Attacks when riled. |
Temperament::AggressiveTemperament.AGGRESSIVE | Hunts players. |
Locomotion
How a species moves.
One of a fixed set of values.
| Value | Meaning |
|---|---|
Locomotion::WalkLocomotion.WALK | On land. |
Locomotion::SwimLocomotion.SWIM | Only in water. |
Locomotion::AmphibiousLocomotion.AMPHIBIOUS | On land and in water. |
Habitat
Where a species lives.
One of a fixed set of values.
| Value | Meaning |
|---|---|
Habitat::GrassHabitat.GRASS | Grassland. |
Habitat::SavannaHabitat.SAVANNA | Savanna. |
Habitat::MudHabitat.MUD | Swamp and mud. |
Habitat::SandHabitat.SAND | Desert. |
Habitat::SnowHabitat.SNOW | Snow. |
Habitat::AutumnHabitat.AUTUMN | Autumn woods. |
Habitat::TaigaHabitat.TAIGA | Taiga. |
Habitat::JungleHabitat.JUNGLE | Jungle. |
Habitat::CoastHabitat.COAST | Beaches. |
Habitat::RockHabitat.ROCK | Peaks and rock. |
Habitat::FungalHabitat.FUNGAL | Fungal isles. |
Habitat::VolcanicHabitat.VOLCANIC | Volcanic land. |
Habitat::MoorHabitat.MOOR | Moor. |
Habitat::CaveHabitat.CAVE | Caves. |
Habitat::LushCaveHabitat.LUSH_CAVE | Verdant caves. |
Habitat::FloodedCaveHabitat.FLOODED_CAVE | Flooded caves. |
Habitat::VolcanicCaveHabitat.VOLCANIC_CAVE | Volcanic caves. |
Habitat::IceCaveHabitat.ICE_CAVE | Ice caves. |
Habitat::CrystalCaveHabitat.CRYSTAL_CAVE | Crystal caves. |
Habitat::DungeonHabitat.DUNGEON | Dungeons. |
Habitat::ShallowsHabitat.SHALLOWS | Shallow sea. |
Habitat::ReefHabitat.REEF | Reefs. |
Habitat::OpenSeaHabitat.OPEN_SEA | Open sea. |
Habitat::LakeHabitat.LAKE | Lakes. |