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.
| Page | What it is |
|---|---|
| Events | Everything a plugin can react to. Some events come before something happens and can stop it; the rest say it has happened. |
| Server | The running server: its players, world, settings, console and this plugin's own settings and log. |
| Plugin | The code the server calls when a plugin starts, when the world is ready and when the plugin stops. |
| Scheduler | Running code later, or again and again. |
| Permissions | Who may do what: operators and permission names. |
| Storage | What a plugin keeps between runs: saved values for itself and for each player, and its own files. Also its requests to the internet. |
| Player | A player in the world: their body, health, bag, gear, coins, progress and team. |
| Bag | What a player carries: the backpack's 16 slots, its side slots, the strap pockets, the belt's 4 cubes and both hands. |
| ItemStack | Some of one item: what it is and how many. |
| Equipment | What a player wears and holds ready: the ten slots of the page inside their backpack's door. |
| Professions | A player's twelve professions: experience and levels. |
| Messages | Telling players things: notices by the watch, large banners, floating labels in the world and sounds. |
| Menu | A panel a plugin shows: tabs down its left side, and in each tab text, buttons, item tiles, toggles, sliders and Voxelmon. |
| Hud | A 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. |
| World | The world: blocks, placed objects, loose items, Voxelmon, time, weather, towns and dungeons. |
| Block | One block in the world: what it is and where. |
| PlacedObject | Something placed that is more than a block: furniture, stations, chests, beds, doors, crops, and server objects made from content packs' models. |
| Model | A content pack's model: what server objects (furniture, props, statues) are made from. |
| Region | A named box of the world that a plugin watches. The plugin hears when players enter and leave it. |
| Town | A town: its place, its clinic, and the Voxelord threatening it. |
| Dungeon | A dungeon: its tier, its levels, its guardian and its reset. |
| Creature | One Voxelmon: wild, a player's companion, or kept in a player's team. |
| 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. |
| Team | A player's Voxelmon: the four cubes on their belt, and those stored. |
| Battle | A turn-based battle between a player's Voxelmon and a wild one, a trainer's or a guardian. |
| Types | The small values every page uses: places, block positions, IDs, colours, times and settings. |