3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/shared_types/legacy/ContainerType.h"
7#include "mc/world/inventory/FillingContainer.h"
14namespace Bedrock::Threading {
class SharedRecursiveMutex; }
21 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex>> mContainerContextMutex;
22 ::ll::TypedStorage<4, 4, int> mWeightInStorageItem;
23 ::ll::TypedStorage<1, 1, bool> mIsClientSide;
34 virtual int clearInventory(
int resizeTo) ;
37 virtual void swapSlots(
int from,
int to) ;
40 virtual void setItemWithForceBalance(
int slot,
::ItemStack const& item,
bool forceBalanced) ;
43 virtual ::std::unique_ptr<::ListTag> saveToTag(
::SaveContext const& saveContext)
const ;
46 virtual ::ItemStack
const& getItem(
int slot)
const ;
49 virtual void serverInitItemStackIds(
52 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
57 _trySetInSlot(
::ItemStack& item,
int const& slot,
int const& inventorySize,
int& backCompatOffset) ;
68 ::SharedTypes::Legacy::ContainerType containerType,
69 ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex> serializationMutex,
81 ::SharedTypes::Legacy::ContainerType containerType,
82 ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex> serializationMutex,
98 MCNAPI ::ItemStack
const&
$getItem(
int slot)
const;
103 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
Definition FillingContainer.h:16
Definition ItemStack.h:25
Definition LockingFillingContainer.h:17
MCAPI void $swapSlots(int from, int to)
MCAPI ::std::unique_ptr<::ListTag > $saveToTag(::SaveContext const &saveContext) const
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI int getWeightInStorageItem() const
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI void * $ctor(int numTotalSlots, ::SharedTypes::Legacy::ContainerType containerType, ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex > serializationMutex, bool isClientSide)
MCAPI LockingFillingContainer(int numTotalSlots, ::SharedTypes::Legacy::ContainerType containerType, ::std::weak_ptr<::Bedrock::Threading::SharedRecursiveMutex > serializationMutex, bool isClientSide)
static MCAPI void ** $vftable()
MCAPI void $_trySetInSlot(::ItemStack &item, int const &slot, int const &inventorySize, int &backCompatOffset)
MCAPI void $setItemWithForceBalance(int slot, ::ItemStack const &item, bool forceBalanced)
MCAPI int $clearInventory(int resizeTo)
Definition SaveContext.h:5