mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
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:
parent
b9935ab8fa
commit
f16e9e87dd
13 changed files with 351 additions and 22 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue