1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 23:44:38 +00:00
Commit graph

16 commits

Author SHA1 Message Date
mat
d564b4cc4f ping players can be negative 2022-09-01 19:11:24 -05:00
mat
dbb2092ac0
Implement ALL packets (#16)
* add a couple more packets and improve codegen

* enums in packet codegen

* fix enums and MORE PACKETS

* make unsigned numbers the default

* codegen can make hashmaps

* UnsizedByteArray in codegen

* Vec and Option

* enum codgen works in more situations

* ServerboundInteractPacket

* Fix error with new error system

* More packets

* more packets

* more packets

* guess what was added

* yeah it's more packets

* add more packets

* packets

* start adding ClientboundBossEventPacket

* finish boss event packet

* improve codegen for linux

* start on command suggestions packet

* rename declare_commands to commands

* más paquetes

* fix generating custom payload packet

* more packets

* mehr Pakete

* improve codegen for movement packets

* rename move packets to have "packet" at the end

* fix some unused variable warns

* addere plus facis

* pli da pakoj

* plus de paquets

* più pacchetti

* make ChatFormatting a macro in azalea-chat

* change a match to matches! macro

* update SetPlayerTeam to use ChatFormatting

* ClientboundSetScorePacket & fix clippy warnings

* finish game state 🎉

* add remaining packets for other states

* fix error in ping.rs
2022-08-20 15:17:07 -05:00
mat
5a9fca0ca9
Better errors (#14)
* make reading use thiserror

* finish implementing all the error things

* clippy warnings related to ok_or

* fix some errors in other places

* thiserror in more places

* don't use closures in a couple places

* errors in writing packet

* rip backtraces

* change some BufReadError::Custom to UnexpectedEnumVariant

* Errors say what packet is bad

* error on leftover data and fix

it wasn't reading the properties for gameprofile
2022-08-06 02:22:19 -05:00
mat
4ee4687053 Split clientbound and serverbound packets 2022-07-29 02:59:40 -05:00
mat
37c6618c16 Fix everything so azalea-buf works 2022-06-23 19:17:04 -05:00
mat
f0792f25bb add derive McBuf to every packet 2022-05-14 20:03:24 -05:00
mat
a24d00d998 impl Write instead of Vec<u8> for consistency 2022-05-01 23:35:30 -05:00
mat
567c6f4f2c Reduce usage of AsyncRead
We already receive everything from the server when it tells us the length, so we can actually just treat the stream as a Read instead of an AsyncRead.
2022-05-01 21:54:03 -05:00
mat
9dacd90abc clientbound_add_entity_packet & clientbound_set_entity_data_packet 2022-05-01 13:51:59 -05:00
mat
248f752748 simplify error handling 2022-04-22 04:33:58 +00:00
mat
2c848ebaa5 Set carried item and update tags packets 2022-04-21 15:25:46 +00:00
mat
cbdab27cb5 add declare_state_packets to the other states 2022-04-19 19:17:36 -05:00
mat
a1afbb6031 start adding packet macros 2022-01-01 23:55:19 -06:00
mat
1a961d968b fix some clippy warnings 2021-12-26 14:17:01 -06:00
mat
c4eecaf13a try to implement compression 2021-12-16 23:33:06 -06:00
mat
9642558f8f azalea 2021-12-15 23:10:55 -06:00