LeviLamina
Loading...
Searching...
No Matches
CraftingContainer.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<8, 24, ::std::vector<::ItemStack>> mItems;
19 ::ll::TypedStorage<4, 4, int> mWidth;
20 // NOLINTEND
21
22public:
23 // virtual functions
24 // NOLINTBEGIN
25 // vIndex: 0
26 virtual ~CraftingContainer() /*override*/;
27
28 // vIndex: 7
29 virtual ::ItemStack const& getItem(int slot) const /*override*/;
30
31 // vIndex: 12
32 virtual void setItem(int modelSlot, ::ItemStack const& item) /*override*/;
33
34 // vIndex: 20
35 virtual int getContainerSize() const /*override*/;
36
37 // vIndex: 21
38 virtual int getMaxStackSize() const /*override*/;
39
40 // vIndex: 31
41 virtual void setContainerChanged(int slot) /*override*/;
42
43 // vIndex: 22
44 virtual void startOpen(::Player&) /*override*/;
45
46 // vIndex: 23
47 virtual void stopOpen(::Player& player) /*override*/;
48
49 // vIndex: 2
50 virtual void serverInitItemStackIds(
51 int containerSlot,
52 int count,
53 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
54 ) /*override*/;
55 // NOLINTEND
56
57public:
58 // member functions
59 // NOLINTBEGIN
60 MCAPI CraftingContainer(int w, int h);
61 // NOLINTEND
62
63public:
64 // constructor thunks
65 // NOLINTBEGIN
66 MCAPI void* $ctor(int w, int h);
67 // NOLINTEND
68
69public:
70 // destructor thunk
71 // NOLINTBEGIN
72 MCAPI void $dtor();
73 // NOLINTEND
74
75public:
76 // virtual function thunks
77 // NOLINTBEGIN
78 MCAPI ::ItemStack const& $getItem(int slot) const;
79
80 MCAPI void $setItem(int modelSlot, ::ItemStack const& item);
81
82 MCFOLD int $getContainerSize() const;
83
84 MCFOLD int $getMaxStackSize() const;
85
86 MCFOLD void $setContainerChanged(int slot);
87
88 MCFOLD void $startOpen(::Player&);
89
90 MCFOLD void $stopOpen(::Player& player);
91
92 MCFOLD void $serverInitItemStackIds(
93 int containerSlot,
94 int count,
95 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
96 );
97 // NOLINTEND
98
99public:
100 // vftables
101 // NOLINTBEGIN
102 MCAPI static void** $vftable();
103 // NOLINTEND
104};
Definition Container.h:30
Definition CraftingContainer.h:14
Definition ItemStack.h:25
Definition Player.h:119