LeviLamina
Loading...
Searching...
No Matches
DataDrivenBlockContainer.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
CompoundTag
;
12
class
ILevel
;
13
class
ItemStack
;
14
class
SaveContext
;
15
// clang-format on
16
17
class
DataDrivenBlockContainer
:
public
::Container {
18
public
:
19
// member variables
20
// NOLINTBEGIN
21
::ll::TypedStorage<8, 24, ::std::vector<::ItemStack>> mItems;
22
// NOLINTEND
23
24
public
:
25
// virtual functions
26
// NOLINTBEGIN
27
virtual ::ItemStack
const
& getItem(
int
slot)
const
/*override*/
;
28
29
virtual
void
setItem(
int
slot,
::ItemStack
const
& item)
/*override*/
;
30
31
virtual
int
getContainerSize()
const
/*override*/
;
32
33
virtual
int
getMaxStackSize()
const
/*override*/
;
34
35
virtual
void
startOpen(
::Actor
&)
/*override*/
;
36
37
virtual
void
serverInitItemStackIds(
38
int
containerSlot,
39
int
count,
40
::std::function<
void
(
int
,
::ItemStack
const
&)> onNetIdChanged
41
)
/*override*/
;
42
// NOLINTEND
43
44
public
:
45
// member functions
46
// NOLINTBEGIN
47
MCNAPI
void
load
(
::CompoundTag
const
& tag,
::ILevel
& level);
48
49
MCNAPI
void
save
(
::CompoundTag
& tag,
::SaveContext
const
& saveContext)
const
;
50
// NOLINTEND
51
52
public
:
53
// virtual function thunks
54
// NOLINTBEGIN
55
MCNAPI ::ItemStack
const
&
$getItem
(
int
slot)
const
;
56
57
MCNAPI
void
$setItem
(
int
slot,
::ItemStack
const
& item);
58
59
MCNAPI
int
$getContainerSize
()
const
;
60
61
MCNAPI
int
$getMaxStackSize
()
const
;
62
63
MCNAPI
void
$startOpen
(
::Actor
&);
64
65
MCNAPI
void
$serverInitItemStackIds
(
66
int
containerSlot,
67
int
count,
68
::std::function<
void
(
int
,
::ItemStack
const
&)> onNetIdChanged
69
);
70
71
72
// NOLINTEND
73
74
public
:
75
// vftables
76
// NOLINTBEGIN
77
MCNAPI
static
void
**
$vftable
();
78
// NOLINTEND
79
};
Actor
Definition
Actor.h:113
CompoundTag
Definition
CompoundTag.h:18
DataDrivenBlockContainer
Definition
DataDrivenBlockContainer.h:17
DataDrivenBlockContainer::$getItem
MCAPI::ItemStack const & $getItem(int slot) const
DataDrivenBlockContainer::save
MCAPI void save(::CompoundTag &tag, ::SaveContext const &saveContext) const
DataDrivenBlockContainer::$vftable
static MCAPI void ** $vftable()
DataDrivenBlockContainer::$serverInitItemStackIds
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
DataDrivenBlockContainer::$startOpen
MCAPI void $startOpen(::Actor &)
DataDrivenBlockContainer::$getContainerSize
MCAPI int $getContainerSize() const
DataDrivenBlockContainer::$setItem
MCAPI void $setItem(int slot, ::ItemStack const &item)
DataDrivenBlockContainer::load
MCAPI void load(::CompoundTag const &tag, ::ILevel &level)
DataDrivenBlockContainer::$getMaxStackSize
MCAPI int $getMaxStackSize() const
ILevel
Definition
ILevel.h:221
ItemStack
Definition
ItemStack.h:26
SaveContext
Definition
SaveContext.h:5
src
mc
world
DataDrivenBlockContainer.h
Generated on
for LeviLamina by
1.16.1