2026-03-01 12:16:08 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "SimpleContainer.h"
|
|
|
|
|
|
|
|
|
|
class EnderChestTileEntity;
|
|
|
|
|
|
|
|
|
|
class PlayerEnderChestContainer : public SimpleContainer
|
|
|
|
|
{
|
|
|
|
|
private:
|
2026-03-02 17:37:16 +07:00
|
|
|
shared_ptr<EnderChestTileEntity> activeChest;
|
2026-03-01 12:16:08 +08:00
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
PlayerEnderChestContainer();
|
|
|
|
|
|
2026-03-03 03:04:10 +08:00
|
|
|
virtual int getContainerType();
|
|
|
|
|
|
2026-03-02 17:37:16 +07:00
|
|
|
void setActiveChest(shared_ptr<EnderChestTileEntity> activeChest);
|
2026-03-01 12:16:08 +08:00
|
|
|
void setItemsByTag(ListTag<CompoundTag> *enderItemsList);
|
|
|
|
|
ListTag<CompoundTag> *createTag();
|
2026-03-02 17:37:16 +07:00
|
|
|
bool stillValid(shared_ptr<Player> player);
|
2026-03-01 12:16:08 +08:00
|
|
|
void startOpen();
|
|
|
|
|
void stopOpen();
|
2026-03-03 03:04:10 +08:00
|
|
|
bool canPlaceItem(int slot, shared_ptr<ItemInstance> item);
|
2026-03-01 12:16:08 +08:00
|
|
|
};
|