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();
76 virtual ::SparseContainer* initOpenContainer(
84 virtual void _addLegacyTransactionRequestSetItemSlot(
86 ::SharedTypes::Legacy::ContainerType containerType,
90 virtual void _addLegacyTransactionRequestSetItemSlot(
92 ::SharedTypes::Legacy::ContainerType containerType,
103 MCAPI ItemStackNetManagerBase(
::Player& player,
bool isClientSide,
bool isEnabled);
115 MCAPI ::ContainerScreenContext
const& getScreenContext()
const;
121 MCAPI static ::gsl::final_action<::std::function<void()>> _tryBeginClientLegacyTransactionRequest(
::Player* player);
123 MCAPI
static bool setPlayerContainer(
125 ::SharedTypes::Legacy::ContainerType containerType,
129 ::std::function<
void(
::ItemStack const&)>
const& callback
136 MCAPI
void* $ctor(
::Player& player,
bool isClientSide,
bool isEnabled);
148 MCFOLD
bool $isEnabled()
const;
150 MCFOLD
bool $retainSetItemStackNetIdVariant()
const;
152 MCAPI ::gsl::final_action<::std::function<void()>> $_tryBeginClientLegacyTransactionRequest();
156 MCAPI
void $onContainerScreenClose();
161 MCFOLD ::SparseContainer* $initOpenContainer(
169 MCFOLD
void $_addLegacyTransactionRequestSetItemSlot(
171 ::SharedTypes::Legacy::ContainerType containerType,
175 MCFOLD
void $_addLegacyTransactionRequestSetItemSlot(
177 ::SharedTypes::Legacy::ContainerType containerType,
Definition ContainerScreenContext.h:16