diff options
| author | mat <git@matdoes.dev> | 2025-02-01 20:35:57 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-02-01 20:35:57 +0000 |
| commit | 87c34e1c3355e2b950f3c6f4ae44dcdfb775bbca (patch) | |
| tree | f725697c27f1959a97d48d5ed6e4a25266dcdd6b /azalea-protocol/src/packets | |
| parent | 4aa5010ea2dec8633be29b0a06c9b2233d7a6522 (diff) | |
| download | azalea-drasl-87c34e1c3355e2b950f3c6f4ae44dcdfb775bbca.tar.xz | |
add failing test_set_health_before_login test
Diffstat (limited to 'azalea-protocol/src/packets')
| -rwxr-xr-x | azalea-protocol/src/packets/game/c_add_player.rs | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/azalea-protocol/src/packets/game/c_add_player.rs b/azalea-protocol/src/packets/game/c_add_player.rs deleted file mode 100755 index 7b36567d..00000000 --- a/azalea-protocol/src/packets/game/c_add_player.rs +++ /dev/null @@ -1,27 +0,0 @@ -use azalea_buf::AzBuf; -use azalea_core::{ResourceLocation, Vec3}; -use azalea_entity::{metadata::PlayerMetadataBundle, EntityBundle, PlayerBundle}; -use azalea_protocol_macros::ClientboundGamePacket; -use azalea_registry::EntityKind; -use uuid::Uuid; - -/// This packet is sent by the server when a player comes into visible range, -/// not when a player joins. -#[derive(Clone, Debug, AzBuf, ClientboundGamePacket)] -pub struct ClientboundAddPlayer { - #[var] - pub id: u32, - pub uuid: Uuid, - pub position: Vec3, - pub x_rot: i8, - pub y_rot: i8, -} - -impl ClientboundAddPlayer { - pub fn as_player_bundle(&self, world_name: ResourceLocation) -> PlayerBundle { - PlayerBundle { - entity: EntityBundle::new(self.uuid, self.position, EntityKind::Player, world_name), - metadata: PlayerMetadataBundle::default(), - } - } -} |
