pub struct Region { /* private fields */ }Expand description
A structure that holds region data
Implementations§
Methods from Deref<Target = LocationAndTimestampTable>§
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§
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
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