A very rude implementation for Tile-Entity Search

This commit is contained in:
Chaoscaot
2023-03-21 14:21:30 +01:00
parent b8d912881d
commit d48910ecb4
5 changed files with 59 additions and 39 deletions

View File

@ -62,6 +62,9 @@ pub struct BlockEntity {
pub id: String,
#[serde(rename = "Pos")]
pub pos: [i32; 3],
#[serde(flatten)]
pub data: Map<String, Value>,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
@ -70,6 +73,9 @@ pub struct Entity {
pub id: String,
#[serde(rename = "Pos")]
pub pos: [i32; 3],
#[serde(flatten)]
pub data: Map<String, Value>,
}
impl Schematic {