Basic handling of Set creative mod slot packet
This commit is contained in:
1 parent
9a10ea4ed9
commit
7b9b35e437
4 files changed
+27
-5
No files matched your search
@@ -8,6 +8,7 @@ mod s_player_command;
|
||||
mod s_player_position;
|
||||
mod s_player_position_rotation;
|
||||
mod s_player_rotation;
|
||||
mod s_set_creative_slot;
|
||||
mod s_set_held_item;
|
||||
mod s_swing_arm;
|
||||
mod s_use_item_on;
|
||||
@@ -22,6 +23,7 @@ pub use s_player_command::*;
|
||||
pub use s_player_position::*;
|
||||
pub use s_player_position_rotation::*;
|
||||
pub use s_player_rotation::*;
|
||||
pub use s_set_creative_slot::*;
|
||||
pub use s_set_held_item::*;
|
||||
pub use s_swing_arm::*;
|
||||
pub use s_use_item_on::*;
|
||||
@@ -0,0 +1,10 @@
|
||||
use pumpkin_macros::packet;
|
||||
|
||||
use crate::slot::Slot;
|
||||
|
||||
#[derive(serde::Deserialize, Debug)]
|
||||
#[packet(0x32)]
|
||||
pub struct SSetCreativeSlot {
|
||||
slot: i16,
|
||||
clicked_item: Slot,
|
||||
}
|
||||
Reference in new issue
Block a user