mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-11-07 17:36:07 +00:00
Implement inventory handling for MC 1.16+
Item ID got changed in 1.16+ so a palette is needed.
This commit is contained in:
parent
68a9a5b064
commit
4d7cab2b25
10 changed files with 3972 additions and 897 deletions
17
MinecraftClient/Inventory/ItemPalettes/ItemPalette.cs
Normal file
17
MinecraftClient/Inventory/ItemPalettes/ItemPalette.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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];
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue