2023-04-22 11:13:54 +10:00
|
|
|
# Crates
|
|
|
|
|
|
|
|
The standard crates used in Valence projects.
|
|
|
|
|
|
|
|
All crates here are exported by the main `valence` crate. `valence` is the intended interface for both end users and plugin authors.
|
|
|
|
|
|
|
|
Crates are versioned in lockstep with the exception of `valence_nbt`.
|
|
|
|
|
|
|
|
Ignoring transitive dependencies and `valence_core`, the dependency graph can be described like this:
|
|
|
|
|
|
|
|
```mermaid
|
|
|
|
graph TD
|
|
|
|
network --> client
|
|
|
|
client --> instance
|
|
|
|
biome --> registry
|
|
|
|
dimension --> registry
|
|
|
|
instance --> biome
|
|
|
|
instance --> dimension
|
|
|
|
instance --> entity
|
|
|
|
player_list --> client
|
|
|
|
inventory --> client
|
|
|
|
anvil --> instance
|
|
|
|
entity --> block
|
2023-05-02 18:35:35 +10:00
|
|
|
advancement --> client
|
2023-04-22 11:13:54 +10:00
|
|
|
```
|