also fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1217 also includes some bedrock work, but still broken
36 lines
965 B
Rust
36 lines
965 B
Rust
use pumpkin_macros::packet;
|
|
|
|
use crate::{
|
|
bedrock::client::start_game::Experiments, codec::var_uint::VarUInt, serial::PacketWrite,
|
|
};
|
|
|
|
#[derive(PacketWrite)]
|
|
#[packet(7)]
|
|
/// https://mojang.github.io/bedrock-protocol-docs/html/ResourcePackStackPacket.html
|
|
pub struct CResourcePackStackPacket {
|
|
resource_pack_required: bool,
|
|
addons_list_size: VarUInt,
|
|
game_version: String,
|
|
experiments: Experiments,
|
|
/// When connecting to an Editor world, include the vanilla editor packs in the stack
|
|
include_editor_packs: bool,
|
|
}
|
|
|
|
impl CResourcePackStackPacket {
|
|
pub fn new(
|
|
resource_pack_required: bool,
|
|
addons_list_size: VarUInt,
|
|
game_version: String,
|
|
experiments: Experiments,
|
|
include_editor_packs: bool,
|
|
) -> Self {
|
|
Self {
|
|
resource_pack_required,
|
|
addons_list_size,
|
|
game_version,
|
|
experiments,
|
|
include_editor_packs,
|
|
}
|
|
}
|
|
}
|