valence_protocol/packets/play/
game_state_change_s2c.rs
1use crate::{Decode, Encode, Packet};
2
3#[derive(Copy, Clone, Debug, Encode, Decode, Packet)]
4pub struct GameStateChangeS2c {
5 pub kind: GameEventKind,
6 pub value: f32,
7}
8
9#[derive(Copy, Clone, PartialEq, Eq, Debug, Encode, Decode)]
10pub enum GameEventKind {
11 NoRespawnBlockAvailable,
12 EndRaining,
13 BeginRaining,
14 ChangeGameMode,
15 WinGame,
16 DemoEvent,
17 ArrowHitPlayer,
18 RainLevelChange,
19 ThunderLevelChange,
20 PlayPufferfishStingSound,
21 PlayElderGuardianMobAppearance,
22 EnableRespawnScreen,
23}