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
13class BlockPos;
14class BlockSource;
15class CompoundTag;
16class DataLoadHelper;
17class ILevel;
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 // 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 slot, ::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(::Player&) /*override*/;
52
53 // vIndex: 23
54 virtual void stopOpen(::Player& player) /*override*/;
55
56 // vIndex: 34
57 virtual ::Container* getContainer() /*override*/;
58
59 // vIndex: 33
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: 9
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: 44
79 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource& region) /*override*/;
80
81 // vIndex: 45
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 MCNAPI explicit LecternBlockActor(::BlockPos const& pos);
92
93 MCNAPI void setItemFromBlock(int slot, ::ItemStack const& item);
94 // NOLINTEND
95
96public:
97 // constructor thunks
98 // NOLINTBEGIN
99 MCNAPI void* $ctor(::BlockPos const& pos);
100 // NOLINTEND
101
102public:
103 // virtual function thunks
104 // NOLINTBEGIN
105 MCNAPI ::ItemStack const& $getItem(int slot) const;
106
107 MCNAPI void $setItem(int slot, ::ItemStack const& item);
108
109 MCNAPI int $getMaxStackSize() const;
110
111 MCNAPI int $getContainerSize() const;
112
113 MCNAPI void $startOpen(::Player&);
114
115 MCNAPI void $stopOpen(::Player& player);
116
117 MCNAPI ::Container* $getContainer();
118
119 MCNAPI ::Container const* $getContainer() const;
120
121 MCNAPI void $load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
122
123 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
124
125 MCNAPI void $onChanged(::BlockSource& region);
126
128 int containerSlot,
129 int count,
130 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
131 );
132
133 MCNAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource& region);
134
135 MCNAPI 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 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:205
Definition ItemStack.h:25
Definition LecternBlockActor.h:22
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource &region)
MCAPI void setItemFromBlock(int slot, ::ItemStack const &item)
MCAPI::Container * $getContainer()
MCAPI LecternBlockActor(::BlockPos const &pos)
MCAPI int $getContainerSize() const
static MCAPI void ** $vftableForBlockActor()
MCAPI::Container const * $getContainer() const
MCAPI void $onChanged(::BlockSource &region)
MCAPI void $load(::ILevel &level, ::CompoundTag const &base, ::DataLoadHelper &dataLoadHelper)
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI void $setItem(int slot, ::ItemStack const &item)
MCAPI void $startOpen(::Player &)
MCAPI int $getMaxStackSize() const
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource &region)
static MCAPI void ** $vftableForContainer()
MCAPI void $stopOpen(::Player &player)
MCAPI void * $ctor(::BlockPos const &pos)
MCAPI::ItemStack const & $getItem(int slot) const
Definition Player.h:119
Definition SaveContext.h:5