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