Pumpkin/pumpkin-registry/src/paint.rs
2024-12-21 17:05:44 +01:00

14 lines
432 B
Rust

use pumpkin_protocol::codec::identifier::Identifier;
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Painting {
asset_id: Identifier,
// #[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,
}