Rust API¶
The crate of the pier-rs package is named levilamina. Each module has a page; the methods of a type such as Player, Entity or World are spread over several source files and are gathered on the page of the type's definition.
levilamina::sys mirrors abi.h cell for cell (the pier-sys-rs package); its slots, constants and structs are on the C++ pages.
| Page | Functions and methods | Types | Constants |
|---|---|---|---|
| crate root | 25 | 7 | 0 |
| player | 118 | 4 | 0 |
| entity | 95 | 4 | 0 |
| world | 46 | 11 | 1 |
| block | 60 | 2 | 0 |
| item | 64 | 2 | 0 |
| container | 14 | 2 | 0 |
| event | 39 | 7 | 0 |
| event::names | 2 | 0 | 68 |
| command | 26 | 7 | 0 |
| gui | 31 | 5 | 0 |
| scoreboard | 12 | 3 | 0 |
| packet | 16 | 7 | 0 |
| server | 12 | 1 | 0 |
| Host | 28 | 2 | 0 |
| bus | 7 | 2 | 0 |
| service | 13 | 4 | 0 |
| lane | 16 | 9 | 0 |
| kvdb | 10 | 1 | 0 |
| money | 19 | 2 | 0 |
| nbt | 48 | 5 | 0 |
| sim | 27 | 1 | 0 |
| dimensions | 22 | 8 | 0 |
| client | 10 | 2 | 0 |
| registry | 7 | 3 | 7 |
| types | 25 | 16 | 0 |