aboutsummaryrefslogtreecommitdiff
path: root/azalea-client
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2023-02-10 01:56:45 +0000
committerUbuntu <github@matdoes.dev>2023-02-10 01:56:45 +0000
commit9d4f738d4e66adf0796e163d1c9368aaba906bba (patch)
treeae7b3c7fca0ff054eb67c1311955e9321a37e559 /azalea-client
parent48b2a37aa09f0302b40d0678cdde2703f919ed18 (diff)
downloadazalea-drasl-9d4f738d4e66adf0796e163d1c9368aaba906bba.tar.xz
make blockstate good
Diffstat (limited to 'azalea-client')
-rw-r--r--azalea-client/src/client.rs3
-rw-r--r--azalea-client/src/entity_query.rs1
2 files changed, 3 insertions, 1 deletions
diff --git a/azalea-client/src/client.rs b/azalea-client/src/client.rs
index 8b6932e5..402bebc5 100644
--- a/azalea-client/src/client.rs
+++ b/azalea-client/src/client.rs
@@ -378,7 +378,8 @@ impl Client {
/// # Examples
///
/// ```
- /// # fn example(client: &azalea::Client) {
+ /// # use azalea_world::entity::WorldName;
+ /// # fn example(client: &azalea_client::Client) {
/// let world_name = client.component::<WorldName>();
/// # }
pub fn component<T: Component + Clone>(&self) -> T {
diff --git a/azalea-client/src/entity_query.rs b/azalea-client/src/entity_query.rs
index 7ac0e325..e39a7d2f 100644
--- a/azalea-client/src/entity_query.rs
+++ b/azalea-client/src/entity_query.rs
@@ -15,6 +15,7 @@ impl Client {
///
/// # Examples
/// ```
+ /// # use azalea_world::entity::WorldName;
/// # fn example(mut client: azalea_client::Client) {
/// let is_logged_in = client
/// .query::<Option<&WorldName>>(&mut client.ecs.lock())