Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/StructuredComponents/Components
BruceChen c689343371 fix: StructuredComponents batch 3 audit — EnchantmentGlintOverrideComponent type correction
Audited all 14 simple binary components (batch 3): max_stack_size,
max_damage, damage, unbreakable, rarity, custom_model_data, repair_cost,
enchantment_glint_override, ominous_bottle_amplifier, dyed_color,
map_color, map_id, map_post_processing, base_color.

Found and fixed 1 bug:
- EnchantmentGlintOverrideComponent: was reading/writing VarInt but the
  official STREAM_CODEC uses ByteBufCodecs.BOOL (single byte boolean).
  Changed property type from int to bool, Parse from ReadNextVarInt to
  ReadNextBool, and Serialize from GetVarInt to GetBool.

All other 13 components matched the official 1.20.6 STREAM_CODEC
definitions exactly.

Verified in-game: connected to 1.20.6 vanilla server, received items
with enchantment_glint_override=true/false, dyed_color, map_color,
map_id, base_color, unbreakable, rarity, custom_model_data, repair_cost,
damage, max_damage. All parsed and serialized correctly with no errors.

Made-with: Cursor
2026-03-20 00:25:28 +08:00
..
1_20_6 fix: StructuredComponents batch 3 audit — EnchantmentGlintOverrideComponent type correction 2026-03-20 00:25:28 +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