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