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
ItemStack
;
11
class
Player
;
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
// vIndex: 7
26
virtual ::ItemStack
const
& getItem(
int
slot)
const
/*override*/
;
27
28
// vIndex: 12
29
virtual
void
setItem(
int
slot,
::ItemStack
const
& item)
/*override*/
;
30
31
// vIndex: 20
32
virtual
int
getContainerSize()
const
/*override*/
;
33
34
// vIndex: 21
35
virtual
int
getMaxStackSize()
const
/*override*/
;
36
37
// vIndex: 22
38
virtual
void
startOpen(
::Player
&)
/*override*/
;
39
40
// vIndex: 23
41
virtual
void
stopOpen(
::Player
& player)
/*override*/
;
42
43
// vIndex: 2
44
virtual
void
serverInitItemStackIds(
45
int
containerSlot,
46
int
count,
47
::std::function<
void
(
int
,
::ItemStack
const
&)> onNetIdChanged
48
)
/*override*/
;
49
50
// vIndex: 0
51
virtual
~SimpleContainer
()
/*override*/
;
52
// NOLINTEND
53
54
public
:
55
// destructor thunk
56
// NOLINTBEGIN
57
MCAPI
void
$dtor();
58
// NOLINTEND
59
60
public
:
61
// virtual function thunks
62
// NOLINTBEGIN
63
MCAPI ::ItemStack
const
& $getItem(
int
slot)
const
;
64
65
MCAPI
void
$setItem(
int
slot,
::ItemStack
const
& item);
66
67
MCFOLD
int
$getContainerSize()
const
;
68
69
MCFOLD
int
$getMaxStackSize()
const
;
70
71
MCFOLD
void
$startOpen(
::Player
&);
72
73
MCFOLD
void
$stopOpen(
::Player
& player);
74
75
MCAPI
void
$serverInitItemStackIds(
76
int
containerSlot,
77
int
count,
78
::std::function<
void
(
int
,
::ItemStack
const
&)> onNetIdChanged
79
);
80
// NOLINTEND
81
82
public
:
83
// vftables
84
// NOLINTBEGIN
85
MCAPI
static
void
** $vftable();
86
// NOLINTEND
87
};
Container
Definition
Container.h:30
ItemStack
Definition
ItemStack.h:25
Player
Definition
Player.h:119
SimpleContainer
Definition
SimpleContainer.h:14
src
mc
world
SimpleContainer.h
Generated on Sat Apr 26 2025 05:56:33 for LeviLamina by
1.12.0