summaryrefslogtreecommitdiffstats
path: root/src/UI/SlotArea.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-07 01:18:58 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2013-12-07 01:18:58 +0100
commit347e80bdd88f894394373745859f405dc82c1819 (patch)
tree82bf1b2163cbf7c59bf3c0181583982f34912aca /src/UI/SlotArea.h
parentRenamed animation function (diff)
downloadcuberite-347e80bdd88f894394373745859f405dc82c1819.tar
cuberite-347e80bdd88f894394373745859f405dc82c1819.tar.gz
cuberite-347e80bdd88f894394373745859f405dc82c1819.tar.bz2
cuberite-347e80bdd88f894394373745859f405dc82c1819.tar.lz
cuberite-347e80bdd88f894394373745859f405dc82c1819.tar.xz
cuberite-347e80bdd88f894394373745859f405dc82c1819.tar.zst
cuberite-347e80bdd88f894394373745859f405dc82c1819.zip
Diffstat (limited to 'src/UI/SlotArea.h')
-rw-r--r--src/UI/SlotArea.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/UI/SlotArea.h b/src/UI/SlotArea.h
index b1944d901..d31c87e0c 100644
--- a/src/UI/SlotArea.h
+++ b/src/UI/SlotArea.h
@@ -16,6 +16,7 @@ class cWindow;
class cPlayer;
class cChestEntity;
class cDropSpenserEntity;
+class cEnderChestEntity;
class cFurnaceEntity;
class cCraftingRecipe;
@@ -286,6 +287,23 @@ protected:
+class cSlotAreaEnderChest :
+ public cSlotArea
+{
+public:
+ cSlotAreaEnderChest(cEnderChestEntity * a_EnderChest, cWindow & a_ParentWindow);
+
+ virtual const cItem * GetSlot(int a_SlotNum, cPlayer & a_Player) const override;
+ virtual void SetSlot(int a_SlotNum, cPlayer & a_Player, const cItem & a_Item) override;
+
+protected:
+ cEnderChestEntity * m_EnderChest;
+};
+
+
+
+
+
class cSlotAreaFurnace :
public cSlotArea,
public cItemGrid::cListener