Skip to content
LeviMC
English
AutoLightDark
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/PotionType.h"
9#include "mc/world/level/block/actor/VanillaBlockActor.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 ::VanillaBlockActor, public ::Container {
25public:
26 // member variables
27 // NOLINTBEGIN
28 ::ll::TypedStorage<4, 4, int> mPotionId;
29 ::ll::TypedStorage<4, 4, ::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 slot) 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 MCNAPI explicit CauldronBlockActor(::BlockPos const& pos);
85
86 MCNAPI ::mce::Color getMixDyeColor();
87
88 MCNAPI ::mce::Color getPotionColor() const;
89
90 MCNAPI void mixDyes();
91
92 MCAPI void setCustomColor(::mce::Color const& color);
93 // NOLINTEND
94
95public:
96 // static variables
97 // NOLINTBEGIN
98 MCNAPI static ::mce::Color& WATER_COLOR();
99 // NOLINTEND
100
101public:
102 // constructor thunks
103 // NOLINTBEGIN
104 MCNAPI void* $ctor(::BlockPos const& pos);
105 // NOLINTEND
106
107public:
108 // virtual function thunks
109 // NOLINTBEGIN
110 MCNAPI ::ItemStack const& $getItem(int slot) const;
111
112 MCNAPI void $setItem(int slot, ::ItemStack const& item);
113
114 MCNAPI ::std::string $getName() const;
115
116 MCNAPI int $getMaxStackSize() const;
117
118 MCNAPI int $getContainerSize() const;
119
120 MCNAPI void $startOpen(::Actor&);
121
122 MCNAPI void $stopOpen(::Actor& actor);
123
124 MCNAPI ::Container* $getContainer();
125
126 MCNAPI ::Container const* $getContainer() const;
127
128 MCNAPI void $load(::ILevel& level, ::CompoundTag const& base, ::DataLoadHelper& dataLoadHelper);
129
130 MCNAPI bool $save(::CompoundTag& tag, ::SaveContext const& saveContext) const;
131
132 MCNAPI void $tick(::BlockSource& region);
133
134 MCNAPI void $onChanged(::BlockSource& region);
135
137 int containerSlot,
138 int count,
139 ::std::function<void(int, ::ItemStack const&)> onNetIdChanged
140 );
141
142 MCNAPI ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(::BlockSource&);
143
144 MCNAPI void $_onUpdatePacket(::CompoundTag const& data, ::BlockSource& region);
145
146
147 // NOLINTEND
148
149public:
150 // vftables
151 // NOLINTBEGIN
153
154 MCNAPI static void** $vftable();
155
156 MCNAPI static void** $vftableForBlockActor();
157
159
161 // NOLINTEND
162};
Definition Actor.h:116
Definition BlockActorDataPacket.h:19
Definition BlockPos.h:14
Definition BlockSource.h:72
static MCAPI void ** $vftableForIVanillaMainBlockActorComponent()
MCAPI::Container * $getContainer()
static MCAPI void ** $vftable()
MCAPI int $getMaxStackSize() const
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI void $onChanged(::BlockSource &region)
MCAPI::mce::Color getPotionColor() const
MCAPI void mixDyes()
MCAPI void $startOpen(::Actor &)
static MCAPI void ** $vftableForIVanillaRenderBlockActorComponent()
MCAPI::Container const * $getContainer() const
MCAPI int $getContainerSize() const
MCAPI void $tick(::BlockSource &region)
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource &region)
MCAPI::mce::Color getMixDyeColor()
static MCAPI void ** $vftableForIVanillaTickBlockActorComponent()
MCAPI void $setItem(int slot, ::ItemStack const &item)
MCAPI CauldronBlockActor(::BlockPos const &pos)
static MCAPI void ** $vftableForBlockActor()
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
static MCAPI ::mce::Color & WATER_COLOR()
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI void * $ctor(::BlockPos const &pos)
MCAPI::std::string $getName() const
MCAPI ::std::unique_ptr<::BlockActorDataPacket > $_getUpdatePacket(::BlockSource &)
MCAPI void $stopOpen(::Actor &actor)
MCAPI void $load(::ILevel &level, ::CompoundTag const &base, ::DataLoadHelper &dataLoadHelper)
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition ILevel.h:223
Definition ItemStack.h:26
Definition SaveContext.h:5
Definition Color.h:13