summaryrefslogtreecommitdiffstats
path: root/src/UI/Window.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-09-11 23:17:27 +0200
committerHowaner <franzi.moos@googlemail.com>2014-09-11 23:17:27 +0200
commitc7044fa1dd77a04c57780443a5dc88165c2d2ca1 (patch)
treecece37f27c6b32f4c5669a3467d8f0af17f75ac4 /src/UI/Window.cpp
parentRemoved GetProtocolVersion() from the protocols. (diff)
downloadcuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar
cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar.gz
cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar.bz2
cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar.lz
cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar.xz
cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.tar.zst
cuberite-c7044fa1dd77a04c57780443a5dc88165c2d2ca1.zip
Diffstat (limited to 'src/UI/Window.cpp')
-rw-r--r--src/UI/Window.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/UI/Window.cpp b/src/UI/Window.cpp
index 66900269f..1b7b07f77 100644
--- a/src/UI/Window.cpp
+++ b/src/UI/Window.cpp
@@ -57,6 +57,34 @@ cWindow::~cWindow()
+const AString cWindow::GetWindowTypeName(void) const
+{
+ switch (m_WindowType)
+ {
+ case wtChest: return "minecraft:chest";
+ case wtWorkbench: return "minecraft:crafting_table";
+ case wtFurnace: return "minecraft:furnace";
+ case wtDropSpenser: return "minecraft:dispenser";
+ case wtEnchantment: return "minecraft:enchanting_table";
+ case wtBrewery: return "minecraft:brewing_stand";
+ case wtNPCTrade: return "minecraft:villager";
+ case wtBeacon: return "minecraft:beacon";
+ case wtAnvil: return "minecraft:anvil";
+ case wtHopper: return "minecraft:hopper";
+ case wtDropper: return "minecraft:dropper";
+ case wtAnimalChest: return "EntityHorse";
+ default:
+ {
+ ASSERT(!"Unknown inventory type!");
+ return "";
+ }
+ }
+}
+
+
+
+
+
int cWindow::GetNumSlots(void) const
{
int res = 0;