Commit graph

34 commits

Author SHA1 Message Date
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
77980f0018 rename World to dimension
A world is a collection of dimensions
2022-06-25 14:24:56 -05:00
mat
cd9a05e5a6 read_into -> read_from
yeah
2022-06-25 02:33:28 -05:00
mat
b030b0ea33 start adding moving 2022-06-24 23:10:59 -05:00
mat
2cdbdcaa27 move_entity_with_delta 2022-06-23 21:31:19 -05:00
mat
37c6618c16 Fix everything so azalea-buf works 2022-06-23 19:17:04 -05:00
mat
5ca49e680e azalea-buf 2022-06-23 15:12:17 -05:00
mat
efd8749573 add gametick event and find_one_entity 2022-06-20 01:19:59 -05:00
mat
c9a070f711 Fix some clippy warnings 2022-06-19 22:01:54 -05:00
mat
e84893b07a Fix issues with entity pos conversion to block pos 2022-06-19 13:42:01 -05:00
mat
bb6b116cb8 Improvements to azalea-world for entities 2022-06-19 00:30:24 -05:00
mat
fc3151f89d account.rs and client.rs 2022-06-18 16:54:49 -05:00
mat
614b211298 EntityStorage 2022-06-17 23:55:11 -05:00
mat
d0fc7d0eff ClientboundSetEquipmentPacket 2022-06-17 16:27:58 -05:00
mat
69e1125ecb Slightly improve bit storage 2022-06-17 15:59:27 -05:00
mat
74c3ae52f8 azalea-world uses azalea-block 2022-06-16 23:38:51 -05:00
mat
8fb9586609 remove some console.logs 2022-05-14 18:55:08 -05:00
mat
e58c9390a7 get_block_state works 2022-05-14 15:02:13 -05:00
mat
6d2fd8afba start adding get_block_state 2022-05-14 14:12:57 -05:00
mat
7c194fb245 remove some printlns 2022-05-14 11:20:33 -05:00
mat
345cecf7af add more stuff 2022-05-08 23:45:15 -05:00
mat
d9795a593a Update palette.rs 2022-05-08 18:55:56 -05:00
mat
e023986565 random polish 2022-05-05 23:33:08 -05:00
mat
1b48cad53f remove some prints 2022-05-05 23:06:37 -05:00
mat
4dac004635 Fix chunk decoding 2022-05-05 22:12:54 -05:00
mat
57b76ef52b Add bit storage 2022-05-05 19:57:46 -05:00
mat
18dc3a84d4 start adding bit storage 2022-05-03 22:48:57 -05:00
mat
c987812927 clippy 2022-05-03 18:20:24 +00:00
mat
477c367fc4 mor echunk stuff 2022-05-03 18:03:10 +00:00
mat
0bd798045c more azalea-world stuff 2022-05-03 00:33:32 -05:00
mat
8e42e1c5df more chunk and readme stuff 2022-05-02 23:07:06 +00:00
mat
1e2ec61100 write some more azalea-world code 2022-05-02 00:24:29 -05:00
mat
4d75415130 start adding azalea-world 2022-05-01 18:59:07 -05:00