26class HopperBlockActor :
public ::BlockActor,
public ::Container,
public ::Hopper {
30 ::ll::TypedStorage<8, 760, ::ItemStack[5]> mItems;
31 ::ll::TypedStorage<8, 8, ::Tick> mLastTick;
47 virtual ::ItemStack
const& getItem(
int index)
const ;
49 virtual void setItem(
int modelSlot,
::ItemStack const& item) ;
51 virtual ::std::string getName()
const ;
53 virtual int getContainerSize()
const ;
55 virtual int getMaxStackSize()
const ;
57 virtual void startOpen(
::Actor&) ;
59 virtual void stopOpen(
::Actor& actor) ;
61 virtual ::Container* getContainer() ;
63 virtual ::Container
const* getContainer()
const ;
65 virtual void setContainerChanged(
int slot) ;
71 virtual void onMove() ;
73 virtual void serverInitItemStackIds(
76 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
79 virtual ::std::unique_ptr<::BlockActorDataPacket> _getUpdatePacket(
::BlockSource&) ;
83 virtual ~HopperBlockActor() =
default;
89 MCAPI
explicit HopperBlockActor(
::BlockPos const& pos);
91 MCAPI
int _countItems()
const;
93 MCAPI
void _ensureTickingOrder(
::BlockSource& region,
int maxRecursion);
97 MCAPI ::FurnaceBlockActor* getAttachedFurnace(
::BlockSource& region);
99 MCAPI
bool isAttachedToChestAndFurnace(
::BlockSource& region);
101 MCAPI
bool isAttachedToContainerType(
::BlockSource& region, ::SharedTypes::Legacy::ContainerType containerType);
103 MCAPI
bool isSourceOfContainerType(
::BlockSource& region, ::SharedTypes::Legacy::ContainerType containerType);
121 MCAPI ::ItemStack
const& $getItem(
int index)
const;
123 MCAPI
void $setItem(
int modelSlot,
::ItemStack const& item);
125 MCAPI ::std::string $getName()
const;
127 MCFOLD
int $getContainerSize()
const;
129 MCFOLD
int $getMaxStackSize()
const;
131 MCFOLD
void $startOpen(
::Actor&);
133 MCFOLD
void $stopOpen(
::Actor& actor);
135 MCFOLD ::Container* $getContainer();
137 MCFOLD ::Container
const* $getContainer()
const;
139 MCFOLD
void $setContainerChanged(
int slot);
145 MCFOLD
void $onMove();
147 MCAPI
void $serverInitItemStackIds(
150 ::std::function<
void(
int,
::ItemStack const&)> onNetIdChanged
153 MCFOLD ::std::unique_ptr<::BlockActorDataPacket> $_getUpdatePacket(
::BlockSource&);
163 MCAPI
static void** $vftableForBlockActor();
165 MCAPI
static void** $vftableForContainer();
Definition SaveContext.h:5