3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/deps/core/utility/pub_sub/Publisher.h"
7#include "mc/world/containers/managers/models/ContainerManagerModel.h"
8#include "mc/world/inventory/network/TypedServerNetId.h"
9#include "mc/world/level/BlockPos.h"
18namespace Bedrock::PubSub::ThreadModel {
struct MultiThreaded; }
24 using SelectedStoneIndexPublisher =
30 ::ll::TypedStorage<4, 12, ::BlockPos> mBlockPos;
31 ::ll::TypedStorage<8, 8, ::gsl::not_null<::PacketSender*>> mPacketSender;
32 ::ll::TypedStorage<4, 4, int> mSelectedStoneIndex;
35 mOnSelectedStoneIndexChangedPublisher;
43 virtual ::std::vector<::ItemStack> getItemCopies()
const ;
45 virtual void setSlot(
int slot,
::ItemStack const& item,
bool fromNetwork) ;
47 virtual ::ItemStack
const& getSlot(
int slot)
const ;
49 virtual void setData(
int,
int) ;
51 virtual void setSelectedRecipeIndex(
int recipeIndex,
bool fromNetwork) ;
53 virtual ::std::optional<int> getSelectedRecipeIndex()
const ;
55 virtual void broadcastChanges() ;
57 virtual bool isValid(
float pickRange) ;
59 virtual ::ContainerScreenContext _postInit() ;
66 MCNAPI
void fireItemAcquiredEvent(
::ItemInstance const& item,
int count);
81 MCNAPI ::ItemStack
const&
$getSlot(
int slot)
const;
Definition Publisher.h:25
Definition ContainerScreenContext.h:16
Definition ItemInstance.h:15
Definition ItemStack.h:26
Definition PacketSender.h:17
Definition StonecutterContainerManagerModel.h:21
MCAPI void setSelectedStone(int collectionIndex)
MCAPI::ContainerScreenContext $_postInit()
MCAPI ::std::vector<::std::pair<::ItemInstance, ::RecipeNetId > > getResultForItem(::ItemStack const &item)
static MCAPI void ** $vftable()
MCAPI::ItemStack const & $getSlot(int slot) const
MCAPI void $setSelectedRecipeIndex(int recipeIndex, bool fromNetwork)
MCAPI void $broadcastChanges()
MCAPI ::std::vector<::ItemStack > $getItemCopies() const
MCAPI bool $isValid(float pickRange)
MCAPI void $setData(int, int)
MCAPI void $setSlot(int slot, ::ItemStack const &item, bool fromNetwork)
MCAPI ::std::optional< int > $getSelectedRecipeIndex() const
Definition MultiThreaded.h:7
Definition RecipeNetIdTag.h:5