add clientbound packet: CSetContainerProperty
This commit is contained in:
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
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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::*;
|
||||
@@ -77,3 +78,4 @@ pub use c_update_entity_rot::*;
|
||||
pub use c_worldevent::*;
|
||||
pub use player_action::*;
|
||||
pub use c_close_container::*;
|
||||
pub use c_set_container_property::*;
|
||||
Reference in new issue
Block a user