From 5c0e5b1eb3edfdbf1542173f3cc9efcff18be511 Mon Sep 17 00:00:00 2001 From: mat Date: Tue, 3 Jun 2025 07:40:53 +1200 Subject: sort entities_by by distance and improve some docs --- azalea-registry/src/lib.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'azalea-registry/src') diff --git a/azalea-registry/src/lib.rs b/azalea-registry/src/lib.rs index 56e20028..6fb089d2 100644 --- a/azalea-registry/src/lib.rs +++ b/azalea-registry/src/lib.rs @@ -1883,6 +1883,16 @@ enum IntProviderKind { } registry! { +/// Every type of item in the game. +/// +/// You might find it useful in some cases to check for categories of items +/// with [`azalea_registry::tags::items`](crate::tags::items), like this +/// +/// ``` +/// let item = azalea_registry::Item::OakLog; +/// let is_log = azalea_registry::tags::items::LOGS.contains(&item); +/// assert!(is_log); +/// ``` enum Item { Air => "minecraft:air", Stone => "minecraft:stone", -- cgit v1.2.3