pub enum JavaChunk {
Post18(CurrentJavaChunk),
Pre18(JavaChunk),
Pre13(JavaChunk),
}
Expand description
A Minecraft chunk.
Variants§
Implementations§
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.