aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/container.rs
AgeCommit message (Collapse)Author
10 daysazalea-brigadier now allows commands to return a Resultmat
10 dayschange panicking functions in Client and EntityRef to return an AzaleaResult ↵mat
instead
2025-12-28add a few more functions for getting common components to Clientmat
2025-12-28Change Client::component to return a reference (#298)mat
* change Client::component to return a reference * write docs * merge main * remove unused parking_lot feature
2025-12-27Move Client struct to azalea crate (#297)mat
* move the Client struct out of azalea-client into azalea * actually add client impls in azalea
2025-12-23fix broken doctestmat
2025-12-22add ContainerHandleRef::titlemat
2025-12-12Refactor azalea-registry (#294)mat
* move registries in azalea-registry into separate modules * rename Item and Block to ItemKind and BlockKind * remove 'extra' registries from azalea-registry * hide deprecated items from docs * use DamageKindKey instead of Identifier when parsing registries * store tag entries as a Vec instead of a HashSet * sort tag values by protocol id * update changelog
2025-12-09Enchantments (#286)mat
* start implementing enchants * store parsed registries * more work on enchants * implement deserializer for some entity effects * mostly working definitions for enchants * fix tests * detect equipment changes * fix errors * update changelog * fix some imports * remove outdated todo * add basic test for enchants applying attributes * use git simdnbt
2025-12-09move offline-mode uuid generation to azalea-cryptomat
2025-12-09split open_container_at to open_container_at_with_timeout_ticks to have a ↵mat
cleaner api interface
2025-10-13fix broken testsmat
2025-10-12add optional timeout for opening containersmat
2025-10-12upgrade deps and clean up lots of doc commentsmat
2025-09-28upgrade bevy to 0.17.0-rc.2mat
2025-08-15make `handle_menu_opened_event` public (#238)Sovenance
This change was made so people can actually add systems before or after this
2025-08-12add nearest_entity_by and improve some docsmat
2025-06-11take BlockPos instead of &BlockPos in all function argumentsmat
2025-06-09replace Client::get_open_container and view_container_or_inventory with ↵mat
get_inventory
2025-06-05wait for block to exist when calling open_container_atmat
2025-06-04re-enable click prediction and fix related issuesmat
2025-06-03fix issues when pathfinding to non-full blocks and add Client::view_inventorymat
2025-06-03replace wait_one_tick with wait_ticks and some other api improvementsmat
2025-05-30formatting: merge importsmat
2025-05-30fix clippy issues and improve formatting everywheremat
2025-04-17Move login state to the ECS (#213)mat
* 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-04don't require mut for functions in Client and add some more convenience ↵mat
functions
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
2024-12-19fix incorrect packetsmat
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
2024-10-26group imports with rustfmtmat
2024-10-21Rename InventoryComponent to Inventory to match other components (#177)Shayne Hartford
(cherry picked from commit 266058a8d441169b46ef819595eee62337ab324c)
2024-01-04rename open_container to open_container_at and add get_open_containermat
2023-12-09fix broken doc linksmat
2023-12-06disable feaatures on azalea-chat by default and fix disabling simdnbt featuremat
2023-11-18make packet an Arc in PacketEventmat
2023-11-06bevy 0.12mat
2023-10-26remove some unnecessary code and improve docs for Menumat
2023-10-21async_fn_in_trait stabilizedmat
2023-10-10start adding mining to pathfindermat
2023-10-01organize azalea_core and re-export it from azaleamat
2023-09-211.20.2 (#99)mat
* 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 dd152fd265332ead333c919e585ded6d609d7468. * didn't mean to commit that code --------- Co-authored-by: mat <git@matdoes.dev>
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>
2023-07-09Update to Bevy 0.11 (#94)mat
* update to bevy 0.11 * clippy --------- Co-authored-by: mat <git@matdoes.dev>
2023-05-05fix some warningsmat
2023-05-05rename Client::inventory to open_inventorymat
2023-05-05add Client::inventorymat
2023-05-03Inventory (#48)mat
* start adding azalea-inventory * design more of how inventories are defined * start working on az-inv-macros * inventory macro works * start adding inventory codegen * update some deps * add inventory codegen * manually write inventory menus * put the inventories in Client * start on containersetcontent * inventory menu should hopefully work * checks in containersetcontent * format a comment * move some variant matches * inventory.rs * inventory stuff * more inventory stuff * inventory/container tracking works * start adding interact function * sequence number * start adding HitResultComponent * implement traverse_blocks * start adding clip * add clip function * update_hit_result_component * start trying to fix * fix * make some stuff simpler * clippy * lever * chest * container handle * fix ambiguity * fix some doc tests * move some container stuff from az-client to azalea * clicking container * start implementing simulate_click * keep working on simulate click * implement more of simulate_click this is really boring * inventory fixes * start implementing shift clicking * fix panic in azalea-chat i hope * shift clicking implemented * more inventory stuff * fix items not showing in containers sometimes * fix test * fix all warnings * remove a println --------- Co-authored-by: mat <git@matdoes.dev>