mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-26 18:17:18 +00:00
23 lines
634 B
C++
23 lines
634 B
C++
#pragma once
|
|
|
|
#include "../Containers/SimpleContainer.h"
|
|
|
|
class EnderChestTileEntity;
|
|
|
|
class PlayerEnderChestContainer : public SimpleContainer {
|
|
private:
|
|
std::shared_ptr<EnderChestTileEntity> activeChest;
|
|
|
|
public:
|
|
PlayerEnderChestContainer();
|
|
|
|
virtual int getContainerType();
|
|
|
|
void setActiveChest(std::shared_ptr<EnderChestTileEntity> activeChest);
|
|
void setItemsByTag(ListTag<CompoundTag>* enderItemsList);
|
|
ListTag<CompoundTag>* createTag();
|
|
bool stillValid(std::shared_ptr<Player> player);
|
|
void startOpen();
|
|
void stopOpen();
|
|
bool canPlaceItem(int slot, std::shared_ptr<ItemInstance> item);
|
|
}; |