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
10
class
Actor
;
11
class
ItemStack
;
12
// clang-format on
13
14
class
CraftingContainer :
public
::Container {
15
public
:
16
// member variables
17
// NOLINTBEGIN
18
::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
19
::ll::TypedStorage<4, 4, int> mWidth;
20
// NOLINTEND
21
22
public
:
23
// prevent constructor by default
24
CraftingContainer();
25
26
public
:
27
// virtual functions
28
// NOLINTBEGIN
29
virtual
~CraftingContainer()
/*override*/
;
30
31
virtual ::ItemStack
const
& getItem(
int
slot)
const
/*override*/
;
32
33
virtual
void
setItem(
int
slot,
::ItemStack
const
& item)
/*override*/
;
34
35
virtual
int
getContainerSize()
const
/*override*/
;
36
37
virtual
int
getMaxStackSize()
const
/*override*/
;
38
39
virtual
void
setContainerChanged(
int
slot)
/*override*/
;
40
41
virtual
void
startOpen(
::Actor
&)
/*override*/
;
42
43
virtual
void
stopOpen(
::Actor
& actor)
/*override*/
;
44
45
virtual
void
serverInitItemStackIds(
46
int
containerSlot,
47
int
count,
48
::std::function<
void
(
int
,
::ItemStack
const
&)> onNetIdChanged
49
)
/*override*/
;
50
// NOLINTEND
51
52
public
:
53
// member functions
54
// NOLINTBEGIN
55
MCAPI CraftingContainer(
int
w,
int
h);
56
// NOLINTEND
57
58
public
:
59
// constructor thunks
60
// NOLINTBEGIN
61
MCAPI
void
* $ctor(
int
w,
int
h);
62
// NOLINTEND
63
64
public
:
65
// destructor thunk
66
// NOLINTBEGIN
67
MCAPI
void
$dtor();
68
// NOLINTEND
69
70
public
:
71
// virtual function thunks
72
// NOLINTBEGIN
73
MCAPI ::ItemStack
const
& $getItem(
int
slot)
const
;
74
75
MCAPI
void
$setItem(
int
slot,
::ItemStack
const
& item);
76
77
MCFOLD
int
$getContainerSize()
const
;
78
79
MCFOLD
int
$getMaxStackSize()
const
;
80
81
MCFOLD
void
$setContainerChanged(
int
slot);
82
83
MCFOLD
void
$startOpen(
::Actor
&);
84
85
MCFOLD
void
$stopOpen(
::Actor
& actor);
86
87
MCFOLD
void
$serverInitItemStackIds(
88
int
containerSlot,
89
int
count,
90
::std::function<
void
(
int
,
::ItemStack
const
&)> onNetIdChanged
91
);
92
93
94
// NOLINTEND
95
96
public
:
97
// vftables
98
// NOLINTBEGIN
99
MCAPI
static
void
** $vftable();
100
// NOLINTEND
101
};
Actor
Definition
Actor.h:105
ItemStack
Definition
ItemStack.h:26
src
mc
world
inventory
CraftingContainer.h
Generated on
for LeviLamina by
1.16.1