aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/PlayerEnderChestContainer.cpp
diff options
context:
space:
mode:
authorLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
committerLoki Rautio <lokirautio@gmail.com>2026-03-04 03:56:03 -0600
commit42aec6dac53dffa6afe072560a7e1d4986112538 (patch)
tree0836426857391df1b6a83f6368a183f83ec9b104 /Minecraft.World/PlayerEnderChestContainer.cpp
parentc9d58eeac7c72f0b3038e084667b4d89a6249fce (diff)
parentef9b6fd500dfabd9463267b0dd9e29577eea8a2b (diff)
Merge branch 'main' into pr/win64-world-saves
# Conflicts: # Minecraft.Client/MinecraftServer.cpp # README.md
Diffstat (limited to 'Minecraft.World/PlayerEnderChestContainer.cpp')
-rw-r--r--Minecraft.World/PlayerEnderChestContainer.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/Minecraft.World/PlayerEnderChestContainer.cpp b/Minecraft.World/PlayerEnderChestContainer.cpp
index 466d9710..f0a1aaa3 100644
--- a/Minecraft.World/PlayerEnderChestContainer.cpp
+++ b/Minecraft.World/PlayerEnderChestContainer.cpp
@@ -1,12 +1,18 @@
#include "stdafx.h"
#include "net.minecraft.world.level.tile.entity.h"
+#include "ContainerOpenPacket.h"
#include "PlayerEnderChestContainer.h"
-PlayerEnderChestContainer::PlayerEnderChestContainer() : SimpleContainer(IDS_TILE_ENDERCHEST, 9 * 3)
+PlayerEnderChestContainer::PlayerEnderChestContainer() : SimpleContainer(IDS_TILE_ENDERCHEST, L"", false, 9 * 3)
{
activeChest = nullptr;
}
+int PlayerEnderChestContainer::getContainerType()
+{
+ return ContainerOpenPacket::ENDER_CHEST;
+}
+
void PlayerEnderChestContainer::setActiveChest(shared_ptr<EnderChestTileEntity> activeChest)
{
this->activeChest = activeChest;
@@ -69,4 +75,9 @@ void PlayerEnderChestContainer::stopOpen()
}
SimpleContainer::stopOpen();
activeChest = nullptr;
+}
+
+bool PlayerEnderChestContainer::canPlaceItem(int slot, shared_ptr<ItemInstance> item)
+{
+ return true;
} \ No newline at end of file