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 BlockPos;
13class BlockSource;
14class CompoundTag;
15class DataLoadHelper;
16class ILevel;
17class Item;
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 // prevent constructor by default
47
48public:
49 // virtual functions
50 // NOLINTBEGIN
51 // vIndex: 0
52 virtual ~BrewingStandBlockActor() /*override*/ = default;
53
54 // vIndex: 7
55 virtual ::ItemStack const& getItem(int slot) const /*override*/;
56
57 // vIndex: 12
58 virtual void setItem(int slot, ::ItemStack const& item) /*override*/;
59
60 // vIndex: 27
61 virtual ::std::string getName() const /*override*/;
62
63 // vIndex: 21
64 virtual int getMaxStackSize() const /*override*/;
65
66 // vIndex: 20
67 virtual int getContainerSize() const /*override*/;
68
69 // vIndex: 22
70 virtual void startOpen(::Player&) /*override*/;
71
72 // vIndex: 23
73 virtual void stopOpen(::Player& player) /*override*/;
74
75 // vIndex: 34
76 virtual void setContainerChanged(int slot) /*override*/;
77
78 // vIndex: 14
79 virtual void onRemoved(::BlockSource&) /*override*/;
80
81 // vIndex: 32
82 virtual bool canPushInItem(int slot, int face, ::ItemStack const& item) const /*override*/;
83
84 // vIndex: 33
85 virtual bool canPullOutItem(int slot, int face, ::ItemStack const&) const /*override*/;
86
87 // vIndex: 34
88 virtual ::Container* getContainer() /*override*/;
89
90 // vIndex: 33
91 virtual ::Container const* getContainer() const /*override*/;
92
93 // vIndex: 1
94 virtual void load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper) /*override*/;
95
96 // vIndex: 2
97 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
98
99 // vIndex: 8
100 virtual void tick(::BlockSource& region) /*override*/;
101
102 // vIndex: 9
103 virtual void onChanged(::BlockSource& region) /*override*/;
104
105 // vIndex: 13
106 virtual void onMove() /*override*/;
107
108 // vIndex: 2
109 virtual void serverInitItemStackIds(
110 int containerSlot,
111 int count,
112 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
113 ) /*override*/;
114 // NOLINTEND
115
116public:
117 // member functions
118 // NOLINTBEGIN
119 MCNAPI explicit BrewingStandBlockActor(::BlockPos const& pos);
120
121 MCNAPI void brew();
122
123 MCNAPI bool canBrew();
124 // NOLINTEND
125
126public:
127 // constructor thunks
128 // NOLINTBEGIN
129 MCNAPI void* $ctor(::BlockPos const& pos);
130 // NOLINTEND
131
132public:
133 // virtual function thunks
134 // NOLINTBEGIN
135 MCNAPI ::ItemStack const& $getItem(int slot) const;
136
137 MCNAPI void $setItem(int slot, ::ItemStack const& item);
138
139 MCNAPI ::std::string $getName() const;
140
141 MCNAPI int $getMaxStackSize() const;
142
143 MCNAPI int $getContainerSize() const;
144
145 MCNAPI void $startOpen(::Player&);
146
147 MCNAPI void $stopOpen(::Player& player);
148
149 MCNAPI void $setContainerChanged(int slot);
150
152
153 MCNAPI bool $canPushInItem(int slot, int face, ::ItemStack const& item) const;
154
155 MCNAPI bool $canPullOutItem(int slot, int face, ::ItemStack const&) const;
156
157 MCNAPI ::Container* $getContainer();
158
159 MCNAPI ::Container const* $getContainer() const;
160
161 MCNAPI void $load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
162
163 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
164
165 MCNAPI void $tick(::BlockSource& region);
166
167 MCNAPI void $onChanged(::BlockSource& region);
168
169 MCNAPI void $onMove();
170
172 int containerSlot,
173 int count,
174 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
175 );
176 // NOLINTEND
177
178public:
179 // vftables
180 // NOLINTBEGIN
181 MCNAPI static void** $vftableForBlockActor();
182
183 MCNAPI static void** $vftableForContainer();
184 // NOLINTEND
185};
Definition BlockActor.h:32
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition BrewingStandBlockActor.h:22
MCAPI bool $canPushInItem(int slot, int face, ::ItemStack const &item) const
MCAPI void $setContainerChanged(int slot)
static MCAPI void ** $vftableForContainer()
MCAPI::std::string $getName() const
MCAPI int $getContainerSize() const
MCAPI BrewingStandBlockActor(::BlockPos const &pos)
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI int $getMaxStackSize() const
MCAPI void $onChanged(::BlockSource &region)
static MCAPI void ** $vftableForBlockActor()
MCAPI bool $canPullOutItem(int slot, int face, ::ItemStack const &) const
MCAPI void $startOpen(::Player &)
MCAPI void $setItem(int slot, ::ItemStack const &item)
MCAPI::Container * $getContainer()
MCAPI void $tick(::BlockSource &region)
MCAPI void $onRemoved(::BlockSource &)
MCAPI void * $ctor(::BlockPos const &pos)
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI::Container const * $getContainer() const
MCAPI void $stopOpen(::Player &player)
MCAPI void $load(::ILevel &level, ::CompoundTag const &base, ::DataLoadHelper &dataLoadHelper)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
Definition CompoundTag.h:13
Definition Container.h:30
Definition DataLoadHelper.h:20
Definition ILevel.h:205
Definition ItemStack.h:25
Definition Item.h:65
Definition Player.h:119
Definition SaveContext.h:5