From 0b5d8d744eecf5df6c4abab0b3b6f8748714df8a Mon Sep 17 00:00:00 2001 From: NotThatRqd <67846317+NotThatRqd@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:08:20 -0700 Subject: [PATCH] add documentation --- crates/valence_protocol/src/item.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/valence_protocol/src/item.rs b/crates/valence_protocol/src/item.rs index 90fbf3310..9e72e049e 100644 --- a/crates/valence_protocol/src/item.rs +++ b/crates/valence_protocol/src/item.rs @@ -44,6 +44,12 @@ impl ItemStack { self } + /// 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 + /// + /// # 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,