forked from feather-rs/feather
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.rs
More file actions
79 lines (72 loc) · 1.74 KB
/
client.rs
File metadata and controls
79 lines (72 loc) · 1.74 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
//! Packets sent from client to server.
use super::*;
mod handshake;
mod login;
mod play;
mod status;
pub use handshake::*;
pub use login::*;
pub use play::*;
pub use status::*;
packet_enum!(ClientHandshakePacket {
0x00 = Handshake,
});
packet_enum!(ClientStatusPacket {
0x00 = Request,
0x01 = Ping,
});
packet_enum!(ClientLoginPacket {
0x00 = LoginStart,
0x01 = EncryptionResponse,
0x02 = LoginPluginResponse,
});
packet_enum!(ClientPlayPacket {
0x00 = TeleportConfirm,
0x01 = QueryBlockNbt,
0x02 = SetDifficulty,
0x03 = ChatMessage,
0x04 = ClientStatus,
0x05 = ClientSettings,
0x06 = TabComplete,
0x07 = WindowConfirmation,
0x08 = ClickWindowButton,
0x09 = ClickWindow,
0x0A = CloseWindow,
0x0B = PluginMessage,
0x0C = EditBook,
0x0D = QueryEntityNbt,
0x0E = InteractEntity,
0x0F = GenerateStructure,
0x10 = KeepAlive,
0x11 = LockDifficulty,
0x12 = PlayerPosition,
0x13 = PlayerPositionAndRotation,
0x14 = PlayerRotation,
0x15 = PlayerMovement,
0x16 = VehicleMove,
0x17 = SteerBoat,
0x18 = PickItem,
0x19 = CraftRecipeRequest,
0x1A = PlayerAbilities,
0x1B = PlayerDigging,
0x1C = EntityAction,
0x1D = SteerVehicle,
0x1E = SetDisplayedRecipe,
0x1F = SetRecipeBookState,
0x20 = NameItem,
0x21 = ResourcePackStatus,
0x22 = AdvancementTab,
0x23 = SelectTrade,
0x24 = SetBeaconEffect,
0x25 = HeldItemChange,
0x26 = UpdateCommandBlock,
0x27 = UpdateCommandBlockMinecart,
0x28 = CreativeInventoryAction,
0x29 = UpdateJigsawBlock,
0x2A = UpdateStructureBlock,
0x2B = UpdateSign,
0x2C = Animation,
0x2D = Spectate,
0x2E = PlayerBlockPlacement,
0x2F = UseItem,
});