Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/StructuredComponents/Components
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
..
1_20_6 refactor: StructuredComponents batch 5 audit — remove redundant count fields 2026-03-20 00:45:50 +08:00
1_21 Preliminary 1.21 Support 2024-12-06 16:45:48 +01:00
Subcomponents fix: StructuredComponents batch 2 audit — BlockPredicate and PropertySubComponent serialization 2026-03-20 00:19:08 +08:00
EmptyComponent.cs Added more components + added item palette reference 2024-09-11 20:35:23 +02:00