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