pub struct ServerboundPlaySelectBundleItem {
pub slot_id: i32,
pub selected_item_index: i32,
}Fields§
§slot_id: i32§selected_item_index: i32Implementations§
Source§impl ServerboundPlaySelectBundleItem
impl ServerboundPlaySelectBundleItem
Sourcepub const PACKET_ID: i32 = 2i32
pub const PACKET_ID: i32 = 2i32
The packet ID used by the registry to dispatch this packet.
This value is declared via #[packet(id = N)] and corresponds to
the VarInt packet ID read/written by the framing layer. The struct’s
own Encode/Decode does NOT include this ID — it only encodes the
packet’s payload fields.
Trait Implementations§
Source§impl Clone for ServerboundPlaySelectBundleItem
impl Clone for ServerboundPlaySelectBundleItem
Source§fn clone(&self) -> ServerboundPlaySelectBundleItem
fn clone(&self) -> ServerboundPlaySelectBundleItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ServerboundPlaySelectBundleItem
impl Default for ServerboundPlaySelectBundleItem
Source§fn default() -> ServerboundPlaySelectBundleItem
fn default() -> ServerboundPlaySelectBundleItem
Returns the “default value” for a type. Read more
Source§impl EncodedSize for ServerboundPlaySelectBundleItem
impl EncodedSize for ServerboundPlaySelectBundleItem
fn encoded_size(&self) -> usize
Source§impl PartialEq for ServerboundPlaySelectBundleItem
impl PartialEq for ServerboundPlaySelectBundleItem
Source§fn eq(&self, other: &ServerboundPlaySelectBundleItem) -> bool
fn eq(&self, other: &ServerboundPlaySelectBundleItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ServerboundPlaySelectBundleItem
Auto Trait Implementations§
impl Freeze for ServerboundPlaySelectBundleItem
impl RefUnwindSafe for ServerboundPlaySelectBundleItem
impl Send for ServerboundPlaySelectBundleItem
impl Sync for ServerboundPlaySelectBundleItem
impl Unpin for ServerboundPlaySelectBundleItem
impl UnsafeUnpin for ServerboundPlaySelectBundleItem
impl UnwindSafe for ServerboundPlaySelectBundleItem
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