pub struct JavaChunk {
pub data_version: i32,
pub level: Level,
}
Expand description
A Minecraft chunk.
Fields§
§data_version: i32
§level: Level
Implementations§
source§impl JavaChunk
impl JavaChunk
pub fn recalculate_heightmap(&self, mode: HeightMode)
Trait Implementations§
source§impl Chunk for JavaChunk
impl Chunk for JavaChunk
fn status(&self) -> String
source§fn surface_height(&self, x: usize, z: usize, mode: HeightMode) -> isize
fn surface_height(&self, x: usize, z: usize, mode: HeightMode) -> isize
Get the height of the first air-like block above something not air-like.
Will panic if given x/z coordinates outside of 0..16.
source§fn biome(&self, x: usize, y: isize, z: usize) -> Option<Biome>
fn biome(&self, x: usize, y: isize, z: usize) -> Option<Biome>
Get the biome of the given coordinate. A biome may not exist if the
section of the chunk accessed is not present. For example,
trying to access the block at height 1234 would return None.
source§impl<'de> Deserialize<'de> for JavaChunk
impl<'de> Deserialize<'de> for JavaChunk
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for JavaChunk
impl Send for JavaChunk
impl Sync for JavaChunk
impl Unpin for JavaChunk
impl UnwindSafe for JavaChunk
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