3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/Container.h"
14class CraftingContainer :
public ::Container {
18 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
19 ::ll::TypedStorage<4, 4, int> mWidth;
29 virtual ~CraftingContainer() ;
31 virtual ::ItemStack
const& getItem(
int slot)
const ;
33 virtual void setItem(
int slot,
::ItemStack const& item) ;
35 virtual int getContainerSize()
const ;
37 virtual int getMaxStackSize()
const ;
39 virtual void setContainerChanged(
int slot) ;
41 virtual void startOpen(
::Actor&) ;
43 virtual void stopOpen(
::Actor& actor) ;
45 virtual void serverInitItemStackIds(
48 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
55 MCAPI CraftingContainer(
int w,
int h);
61 MCAPI
void* $ctor(
int w,
int h);
73 MCFOLD ::ItemStack
const& $getItem(
int slot)
const;
75 MCAPI
void $setItem(
int slot,
::ItemStack const& item);
77 MCFOLD
int $getContainerSize()
const;
90 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
static MCAPI void ** $vftable()
MCAPI void $startOpen(::Actor &)
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI int $getMaxStackSize() const
MCAPI void $stopOpen(::Actor &actor)
MCAPI void $setContainerChanged(int slot)
Definition ItemStack.h:26