aboutsummaryrefslogtreecommitdiff
path: root/azalea-entity/src/inventory.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2026-01-12 02:09:41 -0600
committerGitHub <noreply@github.com>2026-01-12 02:09:41 -0600
commit1accbac964168af5fa0d87cb170389f0a9d01363 (patch)
tree1509b26c19beaa23a492289f6bf00d3958be44d5 /azalea-entity/src/inventory.rs
parent58339b9d229592dee40e15b8648fe4075cc391f4 (diff)
downloadazalea-drasl-1accbac964168af5fa0d87cb170389f0a9d01363.tar.xz
Make Bevy dependencies optional in azalea-protocol (#303)
* Make Bevy dependencies optional in azalea-protocol * derive serde traits on Direction again * update docs for types that may not have Component
Diffstat (limited to 'azalea-entity/src/inventory.rs')
-rw-r--r--azalea-entity/src/inventory.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/azalea-entity/src/inventory.rs b/azalea-entity/src/inventory.rs
index aa13865e..fe3921ef 100644
--- a/azalea-entity/src/inventory.rs
+++ b/azalea-entity/src/inventory.rs
@@ -10,12 +10,13 @@ use azalea_inventory::{
QuickCraftStatusKind, QuickMoveClick, ThrowClick,
},
};
-use bevy_ecs::prelude::*;
use crate::PlayerAbilities;
-/// A component present on all local players that have an inventory.
-#[derive(Clone, Component, Debug)]
+/// A local player's inventory and related data, including the container that
+/// they may have opened.
+#[cfg_attr(feature = "bevy_ecs", derive(bevy_ecs::component::Component))]
+#[derive(Clone, Debug)]
pub struct Inventory {
/// The player's inventory menu. This is guaranteed to be a `Menu::Player`.
///