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

252 commits

Author SHA1 Message Date
mat
b9767424f3 don't remove LocalEntity from disconnected players, add new debug logs, and make GameProfile clones cheaper 2025-02-24 03:55:29 +00:00
mat
6a5ab34a2d azalea-language now does a binary search instead of a hashmap lookup 2025-02-23 17:39:17 +00:00
mat
e21e1b97bf
Refactor azalea-client (#205)
* start organizing packet_handling more by moving packet handlers into their own functions

* finish writing all the handler functions for packets

* use macro for generating match statement for packet handler functions

* fix set_entity_data

* update config state to also use handler functions

* organize az-client file structure by moving things into plugins directory

* fix merge issues
2025-02-22 21:45:26 -06:00
mat
f8130c3c92 minor memory usage optimizations 2025-02-23 03:10:21 +00:00
mat
833f306e8b
Fix errors on switching dimensions (#204)
* Fix errors on switching dimensions

* fix other tests

* clippy

* fix log feature in test_simulation

* fix chunks oops
2025-02-21 13:43:56 -06:00
mat
63b1036a96 fix CustomModelData and WrittenBookContent datacomponents 2025-02-21 17:22:00 +00:00
mat
228489dded use MinecraftEntityId type instead of u32 in az-protocol 2025-02-16 17:10:04 +00:00
mat
87c34e1c33 add failing test_set_health_before_login test 2025-02-01 20:35:57 +00:00
mat
6d8d937d47 add support for tickend and playerinput 2025-01-29 05:29:20 +00:00
mat
befcec9b3a fix wrong Profile data component impl 2025-01-29 02:09:54 +00:00
mat
ef25e77e52 add data for EntityEffect particle to fix set_entity_data errors on hypixel 2025-01-29 02:02:39 +00:00
mat
67c053638c fix chunk parsing on hypixel 2025-01-27 19:24:12 +00:00
mat
900a4234e5 fix wrong ClientboundSoundEntity 2025-01-21 23:21:08 +00:00
mat
2dcfbe96c3 fix wrong ServerLinkKind and serialize hex colors correctly in nbt 2025-01-14 03:18:38 +00:00
mat
5721eaf193 fix ClientboundSound and implement az_registry::Holder 2025-01-13 04:52:40 +00:00
mat
a1435b3b95 fix bugs with decoding/encoding DataComponentPatch 2025-01-12 22:43:37 +00:00
mat
615d8f9d2a bump minimum rust version and improve pathfinder docs 2024-12-28 02:10:05 +00:00
mat
f03e0c2235 fix parsing Dust particle and treat waterlogged blocks as liquid in pathfinder 2024-12-24 08:48:36 +00:00
mat
2c37ade959 add a test for 2b2t queue chat message 2024-12-23 02:01:58 +00:00
mat
e268c49291 fix incorrect packets 2024-12-19 02:52:41 +00:00
mat
e9136c9cbb
Implement EntityPositionSync (#196)
* implement EntityPositionSync

* fix EntityPositionSync setting the wrong vec_delta_codec and also move into a RelativeEntityUpdate
2024-12-11 19:51:12 -06:00
mat
097a620de1 fix for latest nightly by changing the FixedBitSet generic to take bytes instead of bits 2024-12-11 03:25:36 +00:00
mat
39f4d68e1f fix container_set_content, player_position, and recipe_book_remove packets 2024-12-05 06:30:47 +00:00
mat
b71a7af53a
1.21.4 (#189)
* start updating to 1.21.4

* fix block codegen and stop using block data from burger

* 1.21.4-rc1

* 1.21.4
2024-12-03 14:42:23 -06:00
Shayne Hartford
ea5a1c1ec1
Add missing world border boolean to use item on packet in 1.21.2 (#192) 2024-11-30 18:05:35 -06:00
mat
f364ad6b21 switch some packet structs to unit structs 2024-11-28 20:33:39 +00:00
mat
08958c2278
Refactor azalea-protocol (#190)
* start updating to 1.21.4

* fix block codegen and stop using block data from burger

* rename packet related modules and structs to be simpler

* ItemSlot -> ItemStack for more consistency with mojmap

* .get() -> .into_packet()

* simplify declare_state_packets by removing packet ids

* rename read_from and write_into to azalea_read and azalea_write

* rename McBufReadable and McBufWritable to AzaleaRead and AzaleaWrite

* McBuf -> AzBuf

* remove most uses of into_variant

* update codegen and use resourcelocation names for packets

* implement #[limit(i)] attribute for AzBuf derive macro

* fixes for 1.21.4

* fix examples

* update some physics code and fix ChatType

* remove unused imports in codegen

* re-add some things to migrate.py and update +mc version numbers automatically

* downgrade to 1.21.3 lol
2024-11-27 19:31:40 -06:00
Shayne Hartford
0902edb244
Switch to u32 to match other entity ids in Azalea (#182)
* Switch to u32 to match other entity ids in Azalea

* Forgot about the other entity id

* Revert "Forgot about the other entity id"

That wasn't meant for this branch, squash merge this out lol.
2024-11-12 17:59:04 -06:00
mat
6b0fe5bf63 group imports with rustfmt 2024-10-26 05:29:26 +00:00
mat
b762575db6 fix ClientboundPlayerInfoUpdatePacket and replace GameProfile with LoginFinished in an example 2024-10-26 05:28:11 +00:00
mat
40e4096d24
1.21.2 (#171)
* partially implement 24w35a

* start updating to 24w39a + itemcomponent codegen

* fix codegen and broken packets to finish updating to 24w39a :D

* update to 1.21.2 except for blocks

* update ServerboundPlayerInputPacket impl
2024-10-23 00:08:13 -05:00
Shayne Hartford
5e99c2218d
Add missing yaw and patch fields to ServerboundUseItemPacket (#178)
(cherry picked from commit ed7b306aff5ed1d1ce9659d41f76f3f3a6884dd6)
2024-10-22 00:24:09 -05:00
mat
dec544a52b fix ClientboundLevelParticlesPacket errors and pathfinder /particle errors 2024-08-15 01:24:03 +00:00
EnderKill98
350e32d0a9
Fix command packets (#155)
* Fix copy&paste mistake from chat command signed packet to chat command packet

* Bugfix

---------

Co-authored-by: EnderKill98 <no@mail.tld>
2024-06-16 16:03:34 -05:00
mat
73bcc6639b fix another edge case in FormattedText::from_nbt_tag that happens with viaversion 2024-05-22 10:28:43 +00:00
mat
357824014e fix ClientboundLevelParticlesPacket 2024-04-24 03:58:26 +00:00
mat
1d80f531b7
1.20.5 (#127)
* 23w51b

* make recalculate_near_end_of_path public

so other plugins can do .after(recalculate_near_end_of_path)

* update to 24w03a i think

* start implementing 24w13a

* registries work (but a lot of packets are still broken)

* fix recipes and commands packets

* i love codecs :D i am not going insane :D mojang's java is very readable :D

* item components are "implemented" meowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeowmeow

* update to 1.20.5-pre3

* fix all the broken packets and clippy (mojang please don't do an update like this again or i will murder someone)

* 1.20.5-rc1

* fix failing tests

* 1.20.5
2024-04-23 10:34:50 -05:00
mat
0ddad8bd9c fix edge case with reading FormattedText as nbt 2024-04-20 21:06:37 +00:00
veronoicc
7fc31f9506
Update clientbound_game_event_packet.rs (#133)
Added 2 new game even types
2024-03-08 10:56:55 -06:00
mat
c38957374c fix parsing textcomponents failing when it's translatable and has a primitive as an argument 2024-02-24 14:00:09 -06:00
mat
038807e607 fix for hypixel limbo 2024-02-22 22:41:54 -06:00
mat
7feee2954d remove unnecessary map_err 2024-01-20 17:35:54 -06:00
mat
cfbfdd77b4 fix ping packet, explosion packet, and panic less 2024-01-08 00:12:54 -06:00
mat
13e6421cf5 fix FormattedText when 'extra' isn't a list of compounds 2023-12-28 18:36:23 -06:00
mat
cbb2ffad92 read nbt as optional in more places 2023-12-28 17:49:47 -06:00
Tijn
7aca36805a
Publicize all fields on AddOperation and Style (#124)
The struct itself was already public, I assume the fields where meant to be as well.
2023-12-17 15:52:34 -06:00
mat
a069ffe982 fix non-u8 gamemodes
love you wynncraft
2023-12-16 14:29:49 -06:00
mat
7857a014b9
1.20.3 (#110)
* 23w40a

* 23w41a

* 23w42a

* 23w43a

* 23w44a

* serialize FormattedText as nbt in network

* use azalea-nbt/serde in azalea-chat

* 23w45a

* fix 23w45a to compile

* handle Object in codegen

* 1.20.3-pre2

* remove unused clientbound_resource_pack_packet.rs

* merge main and make azalea-chat use simdnbt

* 1.20.3-rc1

* fix tests

* use simdnbt 0.3

* fix ServerboundSetJigsawBlockPacket

* 1.20.3
2023-12-05 10:59:05 -06:00
mat
797dd91710 revert packet name to Disguised and make it more like ChatPacket::Player 2023-12-04 14:27:13 -06:00
Shayne Hartford
888c276503
Add masked chat type/event (#118) 2023-12-04 14:26:53 -06:00