minecraft-net 0.2.0

A library allowing easier communication via the minecraft protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use minecraft_net_proc::{Field, Packet};
use crate::fields::types::TextComponent;

Field!(Matches, {
    r#match: String,
    tooltip: PrefixedOptional<TextComponent>,
});
Packet!(CommandSuggestionsResponse, 0x10, {
    id: VarInt,
    start: VarInt,
    length: VarInt,
    matches: PrefixedArray<Matches>,
});