aboutsummaryrefslogtreecommitdiff
path: root/azalea-block/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-block/src')
-rwxr-xr-xazalea-block/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/azalea-block/src/lib.rs b/azalea-block/src/lib.rs
index dc41b405..2a46fd01 100755
--- a/azalea-block/src/lib.rs
+++ b/azalea-block/src/lib.rs
@@ -59,6 +59,8 @@ impl BlockState {
state_id <= Self::max_state()
}
+ /// Returns true if the block is air. This only checks for normal air, not
+ /// other types like cave air.
#[inline]
pub fn is_air(&self) -> bool {
self == &Self::AIR