Skip to content

Commit

Permalink
add doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
maxomatic458 committed Oct 23, 2024
1 parent da87c74 commit 7a9ce5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/valence_equipment/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ impl Plugin for EquipmentPlugin {
}
}

/// Contains the visible equipment of a [`LivingEntity`], such as armor and held
/// items. By default this is not synced with a player's [`Inventory`], so the

Check failure on line 40 in crates/valence_equipment/src/lib.rs

View workflow job for this annotation

GitHub Actions / Documentation

unresolved link to `Inventory`
/// armor the player has equipped in their inventory, will not be visible by
/// other players. You would have to change the equipment in this component here
/// or attach the [`EquipmentInventorySync`] component to the player
/// entity to sync the equipment with the inventory.
#[derive(Debug, Default, Clone, Component)]
pub struct Equipment {
equipment: [ItemStack; Self::SLOT_COUNT],
Expand Down

0 comments on commit 7a9ce5d

Please sign in to comment.