mirror of
https://github.com/Pumpkin-MC/Pumpkin.git
synced 2026-08-30 20:14:23 +00:00
* chore(bedrock): Update most of the packets to mirror the official docs more closely. * Fix typo * Fix CCreativeContent * Undo unrelated `registry.rs` change * Update WIT to merged PR --------- Signed-off-by: Demetrius Kanios <demetrius@kanios.net>
19 lines
318 B
Rust
19 lines
318 B
Rust
// Last verified for v2169
|
|
|
|
use pumpkin_macros::packet;
|
|
|
|
use crate::{codec::var_int::VarInt, serial::PacketWrite};
|
|
|
|
#[derive(PacketWrite)]
|
|
#[packet(10)]
|
|
pub struct CSetTime {
|
|
pub time: VarInt,
|
|
}
|
|
|
|
impl CSetTime {
|
|
#[must_use]
|
|
pub const fn new(time: i32) -> Self {
|
|
Self { time: VarInt(time) }
|
|
}
|
|
}
|