aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src/attack.rs
AgeCommit message (Collapse)Author
2025-02-22Refactor azalea-client (#205)mat
* 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-22update to rust edition 2024mat
2025-02-16use MinecraftEntityId type instead of u32 in az-protocolmat
2024-11-27Refactor azalea-protocol (#190)mat
* 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
2023-12-04Replace Bevy's FixedUpdate with Azalea's GameTick (#119)mat
* replace bevy FixedUpdate with azalea GameTick * Update to Bevy 0.12.1
2023-12-03make it so plugins can send and receive packets during the login statemat
2023-11-06bevy 0.12mat
2023-10-12KnockbackEvent and rename Physics::delta to velocitymat
2023-10-06make sure pathfinder is always centered on the destination block (fixes tests)mat
2023-10-01organize azalea_core and re-export it from azaleamat
2023-08-25fix all bevy ambiguitiesmat
2023-07-15Attacking (#96)mat
* add Client::attack * partially implement attack cooldowns * attack speed modifiers * don't care clippy --------- Co-authored-by: mat <git@matdoes.dev>