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 ItemStack;
11class Player;
12// clang-format on
13
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 // vIndex: 7
26 virtual ::ItemStack const& getItem(int slot) const /*override*/;
27
28 // vIndex: 12
29 virtual void setItem(int slot, ::ItemStack const& item) /*override*/;
30
31 // vIndex: 20
32 virtual int getContainerSize() const /*override*/;
33
34 // vIndex: 21
35 virtual int getMaxStackSize() const /*override*/;
36
37 // vIndex: 22
38 virtual void startOpen(::Player&) /*override*/;
39
40 // vIndex: 23
41 virtual void stopOpen(::Player& player) /*override*/;
42
43 // vIndex: 2
44 virtual void serverInitItemStackIds(
45 int containerSlot,
46 int count,
47 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
48 ) /*override*/;
49
50 // vIndex: 0
51 virtual ~SimpleContainer() /*override*/;
52 // NOLINTEND
53
54public:
55 // destructor thunk
56 // NOLINTBEGIN
57 MCAPI void $dtor();
58 // NOLINTEND
59
60public:
61 // virtual function thunks
62 // NOLINTBEGIN
63 MCAPI ::ItemStack const& $getItem(int slot) const;
64
65 MCAPI void $setItem(int slot, ::ItemStack const& item);
66
67 MCFOLD int $getContainerSize() const;
68
69 MCFOLD int $getMaxStackSize() const;
70
71 MCFOLD void $startOpen(::Player&);
72
73 MCFOLD void $stopOpen(::Player& player);
74
75 MCAPI void $serverInitItemStackIds(
76 int containerSlot,
77 int count,
78 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
79 );
80 // NOLINTEND
81
82public:
83 // vftables
84 // NOLINTBEGIN
85 MCAPI static void** $vftable();
86 // NOLINTEND
87};
Definition Container.h:30
Definition ItemStack.h:25
Definition Player.h:119
Definition SimpleContainer.h:14