Files
MinecraftConsoles/Minecraft.World/PlayerEnderChestContainer.h

24 lines
570 B
C
Raw Permalink Normal View History

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