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

270 commits

Author SHA1 Message Date
mat
e1d3b902ba add StartUseItemEvent and improve code related to interactions 2025-05-10 06:22:08 +03:30
mat
4a1fdf0121 fix incorrect chat parsing when legacy color codes are mixed in 2025-05-06 22:35:17 -06:30
mat
aa0256da10 upgrade rust version and fix clippy warnings 2025-05-07 11:27:58 +08:00
mat
0fc0fe41d4 delete some unused packet modules in game state 2025-04-24 18:42:56 -04:00
mat
8012fb90b5 update serialization for set_player_team 2025-04-25 07:24:12 +09:00
mat
77f9d929b6 typo in instance_block_action packet 2025-04-18 14:31:18 +08:00
mat
e86087366f box display_name in PlayerInfo to make it smaller 2025-04-18 01:09:49 +02:00
mat
3f60bdadac
Move login state to the ECS (#213)
* use packet handlers code for login custom_query

* initial broken implementation for ecs-only login

* fixes

* run Update schedule 60 times per second and delete code related to run_schedule_sender

* fix tests

* fix online-mode

* reply to query packets in a separate system and make it easier for plugins to disable individual replies

* remove unused imports
2025-04-17 16:16:51 -05:00
mat
2aa046c4b5 make BlockState::id private 2025-04-17 11:09:14 -09:30
mat
5272db8bb4 remove executable bit from files 2025-04-04 15:56:06 +00:00
mat
097ebb3705 use HashedStack for ServerboundContainerClick::carried_item too 2025-03-29 23:20:26 +00:00
mat
43ebbee94a update ServerboundContainerClick to use HashedStack from 1.21.5 2025-03-29 23:10:55 +00:00
mat
d0b459e827 add support for unnamed structs to azalea-buf-macros 2025-03-29 22:29:37 +00:00
mat
02de98240f fix not replying to ping packets in config state 2025-03-27 21:28:13 +00:00
mat
ef357fdf36
1.21.5 (#198)
* 25w02a

* move item_components codegen to a different module

* remove outdated test

* 25w03a

* start updating to 24w09b

* 1.21.5-pre2

* fix broken packets

* 1.21.5-rc2

* merge main

* delete unused acket_handling

* 1.21.5
2025-03-25 11:17:39 -05:00
mat
5f5616145b document ClientboundAddEntity::data 2025-03-16 04:34:32 +00:00
mat
249fa55a53 fix wrong Potion data component 2025-03-13 20:52:29 +00:00
mat
65fe072151 fix wrong Consumable component implementation and add set_equipment test 2025-03-13 20:46:12 +00:00
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