16class SimpleContainer :
public ::Container {
20 ::ll::TypedStorage<4, 4, int> mSize;
21 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
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 startOpen(
::Actor&) ;
41 virtual void stopOpen(
::Actor& actor) ;
43 virtual void serverInitItemStackIds(
46 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
53 MCAPI SimpleContainer(
54 ::std::string
const& name,
57 ::SharedTypes::Legacy::ContainerType containerType
61 MCAPI SimpleContainer(
65 ::SharedTypes::Legacy::ContainerType containerType
68 MCAPI
void clearContent();
76 $ctor(::std::string
const& name,
bool customName,
int size, ::SharedTypes::Legacy::ContainerType containerType);
83 ::SharedTypes::Legacy::ContainerType containerType
91 MCAPI ::ItemStack
const& $getItem(
int slot)
const;
93 MCAPI
void $setItem(
int slot,
::ItemStack const& item);
95 MCFOLD
int $getContainerSize()
const;
97 MCFOLD
int $getMaxStackSize()
const;
99 MCFOLD
void $startOpen(
::Actor&);
101 MCFOLD
void $stopOpen(
::Actor& actor);
103 MCAPI
void $serverInitItemStackIds(
106 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
115 MCAPI
static void** $vftable();