Pumpkin/pumpkin-protocol/src/bedrock/client/resource_pack_stack.rs
Alexander Medvedev e46459915c feat: Implement fireworks
also fix: https://github.com/Pumpkin-MC/Pumpkin/issues/1217
also includes some bedrock work, but still broken
2026-01-13 19:09:19 +01:00

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,
}
}
}