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
12class Actor;
13class BlockActorDataPacket;
14class BlockPos;
15class BlockSource;
16class CompoundTag;
17class Container;
18class DataLoadHelper;
19class ILevel;
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: 31
42 virtual ::Container* getContainer() /*override*/;
43
44 // vIndex: 30
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: 25
57 virtual ::std::string getName() const /*override*/;
58
59 // vIndex: 22
60 virtual void startOpen(::Actor& actor) /*override*/;
61
62 // vIndex: 23
63 virtual void stopOpen(::Actor& actor) /*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: 12
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: 42
82 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource& region) /*override*/;
83
84 // vIndex: 43
85 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
86
87 // vIndex: 0
88 virtual ~DispenserBlockActor() /*override*/ = default;
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 // virtual function thunks
111 // NOLINTBEGIN
112 MCFOLD int $getContainerSize() const;
113
114 MCFOLD ::Container* $getContainer();
115
116 MCFOLD ::Container const* $getContainer() const;
117
118 MCAPI ::ItemStack const& $getItem(int slot) const;
119
120 MCAPI void $setItem(int modelSlot, ::ItemStack const& item);
121
122 MCFOLD int $getMaxStackSize() const;
123
124 MCAPI ::std::string $getName() const;
125
126 MCFOLD void $startOpen(::Actor& actor);
127
128 MCFOLD void $stopOpen(::Actor& actor);
129
130 MCAPI void $load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
131
132 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
133
134 MCFOLD void $onMove();
135
136 MCAPI void $serverInitItemStackIds(
137 int containerSlot,
138 int count,
139 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
140 );
141
142 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource& region);
143
144 MCFOLD void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
145 // NOLINTEND
146
147public:
148 // vftables
149 // NOLINTBEGIN
150 MCNAPI static void** $vftableForContainer();
151
153 // NOLINTEND
154};
Definition Actor.h:102
Definition BlockPos.h:17
Definition BlockSource.h:66
Definition CompoundTag.h:13
Definition Container.h:31
Definition DataLoadHelper.h:20
Definition DispenserBlockActor.h:24
static MCAPI void ** $vftableForContainer()
static MCAPI void ** $vftableForRandomizableBlockActorContainerBase()
Definition ILevel.h:211
Definition ItemStack.h:23
Definition Random.h:10
Definition RandomizableBlockActorContainer.h:16
Definition SaveContext.h:5