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