From 0569ffd2d85585eb69de9068ab3f62e768bce4e7 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 15 Dec 2025 14:59:26 +0700 Subject: write/update docs for several items --- azalea-world/src/chunk_storage.rs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'azalea-world/src/chunk_storage.rs') diff --git a/azalea-world/src/chunk_storage.rs b/azalea-world/src/chunk_storage.rs index 2e87fdf6..65dbbb7a 100644 --- a/azalea-world/src/chunk_storage.rs +++ b/azalea-world/src/chunk_storage.rs @@ -49,7 +49,16 @@ pub struct PartialChunkStorage { /// pointers. #[derive(Clone, Debug)] pub struct ChunkStorage { + /// The height of the world. + /// + /// To get the maximum y position (exclusive), you have to combine this with + /// [`Self::min_y`]. pub height: u32, + /// The lowest y position in the world that can still have blocks placed on + /// it. + /// + /// This exists because in modern Minecraft versions, worlds can extend + /// below y=0. pub min_y: i32, pub map: IntMap>>, } -- cgit v1.2.3