aboutsummaryrefslogtreecommitdiff
path: root/azalea-entity/src/plugin
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-10-08 03:24:29 -0500
committermat <git@matdoes.dev>2023-10-08 03:24:29 -0500
commit682609a24e62587094397aab13fda924aa44509e (patch)
tree91770fac7d43c3ac76991af5306453f16d4fa832 /azalea-entity/src/plugin
parent971f42e3dbee8de614573450fc9548c008f3b3b5 (diff)
downloadazalea-drasl-682609a24e62587094397aab13fda924aa44509e.tar.xz
knockback
Diffstat (limited to 'azalea-entity/src/plugin')
-rw-r--r--azalea-entity/src/plugin/indexing.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/azalea-entity/src/plugin/indexing.rs b/azalea-entity/src/plugin/indexing.rs
index 297949f6..3ae17f7b 100644
--- a/azalea-entity/src/plugin/indexing.rs
+++ b/azalea-entity/src/plugin/indexing.rs
@@ -26,6 +26,9 @@ pub struct EntityUuidIndex {
/// An index of Minecraft entity IDs to Azalea ECS entities. This is a
/// `Component` so local players can keep track of entity IDs independently from
/// the instance.
+///
+/// If you need a per-instance instead of per-client version of this, you can
+/// use [`Instance::entity_by_id`].
#[derive(Component, Default)]
pub struct EntityIdIndex {
/// An index of entities by their MinecraftEntityId