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
|
|
@ -40,5 +40,39 @@ namespace MinecraftClient.Inventory
|
|||
default: return 0;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get an ASCII art representation of the container
|
||||
/// </summary>
|
||||
/// <param name="c"></param>
|
||||
/// <returns>ASCII art representation or NULL if not implemented for this container type</returns>
|
||||
public static string GetAsciiArt(this ContainerType c)
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
case ContainerType.PlayerInventory: return DefaultConfigResource.ContainerType_PlayerInventory;
|
||||
case ContainerType.Generic_9x3: return DefaultConfigResource.ContainerType_Generic_9x3;
|
||||
case ContainerType.Generic_9x6: return DefaultConfigResource.ContainerType_Generic_9x6;
|
||||
case ContainerType.Generic_3x3: return DefaultConfigResource.ContainerType_Generic_3x3;
|
||||
case ContainerType.Crafting: return DefaultConfigResource.ContainerType_Crafting;
|
||||
case ContainerType.BlastFurnace: return null;
|
||||
case ContainerType.Furnace: return null;
|
||||
case ContainerType.Smoker: return null;
|
||||
case ContainerType.Enchantment: return null;
|
||||
case ContainerType.BrewingStand: return DefaultConfigResource.ContainerType_BrewingStand;
|
||||
case ContainerType.Merchant: return null;
|
||||
case ContainerType.Beacon: return null;
|
||||
case ContainerType.Anvil: return null;
|
||||
case ContainerType.Hopper: return null;
|
||||
case ContainerType.ShulkerBox: return null;
|
||||
case ContainerType.Loom: return null;
|
||||
case ContainerType.Stonecutter: return null;
|
||||
case ContainerType.Lectern: return null;
|
||||
case ContainerType.Cartography: return null;
|
||||
case ContainerType.Grindstone: return null;
|
||||
case ContainerType.Unknown: return null;
|
||||
default: return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue