Add support for inventory layout as ASCII art (#906)

Inventory art mostly made by Mhowser
TODO: Implement remaining inventory types
This commit is contained in:
ORelio 2021-05-29 15:21:38 +02:00
parent b9935ab8fa
commit f16e9e87dd
13 changed files with 351 additions and 22 deletions

View file

@ -98,6 +98,9 @@ namespace MinecraftClient.Commands
SortedDictionary<int, Item> itemsSorted = new SortedDictionary<int, Item>(inventory.Items);
List<string> response = new List<string>();
response.Add(Translations.Get("cmd.inventory.inventory") + " #" + inventoryId + " - " + inventory.Title + "§8");
string asciiArt = inventory.Type.GetAsciiArt();
if (asciiArt != null && Settings.DisplayInventoryLayout)
response.Add(asciiArt);
int selectedHotbar = handler.GetCurrentSlot() + 1;
foreach (KeyValuePair<int, Item> item in itemsSorted)
{