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
224 B
Rust
11 lines
224 B
Rust
use pumpkin_macros::server_packet;
|
|
|
|
use crate::slot::Slot;
|
|
|
|
#[derive(serde::Deserialize, Debug)]
|
|
#[server_packet("play:set_creative_mode_slot")]
|
|
pub struct SSetCreativeSlot {
|
|
pub slot: i16,
|
|
pub clicked_item: Slot,
|
|
}
|