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
57
MCAPI ::ItemStack
const
& getItem(
int
x,
int
y)
const
;
58
// NOLINTEND
59
60
public
:
61
// constructor thunks
62
// NOLINTBEGIN
63
MCAPI
void
* $ctor(
int
w,
int
h);
64
// NOLINTEND
65
66
public
:
67
// destructor thunk
68
// NOLINTBEGIN
69
MCAPI
void
$dtor();
70
// NOLINTEND
71
72
public
:
73
// virtual function thunks
74
// NOLINTBEGIN
75
MCAPI ::ItemStack
const
& $getItem(
int
slot)
const
;
76
77
MCAPI
void
$setItem(
int
slot,
::ItemStack
const
& item);
78
79
MCFOLD
int
$getContainerSize()
const
;
80
81
MCFOLD
int
$getMaxStackSize()
const
;
82
83
MCFOLD
void
$setContainerChanged(
int
slot);
84
85
MCFOLD
void
$startOpen(
::Actor
&);
86
87
MCFOLD
void
$stopOpen(
::Actor
& actor);
88
89
MCFOLD
void
$serverInitItemStackIds(
90
int
containerSlot,
91
int
count,
92
::std::function<
void
(
int
,
::ItemStack
const
&)> onNetIdChanged
93
);
94
95
96
// NOLINTEND
97
98
public
:
99
// vftables
100
// NOLINTBEGIN
101
MCAPI
static
void
** $vftable();
102
// NOLINTEND
103
};
Actor
Definition
Actor.h:123
ItemStack
Definition
ItemStack.h:35
src
mc
world
inventory
CraftingContainer.h
Generated on
for LeviLamina by
1.16.1