add clientbound packet: CSetContainerProperty

This commit is contained in:
Edvin Bryntesson 2024-08-23 11:51:12 +02:00
parent 7c2b650bdb
commit 85f7ab041a
No known key found for this signature in database
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,19 @@
use serde::Serialize;
use pumpkin_macros::packet;
#[derive(Serialize)]
#[packet(0x14)]
pub struct CSetContainerProperty {
window_id: u8,
property: i16,
value: i16
}
impl CSetContainerProperty {
pub const fn new(window_id: u8, property: i16, value:i16) -> Self {
Self {
window_id,
property,
value
}
}
}

View File

@ -37,6 +37,7 @@ mod c_update_entity_rot;
mod c_worldevent;
mod player_action;
mod c_close_container;
mod c_set_container_property;
pub use c_acknowledge_block::*;
pub use c_actionbar::*;
@ -76,4 +77,5 @@ pub use c_update_entity_pos::*;
pub use c_update_entity_rot::*;
pub use c_worldevent::*;
pub use player_action::*;
pub use c_close_container::*;
pub use c_close_container::*;
pub use c_set_container_property::*;