LeviLamina
Loading...
Searching...
No Matches
CauldronBlockActor.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/alchemy/Potion.h"
8#include "mc/world/level/block/actor/BlockActor.h"
9
10// auto generated forward declare list
11// clang-format off
13class BlockPos;
14class BlockSource;
15class CompoundTag;
16class DataLoadHelper;
17class ILevel;
18class ItemStack;
19class Player;
20class SaveContext;
21namespace mce { class Color; }
22// clang-format on
23
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<4, 4, int> mPotionId;
29 ::ll::TypedStorage<4, 4, ::Potion::PotionType> mPotionType;
30 ::ll::TypedStorage<1, 1, bool> mHasCustomColor;
31 ::ll::TypedStorage<4, 4, int> mCustomColor;
32 ::ll::TypedStorage<8, 1520, ::ItemStack[10]> mItems;
33 // NOLINTEND
34
35public:
36 // virtual functions
37 // NOLINTBEGIN
38 // vIndex: 0
39 virtual ~CauldronBlockActor() /*override*/ = default;
40
41 // vIndex: 7
42 virtual ::ItemStack const& getItem(int slot) const /*override*/;
43
44 // vIndex: 12
45 virtual void setItem(int modelSlot, ::ItemStack const& item) /*override*/;
46
47 // vIndex: 26
48 virtual ::std::string getName() const /*override*/;
49
50 // vIndex: 21
51 virtual int getMaxStackSize() const /*override*/;
52
53 // vIndex: 20
54 virtual int getContainerSize() const /*override*/;
55
56 // vIndex: 22
57 virtual void startOpen(::Player&) /*override*/;
58
59 // vIndex: 23
60 virtual void stopOpen(::Player& player) /*override*/;
61
62 // vIndex: 33
63 virtual ::Container* getContainer() /*override*/;
64
65 // vIndex: 32
66 virtual ::Container const* getContainer() const /*override*/;
67
68 // vIndex: 1
69 virtual void load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper) /*override*/;
70
71 // vIndex: 2
72 virtual bool save(::CompoundTag& tag, ::SaveContext const& saveContext) const /*override*/;
73
74 // vIndex: 7
75 virtual void tick(::BlockSource& region) /*override*/;
76
77 // vIndex: 8
78 virtual void onChanged(::BlockSource& region) /*override*/;
79
80 // vIndex: 2
81 virtual void serverInitItemStackIds(
82 int containerSlot,
83 int count,
84 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
85 ) /*override*/;
86
87 // vIndex: 43
88 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(::BlockSource&) /*override*/;
89
90 // vIndex: 44
91 virtual void _onUpdatePacket(::CompoundTag const& data, ::BlockSource& region) /*override*/;
92 // NOLINTEND
93
94public:
95 // member functions
96 // NOLINTBEGIN
97 MCAPI explicit CauldronBlockActor(::BlockPos const& pos);
98
99 MCAPI ::mce::Color getCustomColor() const;
100
101 MCAPI ::mce::Color getMixDyeColor();
102
103 MCAPI ::mce::Color getPotionColor() const;
104
105 MCAPI void mixDyes();
106
107 MCAPI void setCustomColor(::mce::Color const& color);
108 // NOLINTEND
109
110public:
111 // static variables
112 // NOLINTBEGIN
113 MCAPI static ::mce::Color& WATER_COLOR();
114 // NOLINTEND
115
116public:
117 // constructor thunks
118 // NOLINTBEGIN
119 MCAPI void* $ctor(::BlockPos const& pos);
120 // NOLINTEND
121
122public:
123 // destructor thunk
124 // NOLINTBEGIN
125
126 // NOLINTEND
127
128public:
129 // virtual function thunks
130 // NOLINTBEGIN
131 MCFOLD ::ItemStack const& $getItem(int slot) const;
132
133 MCAPI void $setItem(int modelSlot, ::ItemStack const& item);
134
135 MCAPI ::std::string $getName() const;
136
137 MCFOLD int $getMaxStackSize() const;
138
139 MCFOLD int $getContainerSize() const;
140
141 MCFOLD void $startOpen(::Player&);
142
143 MCFOLD void $stopOpen(::Player& player);
144
145 MCFOLD ::Container* $getContainer();
146
147 MCFOLD ::Container const* $getContainer() const;
148
149 MCAPI void $load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
150
151 MCAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
152
153 MCFOLD void $tick(::BlockSource& region);
154
155 MCFOLD void $onChanged(::BlockSource& region);
156
157 MCAPI void $serverInitItemStackIds(
158 int containerSlot,
159 int count,
160 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
161 );
162
163 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
164
165 MCFOLD void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
166 // NOLINTEND
167
168public:
169 // vftables
170 // NOLINTBEGIN
171 MCAPI static void** $vftableForBlockActor();
172
173 MCAPI static void** $vftableForContainer();
174 // NOLINTEND
175};
Definition BlockActorDataPacket.h:19
Definition BlockActor.h:32
Definition BlockPos.h:18
Definition BlockSource.h:67
Definition CauldronBlockActor.h:24
Definition CompoundTag.h:13
Definition Container.h:30
Definition DataLoadHelper.h:20
Definition ILevel.h:203
Definition ItemStack.h:25
Definition Player.h:119
Definition SaveContext.h:5
Definition Color.h:13