aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2025-12-27 16:43:38 -1100
committermat <git@matdoes.dev>2025-12-27 16:43:38 -1100
commit588902ba4a3965982bdd84d92b20c6f7613f3978 (patch)
tree1d7321301869fb7b948ed4ef28e3fec9aa550f20
parente63b86ddad694073029e33bb54296f3c2b3375be (diff)
downloadazalea-drasl-588902ba4a3965982bdd84d92b20c6f7613f3978.tar.xz
additional doc aliases for Instance and InstanceName
-rw-r--r--azalea-world/src/container.rs2
-rw-r--r--azalea-world/src/lib.rs2
-rw-r--r--azalea-world/src/world.rs1
3 files changed, 3 insertions, 2 deletions
diff --git a/azalea-world/src/container.rs b/azalea-world/src/container.rs
index f6966f3c..97bc2a1f 100644
--- a/azalea-world/src/container.rs
+++ b/azalea-world/src/container.rs
@@ -94,5 +94,5 @@ impl InstanceContainer {
/// If two entities share the same instance name, we assume they're in the
/// same instance.
#[derive(Clone, Component, Debug, Deref, DerefMut, Eq, Hash, PartialEq)]
-#[doc(alias("worldname", "world name"))]
+#[doc(alias("worldname", "world name", "dimension"))]
pub struct InstanceName(pub Identifier);
diff --git a/azalea-world/src/lib.rs b/azalea-world/src/lib.rs
index eea574c1..7212c519 100644
--- a/azalea-world/src/lib.rs
+++ b/azalea-world/src/lib.rs
@@ -12,5 +12,5 @@ mod world;
pub use bit_storage::BitStorage;
pub use chunk_storage::{Chunk, ChunkStorage, PartialChunkStorage, Section};
-pub use container::*;
+pub use container::{InstanceContainer, InstanceName};
pub use world::*;
diff --git a/azalea-world/src/world.rs b/azalea-world/src/world.rs
index c2ba6749..26856fff 100644
--- a/azalea-world/src/world.rs
+++ b/azalea-world/src/world.rs
@@ -151,6 +151,7 @@ impl PartialEntityInfos {
/// This is sometimes interchangeably called a "world". However, this type is
/// called `Instance` to avoid colliding with the `World` type from Bevy ECS.
#[derive(Debug, Default)]
+#[doc(alias("world", "dimension"))]
pub struct Instance {
pub chunks: ChunkStorage,