[−][src]Struct minecraft_regions_tool::region_file::Locations
Implementations
impl Locations
[src]
pub fn from_bytes(bytes: &[u8; 4096]) -> Self
[src]
pub fn to_bytes(&self) -> Vec<u8>
[src]
Returns the byte representation of the locations table
pub fn get_chunk_offset(&self, x: usize, z: usize) -> Option<u32>
[src]
Returns the offset of a chunk
pub fn get_chunk_sectors(&self, x: usize, z: usize) -> Option<u8>
[src]
Returns the number of sectors for a chunk
pub fn valid_entries(&self) -> Vec<(u32, u8)>
[src]
Returns chunk entry list
pub fn set_entries(&mut self, entries: Vec<(u32, u8)>)
[src]
Replaces the entry list with a new one
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Locations
impl Send for Locations
impl Sync for Locations
impl Unpin for Locations
impl UnwindSafe for Locations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,