Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/StructuredComponents
BruceChen cc10f4effa refactor: StructuredComponents batch 5 audit — remove redundant count fields
Audited batch 5 components (ChargedProjectiles, BundleContents, Container,
WritableBookContent, BlockState, PotDecorations) against official 1.20.6
decompiled STREAM_CODEC definitions. All network encodings were correct.

Removed redundant NumberOfItems/NumberOfPages/NumberOfProperties fields from
ContainerComponent, WritableBlookContentComponent, BlockStateComponent, and
PotDecorationsComponent. Serialize now uses the actual collection .Count
instead of a potentially stale cached value, matching the pattern already
used by ContainerComponent's Serialize and other components.

Also modernized loop style (foreach with deconstruction where applicable)
and fixed a typo in an exception message ("setialize" -> "serialize").

Made-with: Cursor
2026-03-20 00:45:50 +08:00
..
Components refactor: StructuredComponents batch 5 audit — remove redundant count fields 2026-03-20 00:45:50 +08:00
Core Wire up 1.20.6 structured components to Item and fix GetItemSlot serialization 2026-03-19 00:34:10 +08:00
Registries Preliminary 1.21 Support 2024-12-06 16:45:48 +01:00
StructuredComponentsHandler.cs Preliminary 1.21 Support 2024-12-06 16:45:48 +01:00