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

235 commits

Author SHA1 Message Date
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
mat
2c610826fc
Replace azalea-nbt with simdnbt (#111)
* delete azalea-nbt and replace with simdnbt

* use simdnbt from crates.io

* remove serde dependency on azalea-registry
2023-11-19 22:07:38 -06:00
mat
9633508a3a replace log with tracing 2023-11-18 00:58:47 -06:00
mat
eeec59adab KnockbackEvent and rename Physics::delta to velocity 2023-10-12 22:39:29 -05:00
mat
38db231ea8 brigadier usages 2023-10-12 20:14:29 -05:00
mat
befa33a879 organize azalea_core and re-export it from azalea 2023-10-01 15:19:13 -05:00
mat
7b3e2e4bf7
1.20.2 (#99)
* add configuration state

* start updating to 23w31a

* implement a bit more of 23w31a

* chunk batching

* start adding configuration state

* ioasfhjgsd

* almost works

* configuration state mostly implemented

* handle other packets in configuration state and fix keepalive

* cleanup, fix warnings

* 23w32a

* fix some doctests

* 23w33a

* 23w35a

* 1.20.2-pre2

* fix system conflicts

* 1.20.2-pre4

* make tests compile

* tests pass

* 1.20.2-rc2

* 1.20.2

* Revert "1.20.2"

This reverts commit dd152fd265.

* didn't mean to commit that code

---------

Co-authored-by: mat <git@matdoes.dev>
2023-09-21 11:16:29 -05:00
mat
856a3252f6 heightmaps 2023-09-17 21:44:17 -05:00
EightFactorial
e6a787f777
Don't crash when missing extra registries (#108)
* Fix decoding on missing Nbt structures

* Fix default and renaming
2023-09-07 12:40:53 -05:00
mat
11d14c74c5
Support properly switching instances (#106)
* start implementing switching dimensions

* fix removeentity in shared worlds

* also store entity ids per local player

* uncomment a trace in pathfinder

* cleanup

---------

Co-authored-by: mat <git@matdoes.dev>
2023-08-24 22:59:40 -05:00
mat
483ce9164e fix writing ClientboundUpdateRecipesPacket 2023-08-22 02:12:12 -05:00
mat
8a90a8e109 fix tests 2023-08-15 23:51:13 -05:00
mat
7405427199
Mining (#95)
* more mining stuff

* initialize azalea-tags crate

* more mining stuff 2

* mining in ecs

* well technically mining works but

no codegen for how long it takes to mine each block yet

* rename downloads to __cache__

it was bothering me since it's not *just* downloads

* codegen block behavior

* fix not sending packet to finish breaking block

* mining animation 🎉

* clippy

* cleanup, move Client::mine into a client extension

* add azalea/src/mining.rs

---------

Co-authored-by: mat <git@matdoes.dev>
2023-07-14 22:20:40 -05:00
mat
d1afd02aa8
Update to Bevy 0.11 (#94)
* update to bevy 0.11

* clippy

---------

Co-authored-by: mat <git@matdoes.dev>
2023-07-09 19:11:29 -05:00
mat
fe687f9bdb fix clientboundsoundpacket
closes #89
2023-06-15 14:37:20 -05:00
mat
49f951688e 1.20 2023-06-12 14:35:00 -05:00
mat
630c78b318 1.20-pre5 2023-05-24 02:46:19 -05:00
mat
657c073eab protocol fixes 2023-05-12 23:40:31 -05:00