aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/s_player_input.rs
diff options
context:
space:
mode:
authormat <27899617+mat-1@users.noreply.github.com>2026-01-13 10:51:45 -0600
committerGitHub <noreply@github.com>2026-01-13 10:51:45 -0600
commitb21ac946cafaacc9ee2478ea48ed9e72554f79ed (patch)
tree4d05744b9801e94f5da6563d8fabddfb20d1c7b7 /azalea-protocol/src/packets/game/s_player_input.rs
parentd5fa5e32b37754b3b5c136e58821e48cd3b7c2ff (diff)
downloadazalea-drasl-b21ac946cafaacc9ee2478ea48ed9e72554f79ed.tar.xz
Merge AzaleaRead and AzaleaWrite (#305)
Diffstat (limited to 'azalea-protocol/src/packets/game/s_player_input.rs')
-rw-r--r--azalea-protocol/src/packets/game/s_player_input.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/azalea-protocol/src/packets/game/s_player_input.rs b/azalea-protocol/src/packets/game/s_player_input.rs
index e92d6101..46ebbcf6 100644
--- a/azalea-protocol/src/packets/game/s_player_input.rs
+++ b/azalea-protocol/src/packets/game/s_player_input.rs
@@ -1,7 +1,6 @@
use std::io::{self, Cursor, Write};
-use azalea_buf::BufReadError;
-use azalea_buf::{AzaleaRead, AzaleaWrite};
+use azalea_buf::{AzBuf, BufReadError};
use azalea_core::bitset::FixedBitSet;
use azalea_protocol_macros::ServerboundGamePacket;
@@ -16,7 +15,7 @@ pub struct ServerboundPlayerInput {
pub sprint: bool,
}
-impl AzaleaRead for ServerboundPlayerInput {
+impl AzBuf for ServerboundPlayerInput {
fn azalea_read(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> {
let set = FixedBitSet::<7>::azalea_read(buf)?;
Ok(Self {
@@ -29,9 +28,6 @@ impl AzaleaRead for ServerboundPlayerInput {
sprint: set.index(6),
})
}
-}
-
-impl AzaleaWrite for ServerboundPlayerInput {
fn azalea_write(&self, buf: &mut impl Write) -> io::Result<()> {
let mut set = FixedBitSet::<7>::new();
if self.forward {