summaryrefslogtreecommitdiffstats
path: root/source/ItemGrid.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-13 08:13:56 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-06-13 08:13:56 +0200
commit5c38a831bf0bda271a45f143700b3fea5e6ea7ee (patch)
tree462a6e2d32fb132940a27ae5d782530b29f0a9c5 /source/ItemGrid.h
parentChestEntity: fixed bindings (diff)
downloadcuberite-5c38a831bf0bda271a45f143700b3fea5e6ea7ee.tar
cuberite-5c38a831bf0bda271a45f143700b3fea5e6ea7ee.tar.gz
cuberite-5c38a831bf0bda271a45f143700b3fea5e6ea7ee.tar.bz2
cuberite-5c38a831bf0bda271a45f143700b3fea5e6ea7ee.tar.lz
cuberite-5c38a831bf0bda271a45f143700b3fea5e6ea7ee.tar.xz
cuberite-5c38a831bf0bda271a45f143700b3fea5e6ea7ee.tar.zst
cuberite-5c38a831bf0bda271a45f143700b3fea5e6ea7ee.zip
Diffstat (limited to '')
-rw-r--r--source/ItemGrid.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/ItemGrid.h b/source/ItemGrid.h
index 72b7d3b03..6b2713c45 100644
--- a/source/ItemGrid.h
+++ b/source/ItemGrid.h
@@ -62,6 +62,12 @@ public:
void EmptySlot(int a_X, int a_Y);
void EmptySlot(int a_SlotNum);
+ /// Returns true if the specified slot is empty or the slot doesn't exist
+ bool IsSlotEmpty(int a_SlotNum) const;
+
+ /// Returns true if the specified slot is empty or the slot doesn't exist
+ bool IsSlotEmpty(int a_X, int a_Y) const;
+
/// Sets all items as empty
void Clear(void);