Skip to content

Commit

Permalink
Add Registry Data packet
Browse files Browse the repository at this point in the history
  • Loading branch information
ya7on committed Nov 30, 2023
1 parent ccbf181 commit 0a0a772
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions mclib/protocol/src/packets/client.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pub mod login_success;
pub mod registry_data;
pub mod status_response;
11 changes: 11 additions & 0 deletions mclib/protocol/src/packets/client/registry_data.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
use crate::packets::base::MCPacket;
use crate::types::base::MCType;
use crate::types::nbt::MCNBT;
use crate::types::varint::MCVarInt;
use mclib_macros::MCPacket;

#[derive(MCPacket, Debug, Clone)]
#[packet(packet_id = 0x05)]
pub struct RegistryData {
registry_codec: MCNBT,
}

0 comments on commit 0a0a772

Please sign in to comment.