Minecraft-Console-Client/MinecraftClient/Protocol/Handlers/StructuredComponents/Core/StructuredComponent.cs

14 lines
633 B
C#
Raw Normal View History

2024-09-01 20:42:39 +02:00
using System.Collections.Generic;
using MinecraftClient.Inventory.ItemPalettes;
2024-09-01 20:42:39 +02:00
namespace MinecraftClient.Protocol.Handlers.StructuredComponents.Core;
public abstract class StructuredComponent(DataTypes dataTypes, ItemPalette itemPalette, SubComponentRegistry subComponentRegistry)
2024-09-01 20:42:39 +02:00
{
protected DataTypes DataTypes { get; private set; } = dataTypes;
protected SubComponentRegistry SubComponentRegistry { get; private set; } = subComponentRegistry;
protected ItemPalette ItemPalette { get; private set; } = itemPalette;
2024-09-01 20:42:39 +02:00
public abstract void Parse(Queue<byte> data);
public abstract Queue<byte> Serialize();
}