Minecraft-Console-Client/MinecraftClient/Protocol
BruceChen 57a0dedb33 feat: add packet palette, data components, and protocol fixes for MC 1.21.2
Packet Palette (Phase 2.1):
- Create PacketPalette1212.cs with complete ID mapping for protocol 768
  (131 clientbound + 60 serverbound play packets, plus config packets)
- Add new PacketTypesIn enum values: EntityPositionSync, MoveMinecartAlongTrack,
  PlayerRotation, RecipeBookAdd/Remove/Settings, SetCursorItem, SetHeldSlot,
  SetPlayerInventory
- Add new PacketTypesOut enum values: BundleItemSelected, ClientTickEnd
- Update PacketType18Handler routing for 1.21.2

Data Components (Phase 1.4):
- Create StructuredComponentsRegistry1212 with 67 components (was 57 in 1.21)
  reflecting the new 1.21.2 DataComponents ordering
- Implement 11 new component parsers: ConsumableComponent, UseRemainderComponent,
  UseCooldownComponent, DamageResistantComponent, EnchantableComponent,
  EquippableComponent, RepairableComponent, GliderComponent, TooltipStyleComponent,
  DeathProtectionComponent, ItemModelComponent
- Create FoodComponent1212 (simplified: nutrition/saturation/canAlwaysEat only;
  eatSeconds/effects/usingConvertsTo moved to consumable/use_remainder)
- Create SubComponentRegistry1212 and route in StructuredComponentsHandler

Protocol Fixes:
- Fix PlayerPositionAndLook packet for 1.21.2 (new format: teleportId first,
  added deltaMovement Vec3, flags as Int instead of Byte)
- Fix login success packet (remove strictErrorHandling read for >= 1.21.2)
- Fix ClientSettings/ClientInformation packet (add particleStatus VarInt)
- Add SetHeldSlot as alias for HeldItemChange in packet handler

Verified: MCC connects to 1.21.2 vanilla server, stays connected, chat works.
Made-with: Cursor
2026-03-20 03:25:20 +08:00
..
Handlers feat: add packet palette, data components, and protocol fixes for MC 1.21.2 2026-03-20 03:25:20 +08:00
Message Add FileInputBot for non-interactive debugging and fix NbtToString crash 2026-03-19 00:45:51 +08:00
ProfileKey Ported to .NET 8 2024-12-22 13:20:04 +01:00
Session Fix session cache serializer failure 2024-12-25 01:28:28 +08:00
DataTypeGenerator.cs Fix xxx.Parse 2022-10-04 11:53:07 +08:00
EntityActionType.cs [SKIP_BUILD] Change file encoding to UTF-8 with BOM 2022-11-28 13:55:05 +08:00
GuidExtensions.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
IMinecraftCom.cs 1.20.6 - Not working yet 2024-06-16 01:19:09 +02:00
IMinecraftComHandler.cs First working version, not fully tested 2024-06-30 11:26:41 +02:00
JwtPayloadDecode.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
MicrosoftAuthentication.cs fixed typo in word heAlper lol 2024-04-16 21:21:08 +03:00
MojangAPI.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
PlayerInfo.cs Trim 2023-01-14 21:07:09 +08:00
ProtocolHandler.cs feat: add palettes and version constants for MC 1.21.2 (protocol 768) 2026-03-20 03:02:43 +08:00
ProxiedWebRequest.cs Tooltip support & Bug fix 2022-12-11 13:00:19 +08:00
ReplayHandler.cs Handle non-interactive terminal environments gracefully 2026-03-19 00:11:13 +08:00