27d750f1c9
Second slice of the crate split, a pure move like the first: blocks (+ blocks/), items, item_data, enchant, cooldowns, bundle and random_sequences move to horizon-items. They are the first layer mobs/ needs, after horizon-client-core. Items moved out of lib modules that sit in the big cycle, unchanged: - firework shapes, explosions and dye colours (particles.rs) -> firework.rs; - BannerLayer and its NBT form (banner.rs) -> banner_layer.rs; - the ItemStack NBT codec (save.rs) -> item_nbt.rs; - consumable_animation (first_person.rs) -> use_animation.rs; - the content namespaces (mod_content.rs) -> content_namespaces.rs; - save.rs's NBT value helpers -> horizon-client-core's nbt_value.rs, and name_text (entity_nbt.rs) -> core's component.rs. horizon-client re-exports every module and item under its old path. Test helpers other client tests use (Items::for_tests, enchant::tests) are behind horizon-items' `test-support` feature, enabled by horizon-client's dev-dependency. The items test that loads the client's assets moved to the client: always_edible_and_consume_effects_loaded, to assets.rs. particles.rs' test module moved to the end of the file (clippy's items_after_test_module had been quiet only thanks to the derives that moved out). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
623 B
Rust
20 lines
623 B
Rust
//! Blocks and items as the client knows them, below gameplay: block facts
|
|
//! (`blocks`), item stacks and definitions (`items`), their data components
|
|
//! (`item_data`), enchantments, cooldowns, bundles and item stacks in NBT.
|
|
//! horizon-client re-exports each module under its old path
|
|
//! (`horizon_client::items`, ...).
|
|
#![forbid(unsafe_code)]
|
|
pub mod banner_layer;
|
|
pub mod blocks;
|
|
pub mod bundle;
|
|
pub mod content_namespaces;
|
|
pub mod cooldowns;
|
|
pub mod enchant;
|
|
pub mod firework;
|
|
pub mod item_data;
|
|
pub mod item_nbt;
|
|
pub mod items;
|
|
pub mod random_sequences;
|
|
pub mod use_animation;
|
|
pub use horizon_client_core::Result;
|