aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_game_event.rs
blob: 3081421c954cf59397a25439e26de6cc169d0542 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
use azalea_buf::AzBuf;
use azalea_protocol_macros::ClientboundGamePacket;

#[derive(AzBuf, ClientboundGamePacket, Clone, Debug, PartialEq)]
pub struct ClientboundGameEvent {
    pub event: EventType,
    pub param: f32,
}

#[derive(AzBuf, Clone, Copy, Debug, PartialEq)]
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,
}