3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/ContainerContentChangeListener.h"
7#include "mc/world/ContainerID.h"
8#include "mc/world/ContainerSizeChangeListener.h"
9#include "mc/world/item/ItemStack.h"
22 ::ll::TypedStorage<4, 4, int> mSelected;
23 ::ll::TypedStorage<8, 152, ::ItemStack> mInfiniteItem;
24 ::ll::TypedStorage<1, 1, ::ContainerID> mSelectedContainerId;
25 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::Inventory>> mInventory;
26 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mComplexItems;
27 ::ll::TypedStorage<8, 16, ::std::weak_ptr<::HudContainerManagerModel>> mHudContainerManager;
41 virtual void containerSizeChanged(
int size) ;
44 virtual void containerContentChanged(
int slot) ;
47 virtual void createTransactionContext(
49 ::std::function<
void()> execute
60 MCNAPI
void init(::std::weak_ptr<::HudContainerManagerModel> hud);
68 MCNAPI
void*
$ctor(::std::unique_ptr<::Inventory> inv);
86 ::std::function<
void()> execute
Definition ContainerContentChangeListener.h:5
Definition ContainerSizeChangeListener.h:5
Definition Container.h:30
Definition HudContainerManagerModel.h:18
Definition Inventory.h:13
Definition ItemStack.h:25
Definition PlayerInventory.h:18
MCAPI void * $ctor(::std::unique_ptr<::Inventory > inv)
MCAPI void $containerSizeChanged(int size)
MCAPI bool removeResource(int type)
static MCAPI void ** $vftableForContainerSizeChangeListener()
static MCAPI void ** $vftableForContainerContentChangeListener()
MCAPI int getItemCount(::std::function< bool(::ItemStack const &)> comparator)
MCAPI PlayerInventory(::std::unique_ptr<::Inventory > inv)
MCAPI void $createTransactionContext(::std::function< void(::Container &, int, ::ItemStack const &, ::ItemStack const &)> callback, ::std::function< void()> execute)
MCAPI void init(::std::weak_ptr<::HudContainerManagerModel > hud)
MCAPI void $containerContentChanged(int slot)