diff options
| author | Loki Rautio <lokirautio@gmail.com> | 2026-03-04 03:56:03 -0600 |
|---|---|---|
| committer | Loki Rautio <lokirautio@gmail.com> | 2026-03-04 03:56:03 -0600 |
| commit | 42aec6dac53dffa6afe072560a7e1d4986112538 (patch) | |
| tree | 0836426857391df1b6a83f6368a183f83ec9b104 /Minecraft.World/CompoundContainer.h | |
| parent | c9d58eeac7c72f0b3038e084667b4d89a6249fce (diff) | |
| parent | ef9b6fd500dfabd9463267b0dd9e29577eea8a2b (diff) | |
Merge branch 'main' into pr/win64-world-saves
# Conflicts:
# Minecraft.Client/MinecraftServer.cpp
# README.md
Diffstat (limited to 'Minecraft.World/CompoundContainer.h')
| -rw-r--r-- | Minecraft.World/CompoundContainer.h | 30 |
1 files changed, 14 insertions, 16 deletions
diff --git a/Minecraft.World/CompoundContainer.h b/Minecraft.World/CompoundContainer.h index b0b8b934..906a0618 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() const; + 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 |
