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/VanillaBlockActor.h"
9
10// auto generated forward declare list
11// clang-format off
12class Actor;
13class BlockPos;
14class BlockSource;
15class CompoundTag;
16class DataLoadHelper;
17class ILevel;
18class Item;
19class SaveContext;
20// clang-format on
21
22class BrewingStandBlockActor : public ::VanillaBlockActor, public ::Container {
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 // prevent constructor by default
46 BrewingStandBlockActor();
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 virtual ~BrewingStandBlockActor() /*override*/ = default;
52
53 virtual ::ItemStack const& getItem(int slot) const /*override*/;
54
55 virtual void setItem(int slot, ::ItemStack const& item) /*override*/;
56
57 virtual ::std::string getName() const /*override*/;
58
59 virtual int getMaxStackSize() const /*override*/;
60
61 virtual int getContainerSize() const /*override*/;
62
63 virtual void startOpen(::Actor&) /*override*/;
64
65 virtual void stopOpen(::Actor& actor) /*override*/;
66
67 virtual void setContainerChanged(int slot) /*override*/;
68
69 virtual void onRemoved(::BlockSource&) /*override*/;
70
71 virtual bool canPushInItem(int slot, int face, ::ItemStack const& item) const /*override*/;
72
73 virtual bool canPullOutItem(int slot, int face, ::ItemStack const&) const /*override*/;
74
75 virtual ::Container* getContainer() /*override*/;
76
77 virtual ::Container const* getContainer() const /*override*/;
78
79 virtual void load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper) /*override*/;
80
81 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
82
83 virtual void tick(::BlockSource& region) /*override*/;
84
85 virtual void onChanged(::BlockSource& region) /*override*/;
86
87 virtual void onMove() /*override*/;
88
89 virtual void serverInitItemStackIds(
90 int containerSlot,
91 int count,
92 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
93 ) /*override*/;
94 // NOLINTEND
95
96public:
97 // member functions
98 // NOLINTBEGIN
99 MCAPI explicit BrewingStandBlockActor(::BlockPos const& pos);
100 // NOLINTEND
101
102public:
103 // constructor thunks
104 // NOLINTBEGIN
105 MCAPI void* $ctor(::BlockPos const& pos);
106 // NOLINTEND
107
108public:
109 // virtual function thunks
110 // NOLINTBEGIN
111 MCAPI ::ItemStack const& $getItem(int slot) const;
112
113 MCAPI void $setItem(int slot, ::ItemStack const& item);
114
115 MCAPI ::std::string $getName() const;
116
117 MCFOLD int $getMaxStackSize() const;
118
119 MCFOLD int $getContainerSize() const;
120
121 MCFOLD void $startOpen(::Actor&);
122
123 MCFOLD void $stopOpen(::Actor& actor);
124
125 MCAPI void $setContainerChanged(int slot);
126
127 MCFOLD void $onRemoved(::BlockSource&);
128
129 MCAPI bool $canPushInItem(int slot, int face, ::ItemStack const& item) const;
130
131 MCAPI bool $canPullOutItem(int slot, int face, ::ItemStack const&) const;
132
133 MCFOLD ::Container* $getContainer();
134
135 MCFOLD ::Container const* $getContainer() const;
136
137 MCAPI void $load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
138
139 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
140
141 MCAPI void $tick(::BlockSource& region);
142
143 MCAPI void $onChanged(::BlockSource& region);
144
145 MCFOLD void $onMove();
146
147 MCAPI void $serverInitItemStackIds(
148 int containerSlot,
149 int count,
150 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
151 );
152
153
154 // NOLINTEND
155
156public:
157 // vftables
158 // NOLINTBEGIN
159 MCAPI static void** $vftableForBlockActor();
160
161 MCNAPI static void** $vftable();
162
164
166
168 // NOLINTEND
169};
Definition Actor.h:114
Definition BlockPos.h:21
Definition BlockSource.h:71
static MCAPI void ** $vftableForIVanillaMainBlockActorComponent()
static MCAPI void ** $vftable()
static MCAPI void ** $vftableForIVanillaTickBlockActorComponent()
static MCAPI void ** $vftableForIVanillaRenderBlockActorComponent()
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition ILevel.h:220
Definition ItemStack.h:24
Definition Item.h:71
Definition SaveContext.h:5
static MCAPI void ** $vftableForBlockActor()