Docs » API reference » API reference

API reference

Every type a plugin can use. The API is the same in Rust and Java: choose a language at the foot of the side menu, or on any code example, and the signatures on every page switch to it.

In Rust a call returns voxelmon_plugin_sdk::Result<T>. In Java it throws ApiException, and a value that may be missing is an Optional. When a call fails lists the errors.

A tag such as player_data beside a method is a need: the plugin's manifest has to ask for it before the call is allowed. Methods without a tag only read, and any plugin may call them.

PageWhat it is
EventsEverything a plugin can react to. Some events come before something happens and can stop it; the rest say it has happened.
ServerThe running server: its players, world, settings, console and this plugin's own settings and log.
PluginThe code the server calls when a plugin starts, when the world is ready and when the plugin stops.
SchedulerRunning code later, or again and again.
PermissionsWho may do what: operators and permission names.
StorageWhat a plugin keeps between runs: saved values for itself and for each player, and its own files. Also its requests to the internet.
PlayerA player in the world: their body, health, bag, gear, coins, progress and team.
BagWhat a player carries: the backpack's 16 slots, its side slots, the strap pockets, the belt's 4 cubes and both hands.
ItemStackSome of one item: what it is and how many.
EquipmentWhat a player wears and holds ready: the ten slots of the page inside their backpack's door.
ProfessionsA player's twelve professions: experience and levels.
MessagesTelling players things: notices by the watch, large banners, floating labels in the world and sounds.
MenuA panel a plugin shows: tabs down its left side, and in each tab text, buttons, item tiles, toggles, sliders and Voxelmon.
HudA small scoreboard by the player's watch, with a title and up to 12 lines. This page also covers boss bars and server tabs on the watch.
WorldThe world: blocks, placed objects, loose items, Voxelmon, time, weather, towns and dungeons.
BlockOne block in the world: what it is and where.
PlacedObjectSomething placed that is more than a block: furniture, stations, chests, beds, doors, crops, and server objects made from content packs' models.
ModelA content pack's model: what server objects (furniture, props, statues) are made from.
RegionA named box of the world that a plugin watches. The plugin hears when players enter and leave it.
TownA town: its place, its clinic, and the Voxelord threatening it.
DungeonA dungeon: its tier, its levels, its guardian and its reset.
CreatureOne Voxelmon: wild, a player's companion, or kept in a player's team.
SpeciesA 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.
TeamA player's Voxelmon: the four cubes on their belt, and those stored.
BattleA turn-based battle between a player's Voxelmon and a wild one, a trainer's or a guardian.
TypesThe small values every page uses: places, block positions, IDs, colours, times and settings.