From d028d7c3e9c84d177b7b10fa0d8f77d11bcea20f Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 2 Jun 2025 07:45:26 +1100 Subject: add basic support for getting biome ids in chunks --- azalea-block/src/block_state.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'azalea-block/src') diff --git a/azalea-block/src/block_state.rs b/azalea-block/src/block_state.rs index ab0ca076..dfa2a9b2 100644 --- a/azalea-block/src/block_state.rs +++ b/azalea-block/src/block_state.rs @@ -94,6 +94,12 @@ impl TryFrom for BlockState { } } } +impl From for u32 { + /// See [`BlockState::id`]. + fn from(value: BlockState) -> Self { + value.id as u32 + } +} impl AzaleaRead for BlockState { fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result { -- cgit v1.2.3