Skip to main content

steel_protocol/packets/game/
c_cooldown.rs

1//! Clientbound item cooldown packet.
2
3use steel_macros::{ClientPacket, WriteTo};
4use steel_registry::packets::play::C_COOLDOWN;
5use steel_utils::Identifier;
6
7/// Starts or clears a client-side item cooldown group.
8#[derive(ClientPacket, WriteTo, Clone, Debug)]
9#[packet_id(Play = C_COOLDOWN)]
10pub struct CCooldown {
11    pub cooldown_group: Identifier,
12    #[write(as = VarInt)]
13    pub duration: i32,
14}