add clientbound packet: CSetContainerProperty

This commit is contained in:
Edvin Bryntesson committed 2024-08-23 11:51:12 +02:00
1 parent 7c2b650bdb
commit 85f7ab041a
2 files changed
+21

No files matched your search

@@ -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
}
}
}
+2
View File
@@ -37,6 +37,7 @@ mod c_update_entity_rot;
mod c_worldevent; mod c_worldevent;
mod player_action; mod player_action;
mod c_close_container; mod c_close_container;
mod c_set_container_property;
pub use c_acknowledge_block::*; pub use c_acknowledge_block::*;
pub use c_actionbar::*; pub use c_actionbar::*;
@@ -77,3 +78,4 @@ pub use c_update_entity_rot::*;
pub use c_worldevent::*; pub use c_worldevent::*;
pub use player_action::*; pub use player_action::*;
pub use c_close_container::*; pub use c_close_container::*;
pub use c_set_container_property::*;