LeviLamina
Loading...
Searching...
No Matches
LecternBlockActor.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/world/Container.h"
7#include "mc/world/item/ItemStack.h"
8#include "mc/world/level/block/actor/BlockActor.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BlockActorDataPacket;
14class BlockPos;
15class BlockSource;
16class CompoundTag;
17class DataLoadHelper;
18class ILevel;
19class SaveContext;
20// clang-format on
21
23public:
24 // member variables
25 // NOLINTBEGIN
26 ::ll::TypedStorage<4, 4, int> mPage;
27 ::ll::TypedStorage<4, 4, int> mTotalPages;
28 ::ll::TypedStorage<8, 152, ::ItemStack> mBook;
29 // NOLINTEND
30
31public:
32 // prevent constructor by default
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 // vIndex: 7
39 virtual ::ItemStack const& getItem(int slot) const /*override*/;
40
41 // vIndex: 12
42 virtual void setItem(int modelSlot, ::ItemStack const& item) /*override*/;
43
44 // vIndex: 21
45 virtual int getMaxStackSize() const /*override*/;
46
47 // vIndex: 20
48 virtual int getContainerSize() const /*override*/;
49
50 // vIndex: 22
51 virtual void startOpen(::Actor&) /*override*/;
52
53 // vIndex: 23
54 virtual void stopOpen(::Actor& actor) /*override*/;
55
56 // vIndex: 31
57 virtual ::Container* getContainer() /*override*/;
58
59 // vIndex: 30
60 virtual ::Container const* getContainer() const /*override*/;
61
62 // vIndex: 1
63 virtual void load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper) /*override*/;
64
65 // vIndex: 2
66 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
67
68 // vIndex: 10
69 virtual void onChanged(::BlockSource& region) /*override*/;
70
71 // vIndex: 2
72 virtual void serverInitItemStackIds(
73 int containerSlot,
74 int count,
75 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
76 ) /*override*/;
77
78 // vIndex: 42
79 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource& region) /*override*/;
80
81 // vIndex: 43
82 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
83
84 // vIndex: 0
85 virtual ~LecternBlockActor() /*override*/ = default;
86 // NOLINTEND
87
88public:
89 // member functions
90 // NOLINTBEGIN
91 MCAPI explicit LecternBlockActor(::BlockPos const& pos);
92
93 MCAPI void setItemFromBlock(int slot, ::ItemStack const& item);
94 // NOLINTEND
95
96public:
97 // constructor thunks
98 // NOLINTBEGIN
99 MCAPI void* $ctor(::BlockPos const& pos);
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCAPI ::ItemStack const& $getItem(int slot) const;
106
107 MCAPI void $setItem(int modelSlot, ::ItemStack const& item);
108
109 MCFOLD int $getMaxStackSize() const;
110
111 MCFOLD int $getContainerSize() const;
112
113 MCFOLD void $startOpen(::Actor&);
114
115 MCFOLD void $stopOpen(::Actor& actor);
116
117 MCFOLD ::Container* $getContainer();
118
119 MCFOLD ::Container const* $getContainer() const;
120
121 MCAPI void $load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
122
123 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
124
125 MCAPI void $onChanged(::BlockSource& region);
126
127 MCAPI void $serverInitItemStackIds(
128 int containerSlot,
129 int count,
130 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
131 );
132
133 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource& region);
134
135 MCFOLD void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
136 // NOLINTEND
137
138public:
139 // vftables
140 // NOLINTBEGIN
141 MCNAPI static void** $vftableForBlockActor();
142
143 MCNAPI static void** $vftableForContainer();
144 // NOLINTEND
145};
Definition Actor.h:102
Definition BlockActor.h:32
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition CompoundTag.h:13
Definition Container.h:31
Definition DataLoadHelper.h:20
Definition ILevel.h:211
Definition ItemStack.h:23
Definition LecternBlockActor.h:22
static MCAPI void ** $vftableForBlockActor()
static MCAPI void ** $vftableForContainer()
Definition SaveContext.h:5