Struct level_lib::anvil::region::LocationAndTimestampTable
source · pub struct LocationAndTimestampTable { /* private fields */ }Expand description
The location table of the Region
Implementations§
source§impl LocationAndTimestampTable
impl LocationAndTimestampTable
sourcepub fn from_bytes(bytes: [u8; 8192]) -> Self
pub fn from_bytes(bytes: [u8; 8192]) -> Self
reads the location and timestamp table from bytes
sourcepub fn get_timestamp(&self, x: isize, z: isize) -> u32
pub fn get_timestamp(&self, x: isize, z: isize) -> u32
Returns the requested timestamp of a region
sourcepub fn get_timestamp_time(&self, x: isize, z: isize) -> SystemTime
pub fn get_timestamp_time(&self, x: isize, z: isize) -> SystemTime
Returns the requested timestamp of a region as SystemTime
sourcepub fn set_timestamp(&mut self, x: isize, z: isize, value: u32)
pub fn set_timestamp(&mut self, x: isize, z: isize, value: u32)
Sets the timestamp of a chunk
sourcepub fn set_timestamp_table(&mut self, value: [u32; 1024])
pub fn set_timestamp_table(&mut self, value: [u32; 1024])
Set the timestamp table
Trait Implementations§
source§impl Default for LocationAndTimestampTable
impl Default for LocationAndTimestampTable
Auto Trait Implementations§
impl Freeze for LocationAndTimestampTable
impl RefUnwindSafe for LocationAndTimestampTable
impl Send for LocationAndTimestampTable
impl Sync for LocationAndTimestampTable
impl Unpin for LocationAndTimestampTable
impl UnwindSafe for LocationAndTimestampTable
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