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