mirror of
https://github.com/DrPerkyLegit/LCEServerTest.git
synced 2026-05-31 07:54:35 +00:00
removed git history
This commit is contained in:
78
Minecraft.World/ResultContainer.cpp
Normal file
78
Minecraft.World/ResultContainer.cpp
Normal file
@@ -0,0 +1,78 @@
|
||||
#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] != nullptr)
|
||||
{
|
||||
shared_ptr<ItemInstance> item = items[0];
|
||||
items[0] = nullptr;
|
||||
return item;
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
shared_ptr<ItemInstance> ResultContainer::removeItemNoUpdate(int slot)
|
||||
{
|
||||
if (items[0] != nullptr)
|
||||
{
|
||||
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() const
|
||||
{
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user