pub struct JSLevel {
pub worldSeed: i64,
pub changedBlocks: HashMap<String, ChangedBlocks>,
pub worldSize: i32,
pub version: u8,
}
Expand description
JSLevel struct stores the object format of a classic js level of type: {“worldSeed”:0,“changedBlocks”:{},“worldSize”:128,“version”:1} References the ChangedBlocks struct worldSeed: This is the seed of the world changedBlocks: This is an array of all changedBlocks in the world worldSize: This is the width/length of the world, must be 128, 256, or 512 version: Yeah, I have no clue what this is, but it’s seemingly always 1 so…
Fields§
§worldSeed: i64
§changedBlocks: HashMap<String, ChangedBlocks>
§worldSize: i32
§version: u8
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for JSLevel
impl<'de> Deserialize<'de> for JSLevel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for JSLevel
impl RefUnwindSafe for JSLevel
impl Send for JSLevel
impl Sync for JSLevel
impl Unpin for JSLevel
impl UnwindSafe for JSLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more