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