diff options
| author | mat <git@matdoes.dev> | 2025-06-02 11:51:03 -0600 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-06-02 11:51:03 -0600 |
| commit | c5ddae58a172289fffde991830bb79860421a961 (patch) | |
| tree | ec24421b4234a0d7d3ef660707a753b685ec920a /azalea-registry/src | |
| parent | 2c5f293210a09c99577a6999afd52357c898eaeb (diff) | |
| download | azalea-drasl-c5ddae58a172289fffde991830bb79860421a961.tar.xz | |
improve docs for biome code
Diffstat (limited to 'azalea-registry/src')
| -rw-r--r-- | azalea-registry/src/data.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/azalea-registry/src/data.rs b/azalea-registry/src/data.rs index 91e7106f..011835ed 100644 --- a/azalea-registry/src/data.rs +++ b/azalea-registry/src/data.rs @@ -24,7 +24,8 @@ impl<T: DataRegistry> Registry for T { } macro_rules! data_registry { - ($name:ident, $registry_name:expr) => { + ($(#[$doc:meta])* $name:ident, $registry_name:expr) => { + $(#[$doc])* #[derive(Debug, Clone, Copy, AzBuf, PartialEq, Eq, Hash)] pub struct $name { #[var] @@ -54,7 +55,15 @@ data_registry! {PigVariant, "pig_variant"} data_registry! {PaintingVariant, "painting_variant"} data_registry! {WolfVariant, "wolf_variant"} -data_registry! {Biome, "biome"} +data_registry! { + /// An opaque biome identifier. + /// + /// You'll probably want to resolve this into its name before using it, by + /// using `Client::with_resolved_registry` or a similar function. + Biome, + "worldgen/biome" +} + // these extra traits are required for Biome to be allowed to be palletable impl Default for Biome { fn default() -> Self { |
