From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/CompoundContainer.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Minecraft.World/CompoundContainer.h (limited to 'Minecraft.World/CompoundContainer.h') diff --git a/Minecraft.World/CompoundContainer.h b/Minecraft.World/CompoundContainer.h new file mode 100644 index 00000000..b0b8b934 --- /dev/null +++ b/Minecraft.World/CompoundContainer.h @@ -0,0 +1,36 @@ +#pragma once +using namespace std; + +#include "Container.h" + +class Player; + +class CompoundContainer : public Container +{ +private: + int name; + shared_ptr c1, c2; + +public: + CompoundContainer(int name, shared_ptr c1, shared_ptr c2); + + unsigned int getContainerSize(); + + int getName(); + + shared_ptr getItem(unsigned int slot); + + shared_ptr removeItem(unsigned int slot, int i); + shared_ptr removeItemNoUpdate(int slot); + + void setItem(unsigned int slot, shared_ptr item); + + int getMaxStackSize(); + + void setChanged(); + + bool stillValid(shared_ptr player); + + virtual void startOpen(); + virtual void stopOpen(); +}; \ No newline at end of file -- cgit v1.2.3