3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/string/HashedString.h"
7#include "mc/world/Container.h"
8#include "mc/world/item/ItemStack.h"
9#include "mc/world/level/block/actor/VanillaBlockActor.h"
27class ChemistryTableBlockActor :
public ::VanillaBlockActor,
public ::Container {
31 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ActorUniqueID>> mOpenedPlayer;
32 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::LabTableReaction>> mCurReaction;
33 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::CraftableCompounds>> mCraftableCompounds;
34 ::ll::TypedStorage<8, 1368, ::ItemStack[9]> mItems;
35 ::ll::TypedStorage<8, 152, ::ItemStack> mPendingReactionOutput;
36 ::ll::TypedStorage<1, 1, bool> mIsTableTypeCached;
37 ::ll::TypedStorage<8, 48, ::HashedString> mCachedTableType;
42 ChemistryTableBlockActor();
47 virtual ~ChemistryTableBlockActor() =
default;
49 virtual ::Container* getContainer() ;
51 virtual ::Container
const* getContainer()
const ;
53 virtual ::ItemStack
const& getItem(
int slot)
const ;
55 virtual void setItem(
int slot,
::ItemStack const& item) ;
57 virtual int getMaxStackSize()
const ;
59 virtual int getContainerSize()
const ;
61 virtual void startOpen(
::Actor&) ;
63 virtual void stopOpen(
::Actor& actor) ;
73 virtual void serverInitItemStackIds(
76 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
119 MCNAPI ::ItemStack
const&
$getItem(
int slot)
const;
142 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
Definition BlockSource.h:72
MCAPI void * $ctor(::BlockPos const &pos)
MCAPI void $load(::ILevel &level, ::CompoundTag const &tag, ::DataLoadHelper &dataLoadHelper)
MCAPI void $tick(::BlockSource ®ion)
MCAPI bool $save(::CompoundTag &tag, ::SaveContext const &saveContext) const
MCAPI void $setItem(int slot, ::ItemStack const &item)
MCAPI void $startOpen(::Actor &)
MCAPI int $getContainerSize() const
MCAPI::Container * $getContainer()
MCAPI void serverCombine(::BlockSource ®ion, ::std::vector<::ItemStack > const &consumedInput)
MCAPI void serverLabTablePacket_DEPRECATED(::LabTablePacket const &packet, ::BlockSource ®ion)
MCAPI void $onRemoved(::BlockSource ®ion)
MCAPI int $getMaxStackSize() const
MCAPI void $stopOpen(::Actor &actor)
MCAPI::Container const * $getContainer() const
MCAPI void reset(::BlockSource ®ion)
MCAPI ChemistryTableBlockActor(::BlockPos const &pos)
MCAPI::ItemStack const & $getItem(int slot) const
MCAPI void $serverInitItemStackIds(int containerSlot, int count, ::std::function< void(int, ::ItemStack const &)> onNetIdChanged)
MCAPI void playerOpenLabTable(::Player &player)
Definition CompoundTag.h:18
Definition CraftableCompounds.h:16
Definition DataLoadHelper.h:20
Definition ItemStack.h:26
Definition LabTablePacket.h:19
Definition LabTableReaction.h:16
Definition SaveContext.h:5
Definition ActorUniqueID.h:5