Minecraft-Console-Client/MinecraftClient/Protocol/Handlers
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
..
Forge refactor(ForgeInfo.cs): Remove unused code and edit comments 2024-02-20 22:02:22 +08:00
Packet/s2c Preliminary 1.21 Support 2024-12-06 16:45:48 +01:00
PacketPalettes Preliminary 1.21 Support 2024-12-06 16:45:48 +01:00
StructuredComponents fix: StructuredComponents batch 4 audit — CustomName, ItemName, Lore use NBT encoding 2026-03-20 00:33:50 +08:00
ConfigurationPacketTypesIn.cs Preliminary 1.21 Support 2024-12-06 16:45:48 +01:00
ConfigurationPacketTypesOut.cs 1.20.6 - Not working yet 2024-06-16 01:19:09 +02:00
DataTypes.cs fix: StructuredComponents batch 1 audit — TrimComponent, ProfileComponent, WrittenBookContent, and NBT serialization 2026-03-20 00:09:05 +08:00
PacketType18Handler.cs Preliminary 1.21 Support 2024-12-06 16:45:48 +01:00
PacketTypesIn.cs Preliminary 1.21 Support 2024-12-06 16:45:48 +01:00
PacketTypesOut.cs 1.20.6 - Not working yet 2024-06-16 01:19:09 +02:00
Protocol16.cs 1.20.6 - Not working yet 2024-06-16 01:19:09 +02:00
Protocol18.cs Fix EntityProperties crash and add default attribute registry fallback 2026-03-19 01:26:20 +08:00
Protocol18Forge.cs fix(Protocol18Forge.cs): Version bigger or equal 1.18 is FML3 2024-02-20 22:23:46 +08:00
Protocol18Terrain.cs 1.19.3 PlayerRemove & Explosion packet 2023-01-14 15:55:40 +08:00
SocketWrapper.cs First Version of Structured Components 2024-09-01 20:42:39 +02:00
ZlibUtils.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00