Before only Clientbound Packet IDs where parsed from JSON, Now Serverbound Packet IDs are parsed from JSON as well. This makes porting to new minecraft version much easier
11 lines
236 B
Rust
11 lines
236 B
Rust
use pumpkin_macros::server_packet;
|
|
|
|
use crate::VarInt;
|
|
|
|
#[derive(serde::Deserialize)]
|
|
#[server_packet("configuration:select_known_packs")]
|
|
pub struct SKnownPacks {
|
|
pub known_pack_count: VarInt,
|
|
// known_packs: &'a [KnownPack]
|
|
}
|