21ac444f28
Step A of the horizon-client crate split. `Chunk.block_entities` held `containers::BlockEntity`, whose payloads were defined across containers, brewing, signs, sculk, mobs::spawner, mobs::trial_spawner, vault, beehive and command_block, so `chunk` reached most of the gameplay code. The enum and every payload type now live in `chunk/block_entity.rs` as plain data (definitions and derives). Every impl block stays in its feature module, and each module re-exports its types under the old path, so callers don't change. Also: - `mobs::Who` moves to `horizon_client_core::who` (the vibration `Info` names it); mobs re-exports it. - `skins::NameOrId` moves beside `SkullSkin`, which holds it; skins re-exports it. - `Spawner.next`, the `Next` enum and `Selector.current` become `pub(crate)`, since their struct now lives in another module. - The vault, spawner and trial_spawner harnesses record `chunk/block_entity.rs`. No behaviour change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
210 B
Rust
9 lines
210 B
Rust
//! Who an action came from or is aimed at: the player or a mob by id.
|
|
|
|
/// Who caused damage or is being targeted.
|
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
|
|
pub enum Who {
|
|
Player,
|
|
Mob(u32),
|
|
}
|