#pragma once #include #include "minecraft/world/SimpleContainer.h" #include "nbt/CompoundTag.h" class ItemInstance; class EnderChestTileEntity; class CompoundTag; template class ListTag; class PlayerEnderChestContainer : public SimpleContainer { private: std::shared_ptr activeChest; public: PlayerEnderChestContainer(); virtual int getContainerType(); void setActiveChest(std::shared_ptr activeChest); void setItemsByTag(ListTag* enderItemsList); ListTag* createTag(); bool stillValid(std::shared_ptr player); void startOpen(); void stopOpen(); bool canPlaceItem(int slot, std::shared_ptr item); };