feat(client): add last few fields and methods

This commit is contained in:
2025-02-17 15:07:31 -05:00
parent 21cc1a5488
commit 8f2fbf11da
2 changed files with 16 additions and 5 deletions

View File

@@ -21,6 +21,10 @@ pub fn block_interact(_lua: &Lua, client: &mut Client, position: Vec3) -> Result
Ok(())
}
pub fn has_attack_cooldown(_lua: &Lua, client: &Client) -> Result<bool> {
Ok(client.inner.as_ref().unwrap().has_attack_cooldown())
}
pub async fn mine(_lua: Lua, client: UserDataRef<Client>, position: Vec3) -> Result<()> {
#[allow(clippy::cast_possible_truncation)]
client