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