28class ItemStackNetManagerBase {
31 using BaseContainerSetter = ::std::function<void(
::ItemStack const&)>;
33 using LegacyRequestScope = ::gsl::final_action<::std::function<void()>>;
38 ::ll::TypedStorage<1, 1, bool const> mIsEnabled;
39 ::ll::TypedStorage<1, 1, bool const> mIsClientSide;
40 ::ll::TypedStorage<8, 8, ::Player&> mPlayer;
41 ::ll::TypedStorage<8, 16, ::WeakRef<::EntityRegistry>> mLevelWeakRegistry;
42 ::ll::TypedStorage<8, 16, ::OwnerPtr<::EntityRegistry>> mEntityRegistry;
43 ::ll::TypedStorage<8, 8, ::std::unique_ptr<::ItemStackNetManagerScreenStack>> mScreenStack;
44 ::ll::TypedStorage<1, 1, bool> mCurrentRequestHasCraftAction;
45 ::ll::TypedStorage<8, 16, ::ItemStackLegacyRequestId> mLegacyTransactionRequestId;
46 ::ll::TypedStorage<1, 1, bool> mCursorItemDragActive;
51 ItemStackNetManagerBase& operator=(ItemStackNetManagerBase
const&);
52 ItemStackNetManagerBase(ItemStackNetManagerBase
const&);
53 ItemStackNetManagerBase();
58 virtual ~ItemStackNetManagerBase();
60 virtual bool isEnabled()
const;
62 virtual ::ItemStackRequestId getRequestId()
const = 0;
64 virtual bool retainSetItemStackNetIdVariant()
const;
66 virtual bool allowInventoryTransactionManager()
const = 0;
68 virtual ::gsl::final_action<::std::function<void()>> _tryBeginClientLegacyTransactionRequest();
72 virtual void onContainerScreenClose();
77 virtual ::SparseContainer* initOpenContainer(
84 virtual void beginCursorItemDrag() = 0;
86 virtual void endCursorItemDrag() = 0;
89 virtual void _addLegacyTransactionRequestSetItemSlot(
91 ::SharedTypes::Legacy::ContainerType containerType,
95 virtual void _addLegacyTransactionRequestSetItemSlot(
97 ::SharedTypes::Legacy::ContainerType containerType,
114 MCAPI ::ContainerScreenContext
const& getScreenContext()
const;
122 ::SharedTypes::Legacy::ContainerType containerType,
126 ::std::function<
void(
::ItemStack const&)>
const& callback
149 MCAPI ::gsl::final_action<::std::function<void()>> $_tryBeginClientLegacyTransactionRequest();
153 MCAPI
void $onContainerScreenClose();
168 ::SharedTypes::Legacy::ContainerType containerType,
174 ::SharedTypes::Legacy::ContainerType containerType,
Definition ContainerScreenContext.h:16
static MCAPI bool setPlayerContainer(::Player &player, ::SharedTypes::Legacy::ContainerType containerType, int slot, ::ItemStack const &item, ::ItemStack &slotItem, ::std::function< void(::ItemStack const &)> const &callback)