azalea_protocol/packets/game/
clientbound_game_event_packet.rsuse azalea_buf::McBuf;
use azalea_protocol_macros::ClientboundGamePacket;
#[derive(Clone, Debug, McBuf, ClientboundGamePacket)]
pub struct ClientboundGameEventPacket {
pub event: EventType,
pub param: f32,
}
#[derive(Clone, Debug, Copy, McBuf)]
pub enum EventType {
NoRespawnBlockAvailable = 0,
StartRaining = 1,
StopRaining = 2,
ChangeGameMode = 3,
WinGame = 4,
DemoEvent = 5,
ArrowHitPlayer = 6,
RainLevelChange = 7,
ThunderLevelChange = 8,
PufferFishSting = 9,
GuardianElderEffect = 10,
ImmediateRespawn = 11,
LimitedCrafting = 12,
WaitForLevelChunks = 13,
}