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