Struct level_lib::anvil::region::chunk::chunk_data::StructureDataList
source · pub struct StructureDataList {
pub structure_references: Vec<(String, Vec<[u32; 2]>)>,
pub starts: Vec<(String, ChunkDataHolder)>,
}Expand description
Struct to hold all structure data of a Chunk
Fields§
§structure_references: Vec<(String, Vec<[u32; 2]>)>A list of the structure coordinates withing one chunk
§Note
In NBT it’s represented as an i64 (x << 32) | y
starts: Vec<(String, ChunkDataHolder)>Structures that are yet to be generated, stored by general type. Some parts of the structures may have already been generated. Completely generated structures are removed by setting their id to “INVALID” and removing all other tags.
Implementations§
Trait Implementations§
source§impl AsNbtValue for StructureDataList
impl AsNbtValue for StructureDataList
source§impl Debug for StructureDataList
impl Debug for StructureDataList
source§impl FromNbtValue for StructureDataList
impl FromNbtValue for StructureDataList
source§impl PartialEq for StructureDataList
impl PartialEq for StructureDataList
source§fn eq(&self, other: &StructureDataList) -> bool
fn eq(&self, other: &StructureDataList) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for StructureDataList
Auto Trait Implementations§
impl Freeze for StructureDataList
impl RefUnwindSafe for StructureDataList
impl Send for StructureDataList
impl Sync for StructureDataList
impl Unpin for StructureDataList
impl UnwindSafe for StructureDataList
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