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;
50 ItemStackNetManagerBase& operator=(ItemStackNetManagerBase
const&);
51 ItemStackNetManagerBase(ItemStackNetManagerBase
const&);
52 ItemStackNetManagerBase();
57 virtual ~ItemStackNetManagerBase();
59 virtual bool isEnabled()
const;
61 virtual ::ItemStackRequestId getRequestId()
const = 0;
63 virtual bool retainSetItemStackNetIdVariant()
const;
65 virtual bool allowInventoryTransactionManager()
const = 0;
67 virtual ::gsl::final_action<::std::function<void()>> _tryBeginClientLegacyTransactionRequest();
71 virtual void onContainerScreenClose();
73 virtual ::SparseContainer* initOpenContainer(
79 virtual void _addLegacyTransactionRequestSetItemSlot(
81 ::SharedTypes::Legacy::ContainerType containerType,
91 MCAPI ItemStackNetManagerBase(
::Player& player,
bool isClientSide,
bool isEnabled);
97 MCAPI ::ContainerScreenContext
const& getScreenContext()
const;
99 MCFOLD
bool isClientSide()
const;
101 MCAPI
bool isScreenOpen()
const;
107 MCAPI static ::gsl::final_action<::std::function<void()>> _tryBeginClientLegacyTransactionRequest(
::Player* player);
109 MCAPI
static bool setPlayerContainer(
111 ::SharedTypes::Legacy::ContainerType containerType,
115 ::std::function<
void(
::ItemStack const&)>
const& callback
122 MCAPI
void* $ctor(
::Player& player,
bool isClientSide,
bool isEnabled);
134 MCFOLD
bool $isEnabled()
const;
136 MCFOLD
bool $retainSetItemStackNetIdVariant()
const;
138 MCAPI ::gsl::final_action<::std::function<void()>> $_tryBeginClientLegacyTransactionRequest();
142 MCAPI
void $onContainerScreenClose();
144 MCFOLD ::SparseContainer* $initOpenContainer(
150 MCFOLD
void $_addLegacyTransactionRequestSetItemSlot(
152 ::SharedTypes::Legacy::ContainerType containerType,
Definition ContainerScreenContext.h:19