From 5c3235ecdc3f718ce20e006f1ecfa2159df82c87 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 26 May 2013 14:39:04 +0000 Subject: Implemented droppers Added a common ancestor class "DropSpenser" that has the common code for dropper and dispenser and is Lua-accessible, too. The Debuggers plugin now triggers both droppers and dispensers when rclking them with a redstone torch. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1514 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/UI/Window.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'source/UI/Window.h') diff --git a/source/UI/Window.h b/source/UI/Window.h index 7bd87a2ce..86ea1849b 100644 --- a/source/UI/Window.h +++ b/source/UI/Window.h @@ -19,7 +19,7 @@ class cPlayer; class cWindowOwner; class cClientHandle; class cChestEntity; -class cDispenserEntity; +class cDropSpenserEntity; class cFurnaceEntity; class cSlotArea; class cWorld; @@ -49,9 +49,13 @@ public: Chest = 0, Workbench = 1, Furnace = 2, - Dispenser = 3, + DropSpenser = 3, // Dropper or Dispenser Enchantment = 4, - Brewery = 5 + Brewery = 5, + NPCTrade = 6, + Beacon = 7, + Anvil = 8, + Hopper = 9, }; static const int c_NumInventorySlots = 36; @@ -149,11 +153,11 @@ public: -class cDispenserWindow : +class cDropSpenserWindow : public cWindow { public: - cDispenserWindow(int a_BlockX, int a_BlockY, int a_BlockZ, cDispenserEntity * a_Dispenser); + cDropSpenserWindow(int a_BlockX, int a_BlockY, int a_BlockZ, cDropSpenserEntity * a_Dispenser); } ; -- cgit v1.2.3