valence/crates/valence_inventory
Carson McManus 09fbd9b7e7
Update to Minecraft 1.20.1 (#358)
## Description

Updates valence to Minecraft 1.20.1, which is protocol compatible with
1.20.

closes #357

---------

Co-authored-by: Ryan Johnson <ryanj00a@gmail.com>
Co-authored-by: AviiNL <me@avii.nl>
2023-06-13 14:38:55 -07:00
..
src Update to Minecraft 1.20.1 (#358) 2023-06-13 14:38:55 -07:00
Cargo.toml Reorganize Project (#321) 2023-04-21 14:43:59 -07:00
README.md Reorganize Project (#321) 2023-04-21 14:43:59 -07:00

valence_inventory

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.

Components

  • [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.

Examples

An example system that will let you access all player's inventories:

# use bevy_ecs::prelude::*;
# use valence_inventory::*;
# use valence_client::Client;
fn system(clients: Query<(&Client, &Inventory)>) {}

See also

Examples related to inventories in the valence/examples/ directory:

  • building
  • chest