Minecraft-Console-Client/MinecraftClient/Mapping
BruceChen e1cb18c6f8 fix: add EntityMetadataPalette1206 for correct 1.20.6+ entity metadata parsing
1.20.6 introduced three new EntityDataSerializer types compared to 1.20.4:
- PARTICLES (id 18) - list of particles, inserted after PARTICLE
- WOLF_VARIANT (id 23) - wolf variant holder, inserted after CAT_VARIANT
- ARMADILLO_STATE (id 28) - armadillo state, inserted after SNIFFER_STATE

These insertions shifted subsequent serializer IDs, causing the 1.19.4
palette (EntityMetadataPalette1194) to misidentify metadata types on
1.20.6+ servers. This could lead to incorrect byte consumption and
potential packet parse failures when entities with affected metadata
types (e.g. wolves, armadillos, area effect clouds with particles)
were present.

Changes:
- Add Particles, WolfVariant, ArmadilloState to EntityMetaDataType enum
- Create EntityMetadataPalette1206 with correct 31-entry ID mapping
- Route 1.20.6+ to the new palette in EntityMetadataPalette.GetPalette()
- Add read logic for the three new types in DataTypes.cs

Verified on 1.21.1 vanilla server: cat, wolf, frog, armadillo, painting
entities all spawn without metadata parse errors.

Made-with: Cursor
2026-03-20 01:43:48 +08:00
..
BlockPalettes Inventory, Terrain and Entity handling 2024-07-02 11:08:46 +02:00
EntityMetadataPalettes fix: add EntityMetadataPalette1206 for correct 1.20.6+ entity metadata parsing 2026-03-20 01:43:48 +08:00
EntityPalettes Inventory, Terrain and Entity handling 2024-07-02 11:08:46 +02:00
Block.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
BlockExtension.cs Added slab handling for 1.20/.1 2023-06-23 16:25:18 +02:00
Chunk.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
ChunkColumn.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
CombatEventType.cs Added Player Killed event (Combat and CombatDeath packets). 2022-10-26 20:53:09 +02:00
CommandBlockFlags.cs [skip ci] Update Minecraft wiki links to new domain (#2593) 2023-10-07 17:59:08 +08:00
CommandBlockMode.cs [skip ci] Update Minecraft wiki links to new domain (#2593) 2023-10-07 17:59:08 +08:00
Dimension.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
Direction.cs [skip ci] Update Minecraft wiki links to new domain (#2593) 2023-10-07 17:59:08 +08:00
DirectionExtensions.cs Done auxiliary methods for Direction 2024-03-05 21:49:29 +05:00
Entity.cs merge brigadier-dev into milutinke:1.19.3 2023-01-14 20:42:15 +08:00
EntityMetadataPalette.cs fix: add EntityMetadataPalette1206 for correct 1.20.6+ entity metadata parsing 2026-03-20 01:43:48 +08:00
EntityMetaDataType.cs fix: add EntityMetadataPalette1206 for correct 1.20.6+ entity metadata parsing 2026-03-20 01:43:48 +08:00
EntityPose.cs [SKIP_BUILD] Change file encoding to UTF-8 with BOM 2022-11-28 13:55:05 +08:00
EntityType.cs Inventory, Terrain and Entity handling 2024-07-02 11:08:46 +02:00
EntityTypeExtensions.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
InteractType.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
Location.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
MapIcon.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
MapIconType.cs Fix all warnings & Trim (#2226) 2022-10-02 18:31:08 +08:00
Material.cs Inventory, Terrain and Entity handling 2024-07-02 11:08:46 +02:00
Material2Tool.cs Inventory, Terrain and Entity handling 2024-07-02 11:08:46 +02:00
MaterialExtensions.cs Added slab handling 1.13-1.19.4 2023-05-16 23:19:31 +02:00
MessageFilterType.cs Trim 2023-01-14 21:07:09 +08:00
Movement.cs Added slab handling 1.13-1.19.4 2023-05-16 23:19:31 +02:00
RaycastHelper.cs Implement command completion suggestions. 2022-12-06 15:50:17 +08:00
VillagerInfo.cs Adds support for villager trading (#1316) 2020-11-08 23:39:07 +01:00
World.cs fix: Explosion packet parsing and update attribute fallback for 1.21 2026-03-20 01:29:18 +08:00