Crates.io | valence_inventory |
lib.rs | valence_inventory |
version | 0.2.0-alpha.1+mc.1.20.1 |
source | src |
created_at | 2023-08-11 14:19:28.917757 |
updated_at | 2023-08-11 14:19:28.917757 |
description | Inventory support for Valence |
homepage | |
repository | https://github.com/valence-rs/valence |
max_upload_size | |
id | 941960 |
size | 81,037 |
The inventory system.
This module contains the systems and components needed to handle inventories. By default, clients will have a player inventory attached to them.
Inventory
]: The inventory component. This is the thing that holds
items.OpenInventory
]: The component that is attached to clients when they
have an inventory open.An example system that will let you access all player's inventories:
# use bevy_ecs::prelude::*;
# use valence_inventory::*;
# use valence_server::client::Client;
fn system(clients: Query<(&Client, &Inventory)>) {}
Examples related to inventories in the valence/examples/
directory:
building
chest