mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
Merge pull request #57 from kralverde/unload_chunk_packet
Implement the unload chunk packet
This commit is contained in:
15
pumpkin-protocol/src/client/play/c_unload_chunk.rs
Normal file
15
pumpkin-protocol/src/client/play/c_unload_chunk.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
use pumpkin_macros::packet;
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Serialize)]
|
||||
#[packet(0x21)]
|
||||
pub struct CUnloadChunk {
|
||||
z: i32,
|
||||
x: i32,
|
||||
}
|
||||
|
||||
impl CUnloadChunk {
|
||||
pub fn new(x: i32, z: i32) -> Self {
|
||||
Self { z, x }
|
||||
}
|
||||
}
|
||||
@@ -30,6 +30,7 @@ mod c_spawn_player;
|
||||
mod c_subtitle;
|
||||
mod c_sync_player_position;
|
||||
mod c_system_chat_message;
|
||||
mod c_unload_chunk;
|
||||
mod c_update_entitiy_pos_rot;
|
||||
mod c_update_entity_pos;
|
||||
mod c_update_entity_rot;
|
||||
@@ -68,6 +69,7 @@ pub use c_spawn_player::*;
|
||||
pub use c_subtitle::*;
|
||||
pub use c_sync_player_position::*;
|
||||
pub use c_system_chat_message::*;
|
||||
pub use c_unload_chunk::*;
|
||||
pub use c_update_entitiy_pos_rot::*;
|
||||
pub use c_update_entity_pos::*;
|
||||
pub use c_update_entity_rot::*;
|
||||
|
||||
Reference in New Issue
Block a user