mineome 0.2.0

Mineome is a Rust library focusing on providing high quality type definitions for the data-driven aspects of Minecraft Java Edition.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::{Range, RangeOrNumber};
use crate::internal_prelude::*;

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub struct PositionPredicateFragment<T> {
    pub x: RangeOrNumber<T>,
    pub y: RangeOrNumber<T>,
    pub z: RangeOrNumber<T>,
}

#[derive(Debug, Clone, PartialEq, Deserialize, Serialize)]
pub struct DistancePredicateFragment<T> {
    pub absolute: Option<Range<T>>,
    pub horizontal: Option<Range<T>>,
    pub x: Option<Range<T>>,
    pub y: Option<Range<T>>,
    pub z: Option<Range<T>>,
}