diff options
| author | mat <git@matdoes.dev> | 2026-03-05 03:48:48 -0530 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-03-05 03:48:48 -0530 |
| commit | 4e338230f7145a025b1d2a0ee1538bae4aebba8c (patch) | |
| tree | bddcdc8da76dcd12e92560e88d8e52fbab9a81a4 /azalea-block/src/lib.rs | |
| parent | 28a593311a8e76f9c54d81fc5b2c8ab474076090 (diff) | |
| download | azalea-drasl-4e338230f7145a025b1d2a0ee1538bae4aebba8c.tar.xz | |
optimized converting from blockstate to blockkind
Diffstat (limited to 'azalea-block/src/lib.rs')
| -rw-r--r-- | azalea-block/src/lib.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/azalea-block/src/lib.rs b/azalea-block/src/lib.rs index 60849b83..9e2a3c5c 100644 --- a/azalea-block/src/lib.rs +++ b/azalea-block/src/lib.rs @@ -31,7 +31,12 @@ pub trait BlockTrait: Debug + Any { /// /// This is a lossy conversion, as [`BlockKind`] doesn't contain any state /// data. - fn as_registry_block(&self) -> BlockKind; + fn as_block_kind(&self) -> BlockKind; + #[deprecated = "renamed to as_block_kind"] + #[doc(hidden)] + fn as_registry_block(&self) -> BlockKind { + self.as_block_kind() + } /// Returns a map of property names on this block to their values as /// strings. |
