b3feddfef3
* try to resolve merge conflict * feat: TU19 (Dec 2014) Features & Content (#32) * December 2014 files * Working release build * Fix compilation issues * Add sound to Windows64Media * Add DLC content and force Tutorial DLC * Revert "Add DLC content and force Tutorial DLC" This reverts commit 97a43994725008e35fceb984d5549df9c8cea470. * Disable broken light packing * Disable breakpoint during DLC texture map load Allows DLC loading but the DLC textures are still broken * Fix post build not working * ... * fix vs2022 build * fix cmake build --------- Co-authored-by: Loki <lokirautio@gmail.com>
78 lines
1.3 KiB
C++
78 lines
1.3 KiB
C++
#include "stdafx.h"
|
|
#include "net.minecraft.world.entity.player.h"
|
|
#include "ResultContainer.h"
|
|
|
|
ResultContainer::ResultContainer() : Container()
|
|
{
|
|
}
|
|
|
|
unsigned int ResultContainer::getContainerSize()
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
shared_ptr<ItemInstance> ResultContainer::getItem(unsigned int slot)
|
|
{
|
|
return items[0];
|
|
}
|
|
|
|
wstring ResultContainer::getName()
|
|
{
|
|
return L"";
|
|
}
|
|
|
|
wstring ResultContainer::getCustomName()
|
|
{
|
|
return L"";
|
|
}
|
|
|
|
bool ResultContainer::hasCustomName()
|
|
{
|
|
return false;
|
|
}
|
|
|
|
shared_ptr<ItemInstance> ResultContainer::removeItem(unsigned int slot, int count)
|
|
{
|
|
if (items[0] != NULL)
|
|
{
|
|
shared_ptr<ItemInstance> item = items[0];
|
|
items[0] = nullptr;
|
|
return item;
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
shared_ptr<ItemInstance> ResultContainer::removeItemNoUpdate(int slot)
|
|
{
|
|
if (items[0] != NULL)
|
|
{
|
|
shared_ptr<ItemInstance> item = items[0];
|
|
items[0] = nullptr;
|
|
return item;
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
void ResultContainer::setItem(unsigned int slot, shared_ptr<ItemInstance> item)
|
|
{
|
|
items[0] = item;
|
|
}
|
|
|
|
int ResultContainer::getMaxStackSize()
|
|
{
|
|
return Container::LARGE_MAX_STACK_SIZE;
|
|
}
|
|
|
|
void ResultContainer::setChanged()
|
|
{
|
|
}
|
|
|
|
bool ResultContainer::stillValid(shared_ptr<Player> player)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
bool ResultContainer::canPlaceItem(int slot, shared_ptr<ItemInstance> item)
|
|
{
|
|
return true;
|
|
} |