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<4, 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();
75 virtual void _addLegacyTransactionRequestSetItemSlot(
77 ::SharedTypes::Legacy::ContainerType containerType,
87 MCAPI ItemStackNetManagerBase(
::Player& player,
bool isClientSide,
bool isEnabled);
93 MCAPI ::ContainerScreenContext
const& getScreenContext()
const;
99 MCAPI static ::gsl::final_action<::std::function<void()>> _tryBeginClientLegacyTransactionRequest(
::Player* player);
101 MCAPI
static bool setPlayerContainer(
103 ::SharedTypes::Legacy::ContainerType containerType,
107 ::std::function<
void(
::ItemStack const&)>
const& callback
114 MCAPI
void* $ctor(
::Player& player,
bool isClientSide,
bool isEnabled);
126 MCFOLD
bool $isEnabled()
const;
128 MCFOLD
bool $retainSetItemStackNetIdVariant()
const;
130 MCAPI ::gsl::final_action<::std::function<void()>> $_tryBeginClientLegacyTransactionRequest();
134 MCAPI
void $onContainerScreenClose();
138 MCFOLD
void $_addLegacyTransactionRequestSetItemSlot(
140 ::SharedTypes::Legacy::ContainerType containerType,
Definition ContainerScreenContext.h:17