Commit Graph

5 Commits

Author SHA1 Message Date
Ludovic Marie bfa622bbde Server: send entity attributes to clients
ClientboundUpdateAttributesPacket, as vanilla's ServerEntity sends it: every
client-syncable instance when an entity is paired, the changed ones with the
dirty entity data, and a player's dirty set to the player itself.

- Mobs and armor stands report the instances vanilla would have created
  (movement speed, finalizeSpawn's bases and modifiers, the baby modifier,
  effects', equipment's and /attribute's), players their LiveAttributes.
- Guests get the per-tick movement speed instance and the creative reach
  modifiers (ServerPlayer.updatePlayerAttributes).
- cube::set_size sets the attribute bases as AbstractCubeMob.setSize does,
  so a summoned slime has its size's health and speed.
- server_entities compares attributes again, the player's own too, with a
  slime and a scaled pig in its scene.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 13:21:13 +02:00
Ludovic Marie b1cd0ae08f Checkpoint live registered attributes and parity fixture
Preserve the in-progress registered attribute binding and its differential fixture. Library and example Clippy pass; the dedicated vanilla differential gate is still pending.
2026-10-07 13:16:05 +02:00
Ludovic Marie 9c451321a2 Reduce entity attribute memory with shared defaults and lazy allocation 2026-10-07 04:28:50 +02:00
Ludovic Marie ddb0077c3a Bind registered entity attribute defaults and lazy updates 2026-10-07 04:02:38 +02:00
Ludovic Marie 39993060eb Implement vanilla attribute modifiers, caching and permanent state 2026-10-07 03:56:36 +02:00