Parse Registries from JSON
This commit is contained in:
1 parent
b090c34228
commit
9e7adec16b
32 files changed
+5771
-418
No files matched your search
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user