We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d32d712 commit 82084fcCopy full SHA for 82084fc
crates/valence_protocol/src/item.rs
@@ -44,6 +44,12 @@ impl ItemStack {
44
self
45
}
46
47
+ /// This function takes the "Value" of the skin you want to apply to a PlayerHead.
48
+ /// The "Value" is a Base64-encoded JSON object that is usually provided by websites.
49
+ /// To learn more: https://minecraft.wiki/w/Item_format#Player_Heads
50
+ ///
51
+ /// # Errors
52
+ /// This function returns an error if the [ItemStack] you call it on isn't a PlayerHead
53
#[must_use]
54
pub fn with_playerhead_texture_value(
55
mut self,
0 commit comments