pub struct ClientboundPlayMapChunk {
pub x: i32,
pub z: i32,
pub heightmaps: NbtCompound,
pub chunk_data: Vec<u8>,
pub block_entities: Vec<ClientboundPlayMapChunkChunkblockentity>,
pub sky_light_mask: Vec<i64>,
pub block_light_mask: Vec<i64>,
pub empty_sky_light_mask: Vec<i64>,
pub empty_block_light_mask: Vec<i64>,
pub sky_light: Vec<Vec<u8>>,
pub block_light: Vec<Vec<u8>>,
}Fields§
§x: i32§z: i32§heightmaps: NbtCompound§chunk_data: Vec<u8>§block_entities: Vec<ClientboundPlayMapChunkChunkblockentity>§sky_light_mask: Vec<i64>§block_light_mask: Vec<i64>§empty_sky_light_mask: Vec<i64>§empty_block_light_mask: Vec<i64>§sky_light: Vec<Vec<u8>>§block_light: Vec<Vec<u8>>Implementations§
Source§impl ClientboundPlayMapChunk
impl ClientboundPlayMapChunk
Sourcepub const PACKET_ID: i32 = 40i32
pub const PACKET_ID: i32 = 40i32
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 ClientboundPlayMapChunk
impl Clone for ClientboundPlayMapChunk
Source§fn clone(&self) -> ClientboundPlayMapChunk
fn clone(&self) -> ClientboundPlayMapChunk
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 Debug for ClientboundPlayMapChunk
impl Debug for ClientboundPlayMapChunk
Source§impl Default for ClientboundPlayMapChunk
impl Default for ClientboundPlayMapChunk
Source§fn default() -> ClientboundPlayMapChunk
fn default() -> ClientboundPlayMapChunk
Returns the “default value” for a type. Read more
Source§impl Encode for ClientboundPlayMapChunk
impl Encode for ClientboundPlayMapChunk
Source§impl EncodedSize for ClientboundPlayMapChunk
impl EncodedSize for ClientboundPlayMapChunk
fn encoded_size(&self) -> usize
Source§impl PartialEq for ClientboundPlayMapChunk
impl PartialEq for ClientboundPlayMapChunk
impl StructuralPartialEq for ClientboundPlayMapChunk
Auto Trait Implementations§
impl Freeze for ClientboundPlayMapChunk
impl RefUnwindSafe for ClientboundPlayMapChunk
impl Send for ClientboundPlayMapChunk
impl Sync for ClientboundPlayMapChunk
impl Unpin for ClientboundPlayMapChunk
impl UnsafeUnpin for ClientboundPlayMapChunk
impl UnwindSafe for ClientboundPlayMapChunk
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