using System.Collections.Generic; using MinecraftClient.Inventory.ItemPalettes; using MinecraftClient.Protocol.Handlers.StructuredComponents.Core; namespace MinecraftClient.Protocol.Handlers.StructuredComponents.Components._1_20_6; public class MapPostProcessingComponent(DataTypes dataTypes, ItemPalette itemPalette, SubComponentRegistry subComponentRegistry) : StructuredComponent(dataTypes, itemPalette, subComponentRegistry) { public int Type { get; set; } public override void Parse(Queue data) { Type = dataTypes.ReadNextVarInt(data); } public override Queue Serialize() { var data = new List(); data.AddRange(DataTypes.GetVarInt(Type)); return new Queue(data); } }