Minecraft-Console-Client/MinecraftClient/Inventory/ItemPalettes/ItemPalette.cs
ReinforceZwei 4d7cab2b25 Implement inventory handling for MC 1.16+
Item ID got changed in 1.16+ so a palette is needed.
2020-08-17 17:28:14 +08:00

17 lines
351 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MinecraftClient.Inventory.ItemPalettes
{
public abstract class ItemPalette
{
protected abstract Dictionary<int, ItemType> GetDict();
public ItemType FromId(int id)
{
return GetDict()[id];
}
}
}