Parse Registries from JSON

This commit is contained in:
Snowiiii committed 2024-11-02 16:34:35 +01:00
1 parent b090c34228
commit 9e7adec16b
32 files changed
+5771 -418

No files matched your search

+4 -10
View File
@@ -3,16 +3,10 @@ use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Painting {
asset_id: String,
// #[serde(skip_serializing_if = "Option::is_none")]
// title: Option<TextComponent<'static>>,
// #[serde(skip_serializing_if = "Option::is_none")]
// author: Option<TextComponent<'static>>,
height: i32,
width: i32,
}
impl Default for Painting {
fn default() -> Self {
Self {
asset_id: "minecraft:backyard".into(),
height: 2,
width: 2,
}
}
}