Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/StructuredComponents/Components
BruceChen 5e416d6b72 fix: StructuredComponents batch 4 audit — CustomName, ItemName, Lore use NBT encoding
In 1.20.6+, ComponentSerialization.STREAM_CODEC uses
ByteBufCodecs.fromCodecWithRegistries (NBT tag format), not plain string.
The previous implementation incorrectly used ReadNextString/GetString
for custom_name (5), item_name (6), and lore (7) components.

Fixed all three to use ReadNextNbt/GetNbt, preserving raw NBT data for
round-trip serialization while still extracting readable text via
ChatParser.ParseText(Dictionary).

Other batch 4 components (custom_data, entity_data, bucket_entity_data,
block_entity_data, debug_stick_state, map_decorations, recipes, lock,
container_loot, intangible_projectile — all NBT; hide_additional_tooltip,
hide_tooltip, fire_resistant, creative_slot_lock — all Unit/Empty;
note_block_sound — ResourceLocation string) were verified correct.

Made-with: Cursor
2026-03-20 00:33:50 +08:00
..
1_20_6 fix: StructuredComponents batch 4 audit — CustomName, ItemName, Lore use NBT encoding 2026-03-20 00:33: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