Skip to content

Commit f99218d

Browse files
committed
Add enum FmlHs in plugin_messages
1 parent 685e2f6 commit f99218d

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

src/server/plugin_messages.rs

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,34 @@
11

2+
use std::collections::HashMap;
3+
24
use crate::protocol::Serializable;
35
use crate::protocol::packet::play::serverbound::PluginMessageServerbound;
46
use crate::protocol::packet::play::serverbound::PluginMessageServerbound_i16;
57

8+
pub enum FmlHs<'a> {
9+
ServerHello {
10+
fml_protocol_version: i8,
11+
override_dimension: i32,
12+
},
13+
ClientHello {
14+
fml_protocol_version: i8,
15+
},
16+
ModList {
17+
mods: HashMap<&'a str, &'a str>,
18+
},
19+
RegistryData {
20+
has_more: bool,
21+
name: String,
22+
ids: HashMap<&'a str, i32>,
23+
substitutions: Vec<&'a str>,
24+
dummies: Vec<&'a str>,
25+
},
26+
HandshakeAck {
27+
phase: i8,
28+
},
29+
HandshakeReset,
30+
}
31+
632
pub struct Brand {
733
pub brand: String,
834
}

0 commit comments

Comments
 (0)