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_chat_message;
|
||||||
mod s_click_container;
|
mod s_click_container;
|
||||||
mod s_client_information;
|
mod s_client_information;
|
||||||
|
mod s_client_tick_end;
|
||||||
mod s_close_container;
|
mod s_close_container;
|
||||||
mod s_confirm_teleport;
|
mod s_confirm_teleport;
|
||||||
mod s_interact;
|
mod s_interact;
|
||||||
@ -24,6 +25,7 @@ pub use s_chat_command::*;
|
|||||||
pub use s_chat_message::*;
|
pub use s_chat_message::*;
|
||||||
pub use s_click_container::*;
|
pub use s_click_container::*;
|
||||||
pub use s_client_information::*;
|
pub use s_client_information::*;
|
||||||
|
pub use s_client_tick_end::*;
|
||||||
pub use s_close_container::*;
|
pub use s_close_container::*;
|
||||||
pub use s_confirm_teleport::*;
|
pub use s_confirm_teleport::*;
|
||||||
pub use s_interact::*;
|
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,
|
PlayerAction,
|
||||||
},
|
},
|
||||||
server::play::{
|
server::play::{
|
||||||
SChatCommand, SChatMessage, SClientInformationPlay, SConfirmTeleport, SInteract,
|
SChatCommand, SChatMessage, SClientInformationPlay, SClientTickEnd, SConfirmTeleport,
|
||||||
SPlayerAbilities, SPlayerAction, SPlayerCommand, SPlayerPosition, SPlayerPositionRotation,
|
SInteract, SPlayerAbilities, SPlayerAction, SPlayerCommand, SPlayerPosition,
|
||||||
SPlayerRotation, SSetCreativeSlot, SSetHeldItem, SSetPlayerGround, SSwingArm, SUseItem,
|
SPlayerPositionRotation, SPlayerRotation, SSetCreativeSlot, SSetHeldItem, SSetPlayerGround,
|
||||||
SUseItemOn,
|
SSwingArm, SUseItem, SUseItemOn,
|
||||||
},
|
},
|
||||||
RawPacket, ServerPacket, SoundCategory, VarInt,
|
RawPacket, ServerPacket, SoundCategory, VarInt,
|
||||||
};
|
};
|
||||||
@ -681,6 +681,9 @@ impl Player {
|
|||||||
SKeepAlive::PACKET_ID => {
|
SKeepAlive::PACKET_ID => {
|
||||||
self.handle_keep_alive(SKeepAlive::read(bytebuf)?).await;
|
self.handle_keep_alive(SKeepAlive::read(bytebuf)?).await;
|
||||||
}
|
}
|
||||||
|
SClientTickEnd::PACKET_ID => {
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
SPlayerPosition::PACKET_ID => {
|
SPlayerPosition::PACKET_ID => {
|
||||||
self.handle_position(SPlayerPosition::read(bytebuf)?).await;
|
self.handle_position(SPlayerPosition::read(bytebuf)?).await;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user