[][src]Struct minecraft_regions_tool::region_file::Locations

pub struct Locations { /* fields omitted */ }

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

impl Debug for Locations[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.