aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/packets/game/c_game_event.rs
blob: 940aa2f1d85f53c5c6c54323557c49483448ad91 (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(Clone, Debug, AzBuf, ClientboundGamePacket)]
pub struct ClientboundGameEvent {
    pub event: EventType,
    pub param: f32,
}

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