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