Add Serverbound Client Tick End
This commit is contained in:
parent
3c7106af0b
commit
f30da32848
@ -2,6 +2,7 @@ mod s_chat_command;
|
||||
mod s_chat_message;
|
||||
mod s_click_container;
|
||||
mod s_client_information;
|
||||
mod s_client_tick_end;
|
||||
mod s_close_container;
|
||||
mod s_confirm_teleport;
|
||||
mod s_interact;
|
||||
@ -24,6 +25,7 @@ pub use s_chat_command::*;
|
||||
pub use s_chat_message::*;
|
||||
pub use s_click_container::*;
|
||||
pub use s_client_information::*;
|
||||
pub use s_client_tick_end::*;
|
||||
pub use s_close_container::*;
|
||||
pub use s_confirm_teleport::*;
|
||||
pub use s_interact::*;
|
||||
|
||||
5
pumpkin-protocol/src/server/play/s_client_tick_end.rs
Normal file
5
pumpkin-protocol/src/server/play/s_client_tick_end.rs
Normal file
@ -0,0 +1,5 @@
|
||||
use pumpkin_macros::server_packet;
|
||||
|
||||
#[derive(serde::Deserialize)]
|
||||
#[server_packet("play:client_tick_end")]
|
||||
pub struct SClientTickEnd {}
|
||||
@ -28,10 +28,10 @@ use pumpkin_protocol::{
|
||||
PlayerAction,
|
||||
},
|
||||
server::play::{
|
||||
SChatCommand, SChatMessage, SClientInformationPlay, SConfirmTeleport, SInteract,
|
||||
SPlayerAbilities, SPlayerAction, SPlayerCommand, SPlayerPosition, SPlayerPositionRotation,
|
||||
SPlayerRotation, SSetCreativeSlot, SSetHeldItem, SSetPlayerGround, SSwingArm, SUseItem,
|
||||
SUseItemOn,
|
||||
SChatCommand, SChatMessage, SClientInformationPlay, SClientTickEnd, SConfirmTeleport,
|
||||
SInteract, SPlayerAbilities, SPlayerAction, SPlayerCommand, SPlayerPosition,
|
||||
SPlayerPositionRotation, SPlayerRotation, SSetCreativeSlot, SSetHeldItem, SSetPlayerGround,
|
||||
SSwingArm, SUseItem, SUseItemOn,
|
||||
},
|
||||
RawPacket, ServerPacket, SoundCategory, VarInt,
|
||||
};
|
||||
@ -681,6 +681,9 @@ impl Player {
|
||||
SKeepAlive::PACKET_ID => {
|
||||
self.handle_keep_alive(SKeepAlive::read(bytebuf)?).await;
|
||||
}
|
||||
SClientTickEnd::PACKET_ID => {
|
||||
// TODO
|
||||
}
|
||||
SPlayerPosition::PACKET_ID => {
|
||||
self.handle_position(SPlayerPosition::read(bytebuf)?).await;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user