3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/world/Container.h"
7#include "mc/world/item/ItemStack.h"
8#include "mc/world/level/block/actor/VanillaBlockActor.h"
22class BrewingStandBlockActor :
public ::VanillaBlockActor,
public ::Container {
36 ::ll::TypedStorage<4, 4, int> mBrewTime;
37 ::ll::TypedStorage<4, 4, int> mFuelAmount;
38 ::ll::TypedStorage<4, 4, int> mFuelTotal;
39 ::ll::TypedStorage<8, 8, ::Item const*> mIngredient;
40 ::ll::TypedStorage<8, 760, ::ItemStack[5]> mItems;
41 ::ll::TypedStorage<1, 1, bool> mNotifyPlayersOnChange;
46 BrewingStandBlockActor();
51 virtual ~BrewingStandBlockActor() =
default;
53 virtual ::ItemStack
const& getItem(
int slot)
const ;
55 virtual void setItem(
int slot,
::ItemStack const& item) ;
57 virtual ::std::string getName()
const ;
59 virtual int getMaxStackSize()
const ;
61 virtual int getContainerSize()
const ;
63 virtual void startOpen(
::Actor&) ;
65 virtual void stopOpen(
::Actor& actor) ;
67 virtual void setContainerChanged(
int slot) ;
71 virtual bool canPushInItem(
int slot,
int face,
::ItemStack const& item)
const ;
73 virtual bool canPullOutItem(
int slot,
int face,
::ItemStack const&)
const ;
75 virtual ::Container* getContainer() ;
77 virtual ::Container
const* getContainer()
const ;
87 virtual void onMove() ;
89 virtual void serverInitItemStackIds(
92 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
111 MCNAPI ::ItemStack
const&
$getItem(
int slot)
const;
129 MCAPI
bool $canPushInItem(
int slot,
int face,
::ItemStack const& item)
const;
150 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
Definition BlockSource.h:72
MCAPI void $setContainerChanged(int slot)
MCAPI::std::string $getName() const
MCAPI void $startOpen(::Actor &)
MCAPI int $getContainerSize() const
MCAPI BrewingStandBlockActor(::BlockPos const &pos)
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI int $getMaxStackSize() const
MCAPI void $onChanged(::BlockSource ®ion)
static MCAPI void ** $vftableForBlockActor()
MCAPI bool $canPullOutItem(int slot, int face, ::ItemStack const &) const
static MCAPI void ** $vftableForIVanillaMainBlockActorComponent()
MCAPI void $setItem(int slot, ::ItemStack const &item)
MCAPI::Container * $getContainer()
MCAPI void $tick(::BlockSource ®ion)
MCAPI void $onRemoved(::BlockSource &)
MCAPI void * $ctor(::BlockPos const &pos)
MCAPI void $stopOpen(::Actor &actor)
static MCAPI void ** $vftable()
static MCAPI void ** $vftableForIVanillaTickBlockActorComponent()
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI::Container const * $getContainer() const
MCAPI void $load(::ILevel &level, ::CompoundTag const &base, ::DataLoadHelper &dataLoadHelper)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
static MCAPI void ** $vftableForIVanillaRenderBlockActorComponent()
Definition CompoundTag.h:18
Definition DataLoadHelper.h:20
Definition ItemStack.h:26
Definition SaveContext.h:5