LeviLamina
Loading...
Searching...
No Matches
ChiseledBookshelfBlockActor.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<8, 24, ::std::vector<::ItemStack>> mItems;
27 ::ll::TypedStorage<4, 4, uint> mLastInteractedSlot;
28 // NOLINTEND
29
30public:
31 // virtual functions
32 // NOLINTBEGIN
33 // vIndex: 7
34 virtual ::ItemStack const& getItem(int slot) const /*override*/;
35
36 // vIndex: 12
37 virtual void setItem(int modelSlot, ::ItemStack const& item) /*override*/;
38
39 // vIndex: 26
40 virtual ::std::string getName() const /*override*/;
41
42 // vIndex: 21
43 virtual int getMaxStackSize() const /*override*/;
44
45 // vIndex: 20
46 virtual int getContainerSize() const /*override*/;
47
48 // vIndex: 22
49 virtual void startOpen(::Player&) /*override*/;
50
51 // vIndex: 23
52 virtual void stopOpen(::Player& player) /*override*/;
53
54 // vIndex: 33
55 virtual ::Container* getContainer() /*override*/;
56
57 // vIndex: 32
58 virtual ::Container const* getContainer() const /*override*/;
59
60 // vIndex: 2
61 virtual void serverInitItemStackIds(
62 int containerSlot,
63 int count,
64 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
65 ) /*override*/;
66
67 // vIndex: 39
68 virtual bool isEmpty() const /*override*/;
69
70 // vIndex: 29
71 virtual bool canPushInItem(int slot, int, ::ItemStack const& item) const /*override*/;
72
73 // vIndex: 30
74 virtual bool canPullOutItem(int slot, int, ::ItemStack const&) const /*override*/;
75
76 // vIndex: 11
77 virtual bool addItemToFirstEmptySlot(::ItemStack const& item) /*override*/;
78
79 // vIndex: 8
80 virtual void onChanged(::BlockSource& region) /*override*/;
81
82 // vIndex: 1
83 virtual void load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper) /*override*/;
84
85 // vIndex: 2
86 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
87
88 // vIndex: 43
89 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
90
91 // vIndex: 44
92 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
93
94 // vIndex: 0
95 virtual ~ChiseledBookshelfBlockActor() /*override*/ = default;
96 // NOLINTEND
97
98public:
99 // member functions
100 // NOLINTBEGIN
101 MCAPI explicit ChiseledBookshelfBlockActor(::BlockPos const& pos);
102
103 MCAPI void _loadItems(::CompoundTag const& base, ::ILevel& level);
104
105 MCAPI void _setItemInternal(int slot, ::ItemStack const& item, bool isLoading);
106
107 MCAPI ::ItemStack retrieveBook(int slot);
108 // NOLINTEND
109
110public:
111 // static functions
112 // NOLINTBEGIN
113 MCAPI static bool allowedItem(::ItemStack const& item);
114 // NOLINTEND
115
116public:
117 // constructor thunks
118 // NOLINTBEGIN
119 MCAPI void* $ctor(::BlockPos const& pos);
120 // NOLINTEND
121
122public:
123 // destructor thunk
124 // NOLINTBEGIN
125
126 // NOLINTEND
127
128public:
129 // virtual function thunks
130 // NOLINTBEGIN
131 MCAPI ::ItemStack const& $getItem(int slot) const;
132
133 MCAPI void $setItem(int modelSlot, ::ItemStack const& item);
134
135 MCAPI ::std::string $getName() const;
136
137 MCFOLD int $getMaxStackSize() const;
138
139 MCFOLD int $getContainerSize() const;
140
141 MCFOLD void $startOpen(::Player&);
142
143 MCFOLD void $stopOpen(::Player& player);
144
145 MCFOLD ::Container* $getContainer();
146
147 MCFOLD ::Container const* $getContainer() const;
148
149 MCAPI void $serverInitItemStackIds(
150 int containerSlot,
151 int count,
152 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
153 );
154
155 MCAPI bool $isEmpty() const;
156
157 MCAPI bool $canPushInItem(int slot, int, ::ItemStack const& item) const;
158
159 MCAPI bool $canPullOutItem(int slot, int, ::ItemStack const&) const;
160
161 MCAPI bool $addItemToFirstEmptySlot(::ItemStack const& item);
162
163 MCAPI void $onChanged(::BlockSource& region);
164
165 MCAPI void $load(::ILevel& level, ::CompoundTag const& tag, ::DataLoadHelper& dataLoadHelper);
166
167 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
168
169 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
170
171 MCFOLD void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
172 // NOLINTEND
173
174public:
175 // vftables
176 // NOLINTBEGIN
177 MCAPI static void** $vftableForContainer();
178
179 MCAPI static void** $vftableForBlockActor();
180 // NOLINTEND
181};
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition ChiseledBookshelfBlockActor.h:22
Definition CompoundTag.h:13
Definition Container.h:30
Definition DataLoadHelper.h:20
Definition ILevel.h:203
Definition ItemStack.h:25
Definition Player.h:119
Definition SaveContext.h:5