diff options
| author | mat <27899617+mat-1@users.noreply.github.com> | 2025-12-12 00:56:02 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-12 00:56:02 -0600 |
| commit | f9c25665c203d6377ace62f1e95381d037d8fd9e (patch) | |
| tree | 8b4131d20fe661d3cc1175ec27f801fe61df41ea /azalea-entity/src/inventory.rs | |
| parent | 82ad975242292d5875780b4398b62637674bf50a (diff) | |
| download | azalea-drasl-f9c25665c203d6377ace62f1e95381d037d8fd9e.tar.xz | |
Refactor azalea-registry (#294)
* 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
Diffstat (limited to 'azalea-entity/src/inventory.rs')
| -rw-r--r-- | azalea-entity/src/inventory.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-entity/src/inventory.rs b/azalea-entity/src/inventory.rs index 5dd933a2..d6fabb1e 100644 --- a/azalea-entity/src/inventory.rs +++ b/azalea-entity/src/inventory.rs @@ -681,13 +681,13 @@ impl Default for Inventory { #[cfg(test)] mod tests { use azalea_inventory::SlotList; - use azalea_registry::Item; + use azalea_registry::builtin::ItemKind; use super::*; #[test] fn test_simulate_shift_click_in_crafting_table() { - let spruce_planks = ItemStack::new(Item::SprucePlanks, 4); + let spruce_planks = ItemStack::new(ItemKind::SprucePlanks, 4); let mut inventory = Inventory { inventory_menu: Menu::Player(azalea_inventory::Player::default()), |
