add clientbound packet: CSetContainerProperty
This commit is contained in:
parent
7c2b650bdb
commit
85f7ab041a
19
pumpkin-protocol/src/client/play/c_set_container_property.rs
Normal file
19
pumpkin-protocol/src/client/play/c_set_container_property.rs
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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::*;
|
||||
Loading…
Reference in New Issue
Block a user