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 8eb9405 commit d32d712Copy full SHA for d32d712
crates/valence_protocol/src/item.rs
@@ -1,8 +1,8 @@
1
use std::io::Write;
2
3
-pub use valence_generated::item::ItemKind;
4
-use valence_nbt::{Compound, compound, List};
5
use uuid::Uuid;
+pub use valence_generated::item::ItemKind;
+use valence_nbt::{compound, Compound, List};
6
7
use crate::{Decode, Encode};
8
@@ -45,7 +45,10 @@ impl ItemStack {
45
}
46
47
#[must_use]
48
- pub fn with_playerhead_texture_value(mut self, texture_value: impl Into<String>) -> Result<Self, ()> {
+ pub fn with_playerhead_texture_value(
49
+ mut self,
50
+ texture_value: impl Into<String>,
51
+ ) -> Result<Self, ()> {
52
if self.item != ItemKind::PlayerHead {
53
return Err(());
54
0 commit comments