aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/CompoundContainer.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/CompoundContainer.h')
-rw-r--r--Minecraft.World/CompoundContainer.h30
1 files changed, 14 insertions, 16 deletions
diff --git a/Minecraft.World/CompoundContainer.h b/Minecraft.World/CompoundContainer.h
index b0b8b934..126a712a 100644
--- a/Minecraft.World/CompoundContainer.h
+++ b/Minecraft.World/CompoundContainer.h
@@ -14,23 +14,21 @@ private:
public:
CompoundContainer(int name, shared_ptr<Container> c1, shared_ptr<Container> c2);
- unsigned int getContainerSize();
-
- int getName();
-
- shared_ptr<ItemInstance> getItem(unsigned int slot);
-
- shared_ptr<ItemInstance> removeItem(unsigned int slot, int i);
- shared_ptr<ItemInstance> removeItemNoUpdate(int slot);
-
- void setItem(unsigned int slot, shared_ptr<ItemInstance> item);
-
- int getMaxStackSize();
-
- void setChanged();
-
- bool stillValid(shared_ptr<Player> player);
+ virtual int getContainerType();
+ virtual unsigned int getContainerSize();
+ virtual bool contains(shared_ptr<Container> c);
+ virtual wstring getName();
+ virtual wstring getCustomName();
+ virtual bool hasCustomName();
+ virtual shared_ptr<ItemInstance> getItem(unsigned int slot);
+ virtual shared_ptr<ItemInstance> removeItem(unsigned int slot, int i);
+ virtual shared_ptr<ItemInstance> removeItemNoUpdate(int slot);
+ virtual void setItem(unsigned int slot, shared_ptr<ItemInstance> item);
+ virtual int getMaxStackSize();
+ virtual void setChanged();
+ virtual bool stillValid(shared_ptr<Player> player);
virtual void startOpen();
virtual void stopOpen();
+ virtual bool canPlaceItem(int slot, shared_ptr<ItemInstance> item);
}; \ No newline at end of file