aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/PlayerEnderChestContainer.h
blob: 6752224403c5f5e31efb0dffd9d938b76ac924e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include "SimpleContainer.h"

class EnderChestTileEntity;

class PlayerEnderChestContainer : public SimpleContainer
{
private:
	shared_ptr<EnderChestTileEntity> activeChest;

public:
	PlayerEnderChestContainer();

	virtual int getContainerType();

	void setActiveChest(shared_ptr<EnderChestTileEntity> activeChest);
	void setItemsByTag(ListTag<CompoundTag> *enderItemsList);
	ListTag<CompoundTag> *createTag();
	bool stillValid(shared_ptr<Player> player);
	void startOpen();
	void stopOpen();
	bool canPlaceItem(int slot, shared_ptr<ItemInstance> item);
};