aboutsummaryrefslogtreecommitdiff
path: root/azalea-registry/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-10-12 23:01:54 +0300
committermat <git@matdoes.dev>2025-10-12 23:01:54 +0300
commitee2575794e91b9457a74a95daf1dcc707058cd58 (patch)
treedf725850ef18ded5ce3f6552e17095d0f704ae84 /azalea-registry/src
parent1a1402954b07cd77615d0afc026c73b008787f51 (diff)
downloadazalea-drasl-ee2575794e91b9457a74a95daf1dcc707058cd58.tar.xz
upgrade deps and clean up lots of doc comments
Diffstat (limited to 'azalea-registry/src')
-rw-r--r--azalea-registry/src/lib.rs18
1 files changed, 11 insertions, 7 deletions
diff --git a/azalea-registry/src/lib.rs b/azalea-registry/src/lib.rs
index 6c1bf7af..88b154a2 100644
--- a/azalea-registry/src/lib.rs
+++ b/azalea-registry/src/lib.rs
@@ -29,8 +29,9 @@ where
fn to_u32(&self) -> u32;
}
-/// A registry that might not be present. This is transmitted as a single
-/// varint in the protocol.
+/// A registry that might not be present.
+///
+/// This is transmitted as a single varint in the protocol.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct OptionalRegistry<T: Registry>(pub Option<T>);
@@ -337,8 +338,10 @@ enum Attribute {
}
registry! {
-/// An enum of every type of block in the game. To represent a block *state*,
-/// use [`azalea_block::BlockState`] or [`azalea_block::BlockTrait`].
+/// An enum of every type of block in the game.
+///
+/// To represent a block *state*, use [`azalea_block::BlockState`] or
+/// [`azalea_block::BlockTrait`].
///
/// [`azalea_block::BlockState`]: https://docs.rs/azalea-block/latest/azalea_block/struct.BlockState.html
/// [`azalea_block::BlockTrait`]: https://docs.rs/azalea-block/latest/azalea_block/trait.BlockTrait.html
@@ -1513,9 +1516,10 @@ enum Block {
}
registry! {
-/// An enum that contains every type of block entity. A block entity is a block
-/// that contains data that can't be represented as just a block state, like
-/// how chests store items.
+/// An enum that contains every type of block entity.
+///
+/// A block entity is a block that contains data that can't be represented as
+/// just a block state, like how chests store items.
enum BlockEntityKind {
Furnace => "minecraft:furnace",
Chest => "minecraft:chest",