Skip to content

Commit

Permalink
add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
NotThatRqd committed Jun 4, 2024
1 parent b4d8e41 commit 0b5d8d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/valence_protocol/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ impl ItemStack {
self

Check warning on line 44 in crates/valence_protocol/src/item.rs

View workflow job for this annotation

GitHub Actions / Formatting

Diff in /home/runner/work/valence/valence/crates/valence_protocol/src/item.rs
}

/// This function takes the "Value" of the skin you want to apply to a PlayerHead.
/// The "Value" is a Base64-encoded JSON object that is usually provided by websites.
/// To learn more: https://minecraft.wiki/w/Item_format#Player_Heads

Check failure on line 49 in crates/valence_protocol/src/item.rs

View workflow job for this annotation

GitHub Actions / Documentation

this URL is not a hyperlink
///
/// # Errors
/// This function returns an error if the [ItemStack] you call it on isn't a PlayerHead
#[must_use]
pub fn with_playerhead_texture_value(
mut self,
Expand Down

0 comments on commit 0b5d8d7

Please sign in to comment.