Skip to content
LeviMC
English
AutoLightDark
LeviLamina
Loading...
Searching...
No Matches
SimpleContainer.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/Container.h"
7
8// auto generated forward declare list
9// clang-format off
10class Actor;
11class ItemStack;
12// clang-format on
13
14class SimpleContainer : public ::Container {
15public:
16 // member variables
17 // NOLINTBEGIN
18 ::ll::TypedStorage<4, 4, int> mSize;
19 ::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
20 // NOLINTEND
21
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 virtual ::ItemStack const& getItem(int slot) const /*override*/;
26
27 virtual void setItem(int slot, ::ItemStack const& item) /*override*/;
28
29 virtual int getContainerSize() const /*override*/;
30
31 virtual int getMaxStackSize() const /*override*/;
32
33 virtual void startOpen(::Actor&) /*override*/;
34
35 virtual void stopOpen(::Actor& actor) /*override*/;
36
37 virtual void serverInitItemStackIds(
38 int containerSlot,
39 int count,
40 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
41 ) /*override*/;
42
43 virtual ~SimpleContainer() /*override*/;
44 // NOLINTEND
45
46public:
47 // destructor thunk
48 // NOLINTBEGIN
49 MCNAPI void $dtor();
50 // NOLINTEND
51
52public:
53 // virtual function thunks
54 // NOLINTBEGIN
55 MCNAPI ::ItemStack const& $getItem(int slot) const;
56
57 MCNAPI void $setItem(int slot, ::ItemStack const& item);
58
59 MCNAPI int $getContainerSize() const;
60
61 MCNAPI int $getMaxStackSize() const;
62
63 MCNAPI void $startOpen(::Actor&);
64
65 MCNAPI void $stopOpen(::Actor& actor);
66
68 int containerSlot,
69 int count,
70 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
71 );
72
73
74 // NOLINTEND
75
76public:
77 // vftables
78 // NOLINTBEGIN
79 MCNAPI static void** $vftable();
80 // NOLINTEND
81};
Definition Actor.h:116
Definition ItemStack.h:26
Definition SimpleContainer.h:14
MCAPI void $stopOpen(::Actor &actor)
static MCAPI void ** $vftable()
MCAPI void $dtor()
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI void $setItem(int slot, ::ItemStack const &item)
MCAPI int $getMaxStackSize() const
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI int $getContainerSize() const
MCAPI void $startOpen(::Actor &)