3#include "mc/_HeaderOutputPredefine.h"
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"
21namespace mce {
class Color; }
24class CauldronBlockActor :
public ::VanillaBlockActor,
public ::Container {
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;
42 virtual ~CauldronBlockActor() =
default;
44 virtual ::ItemStack
const& getItem(
int slot)
const ;
46 virtual void setItem(
int slot,
::ItemStack const& item) ;
48 virtual ::std::string getName()
const ;
50 virtual int getMaxStackSize()
const ;
52 virtual int getContainerSize()
const ;
54 virtual void startOpen(
::Actor&) ;
56 virtual void stopOpen(
::Actor& actor) ;
58 virtual ::Container* getContainer() ;
60 virtual ::Container
const* getContainer()
const ;
70 virtual void serverInitItemStackIds(
73 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
76 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
110 MCNAPI ::ItemStack
const&
$getItem(
int slot)
const;
139 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
Definition BlockActorDataPacket.h:19
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 ®ion)
MCAPI::mce::Color getPotionColor() const
MCAPI void $startOpen(::Actor &)
static MCAPI void ** $vftableForIVanillaRenderBlockActorComponent()
MCAPI::Container const * $getContainer() const
MCAPI int $getContainerSize() const
MCAPI void $tick(::BlockSource ®ion)
MCAPI void $_onUpdatePacket(::CompoundTag const &data, ::BlockSource ®ion)
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 ItemStack.h:26
Definition SaveContext.h:5