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