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
slot)
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
virtual
~SimpleContainer
()
/*override*/
;
44
// NOLINTEND
45
46
public
:
47
// destructor thunk
48
// NOLINTBEGIN
49
MCAPI
void
$dtor();
50
// NOLINTEND
51
52
public
:
53
// virtual function thunks
54
// NOLINTBEGIN
55
MCAPI ::ItemStack
const
& $getItem(
int
slot)
const
;
56
57
MCAPI
void
$setItem(
int
slot,
::ItemStack
const
& item);
58
59
MCAPI
int
$getContainerSize()
const
;
60
61
MCFOLD
int
$getMaxStackSize()
const
;
62
63
MCFOLD
void
$startOpen(
::Actor
&);
64
65
MCFOLD
void
$stopOpen(
::Actor
& actor);
66
67
MCAPI
void
$serverInitItemStackIds(
68
int
containerSlot,
69
int
count,
70
::std::function<
void
(
int
,
::ItemStack
const
&)> onNetIdChanged
71
);
72
73
74
// NOLINTEND
75
76
public
:
77
// vftables
78
// NOLINTBEGIN
79
MCAPI
static
void
** $vftable();
80
// NOLINTEND
81
};
Actor
Definition
Actor.h:114
ItemStack
Definition
ItemStack.h:24
SimpleContainer
Definition
SimpleContainer.h:14
src
mc
world
SimpleContainer.h
Generated on
for LeviLamina by
1.16.1