pub struct PlayPacketIds {
pub unsigned_command: i32,
pub signed_command: i32,
pub start_configuration: i32,
pub acknowledge_configuration: i32,
pub keep_alive: i32,
pub system_chat: i32,
}Expand description
Version-specific PLAY packet IDs.
Minecraft remaps packet IDs between minor versions, so we need a lookup per protocol version for the handful of packets the proxy inspects.
Fields§
§unsigned_command: i32Serverbound: unsigned player command (command string without /).
signed_command: i32Serverbound: signed player command (command string + crypto fields).
start_configuration: i32Clientbound: start configuration (tells client to enter CONFIG).
acknowledge_configuration: i32Serverbound: acknowledge configuration (client confirms CONFIG switch).
keep_alive: i32Clientbound: keep alive.
system_chat: i32Clientbound: system chat message.
Implementations§
Source§impl PlayPacketIds
impl PlayPacketIds
Sourcepub const fn for_version(version: ProtocolVersion) -> Self
pub const fn for_version(version: ProtocolVersion) -> Self
Get the PLAY packet IDs for a given protocol version.
Auto Trait Implementations§
impl Freeze for PlayPacketIds
impl RefUnwindSafe for PlayPacketIds
impl Send for PlayPacketIds
impl Sync for PlayPacketIds
impl Unpin for PlayPacketIds
impl UnsafeUnpin for PlayPacketIds
impl UnwindSafe for PlayPacketIds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more