@@ -90,7 +90,7 @@ pub struct Handshake {
9090}
9191
9292impl Packet for Handshake {
93- fn read_from ( & mut self , mut buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
93+ fn read_from ( & mut self , mut buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
9494 self . protocol_version = buf. read_var_int ( ) . unwrap ( ) as u32 ;
9595 self . server_address = buf. read_string ( ) ?;
9696 self . server_port = buf. get_u16_be ( ) ;
@@ -140,7 +140,7 @@ pub struct EncryptionResponse {
140140}
141141
142142impl Packet for EncryptionResponse {
143- fn read_from ( & mut self , mut buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
143+ fn read_from ( & mut self , mut buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
144144 self . secret_length = buf. read_var_int ( ) ?;
145145
146146 let mut secret = vec ! [ ] ;
@@ -250,7 +250,7 @@ pub struct PluginMessageServerbound {
250250}
251251
252252impl Packet for PluginMessageServerbound {
253- fn read_from ( & mut self , mut buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
253+ fn read_from ( & mut self , mut buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
254254 self . channel = buf. read_string ( ) ?;
255255
256256 let mut data = Vec :: with_capacity ( buf. remaining ( ) ) ;
@@ -289,7 +289,7 @@ pub struct UseEntity {
289289}
290290
291291impl Packet for UseEntity {
292- fn read_from ( & mut self , mut buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
292+ fn read_from ( & mut self , mut buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
293293 self . target = buf. read_var_int ( ) ?;
294294
295295 let ty_id = buf. read_var_int ( ) ?;
@@ -408,7 +408,7 @@ pub struct PlayerDigging {
408408}
409409
410410impl Packet for PlayerDigging {
411- fn read_from ( & mut self , mut buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
411+ fn read_from ( & mut self , mut buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
412412 self . status = {
413413 let id = buf. read_var_int ( ) ?;
414414 match id {
@@ -598,7 +598,7 @@ pub struct EncryptionRequest {
598598}
599599
600600impl Packet for EncryptionRequest {
601- fn read_from ( & mut self , mut buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
601+ fn read_from ( & mut self , mut buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
602602 unimplemented ! ( )
603603 }
604604
@@ -715,7 +715,7 @@ pub struct SpawnPlayer {
715715}
716716
717717impl Packet for SpawnPlayer {
718- fn read_from ( & mut self , buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
718+ fn read_from ( & mut self , buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
719719 unimplemented ! ( )
720720 }
721721
@@ -749,7 +749,7 @@ pub struct Statistics {
749749}
750750
751751impl Packet for Statistics {
752- fn read_from ( & mut self , buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
752+ fn read_from ( & mut self , buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
753753 unimplemented ! ( )
754754 }
755755
@@ -802,7 +802,7 @@ pub struct BossBar {
802802}
803803
804804impl Packet for BossBar {
805- fn read_from ( & mut self , buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
805+ fn read_from ( & mut self , buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
806806 unimplemented ! ( )
807807 }
808808
@@ -966,7 +966,7 @@ pub struct PluginMessageClientbound {
966966}
967967
968968impl Packet for PluginMessageClientbound {
969- fn read_from ( & mut self , buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
969+ fn read_from ( & mut self , buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
970970 unimplemented ! ( )
971971 }
972972
@@ -1022,7 +1022,7 @@ pub struct Explosion {
10221022}
10231023
10241024impl Packet for Explosion {
1025- fn read_from ( & mut self , buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
1025+ fn read_from ( & mut self , buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
10261026 unimplemented ! ( )
10271027 }
10281028
@@ -1073,7 +1073,7 @@ pub struct ChunkData {
10731073}
10741074
10751075impl Packet for ChunkData {
1076- fn read_from ( & mut self , buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
1076+ fn read_from ( & mut self , buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
10771077 unimplemented ! ( )
10781078 }
10791079
@@ -1243,7 +1243,7 @@ pub struct CombatEvent {
12431243}
12441244
12451245impl Packet for CombatEvent {
1246- fn read_from ( & mut self , buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
1246+ fn read_from ( & mut self , buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
12471247 unimplemented ! ( )
12481248 }
12491249
@@ -1287,7 +1287,7 @@ pub struct PlayerInfo {
12871287}
12881288
12891289impl Packet for PlayerInfo {
1290- fn read_from ( & mut self , buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
1290+ fn read_from ( & mut self , buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
12911291 unimplemented ! ( )
12921292 }
12931293
@@ -1384,7 +1384,7 @@ pub struct DestroyEntities {
13841384}
13851385
13861386impl Packet for DestroyEntities {
1387- fn read_from ( & mut self , buf : & mut PacketBuf ) -> Result < ( ) , ( ) > {
1387+ fn read_from ( & mut self , buf : & mut dyn PacketBuf ) -> Result < ( ) , ( ) > {
13881388 unimplemented ! ( )
13891389 }
13901390
0 commit comments